From 9dc1272631b58a616c092f415e5bb558699292f9 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 11 Sep 2026 21:36:42 +0200 Subject: [PATCH] fixed typographic traitment, moved js alog to header defer script for speed, no more flickering --- web/themes/custom/leshed/assets/dist/main.css | 2 +- web/themes/custom/leshed/assets/dist/main.js | 12 +- .../custom/leshed/assets/dist/titles.js | 1 + .../assets/fonts/epilogue/stylesheet.css | 10 +- web/themes/custom/leshed/assets/js/main.js | 169 +---------------- web/themes/custom/leshed/assets/js/titles.js | 173 ++++++++++++++++++ .../custom/leshed/assets/scss/main.scss | 33 ++++ web/themes/custom/leshed/leshed.libraries.yml | 21 ++- web/themes/custom/leshed/leshed.theme | 21 +++ web/themes/custom/leshed/vite.config.js | 8 +- 10 files changed, 268 insertions(+), 182 deletions(-) create mode 100644 web/themes/custom/leshed/assets/dist/titles.js create mode 100644 web/themes/custom/leshed/assets/js/titles.js diff --git a/web/themes/custom/leshed/assets/dist/main.css b/web/themes/custom/leshed/assets/dist/main.css index 9be594a..ae47c1e 100644 --- a/web/themes/custom/leshed/assets/dist/main.css +++ b/web/themes/custom/leshed/assets/dist/main.css @@ -1 +1 @@ -@font-face{font-family:Epilogue;src:url(./fonts/Epilogue-Italic-VariableFont_wght.ttf) format("woff2");src:url(./fonts/Epilogue-Italic-VariableFont_wght.ttf) format("woff2") tech(variations);font-weight:100 900;font-style:italic}@font-face{font-family:Epilogue;src:url(./fonts/Epilogue-VariableFont_wght.ttf) format("woff2");src:url(./fonts/Epilogue-VariableFont_wght.ttf) format("woff2") tech(variations);font-weight:100 900;font-style:normal}body{font-family:Epilogue;font-weight:400;font-style:normal}a,a:visited{text-decoration:none;color:inherit;transition:color .15s ease-out}body{margin:0;font-weight:200;line-height:1.5}.splitting span.word,.splitting span.char{display:inline}div.layout-container{display:flex;flex-direction:column;height:100vh;overflow:hidden;max-width:1080px;margin:0 auto}div.layout-container header[role=banner]{display:block;position:relative;padding:.5em 0;flex:1 1 70px;z-index:100;height:70px;min-height:70px}div.layout-container main[role=main]{flex:1 1 auto;overflow-y:scroll}header[role=banner]{background-color:#fff}header[role=banner] .header-middle{display:flex;justify-content:space-between;align-items:center;padding:.2em 0}header[role=banner] #block-leshed-identitedusite a{text-decoration:none;font-size:2em;font-weight:500;margin-right:.5em}header[role=banner] .header-right{height:20px;width:20px;cursor:pointer}header[role=banner] .header-right>div#burger-btn{position:relative;transition-duration:.5s;transition-property:transform;top:8.5px}header[role=banner] .header-right>div#burger-btn,header[role=banner] .header-right>div#burger-btn:before,header[role=banner] .header-right>div#burger-btn:after{width:20px;height:3px;background-color:#000}header[role=banner] .header-right>div#burger-btn:hover,header[role=banner] .header-right>div#burger-btn:hover:before,header[role=banner] .header-right>div#burger-btn:hover:after{background-color:green}header[role=banner] .header-right>div#burger-btn:before,header[role=banner] .header-right>div#burger-btn:after{content:"";position:absolute;left:0}header[role=banner] .header-right>div#burger-btn:before{top:6px}header[role=banner] .header-right>div#burger-btn:after{bottom:6px}header[role=banner] .header-right>div#burger-btn[opened]{transform:rotate(90deg)}header[role=banner] .header-right>div.wrapper{position:fixed;top:70px;left:0;width:100vw;padding:0 calc((100vw - 1080px)/2) 0 calc((100vw - 1080px)/2);background-color:#ffffff4d;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);height:0;overflow:hidden;transition-duration:.5s}header[role=banner] .header-right>div.wrapper[opened]{height:calc(100vh - 70px)}header[role=banner] .header-right>div.wrapper nav#block-leshed-navigationprincipale{padding-top:10px}header[role=banner] .header-right>div.wrapper nav#block-leshed-navigationprincipale>ul{margin:0;padding:0}header[role=banner] .header-right>div.wrapper nav#block-leshed-navigationprincipale>ul li{list-style:none}header[role=banner] .header-right>div.wrapper nav#block-leshed-navigationprincipale>ul li a{font-size:4em;font-weight:200;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #fff) drop-shadow(0 0 15px #fff)}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul{margin:0;padding:0}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul li{list-style:none;padding:0;display:inline-block;font-size:2em}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul li:first-child:after{content:" /";font-weight:200}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul li:last-child{padding-left:.3em}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul li.is-active{font-weight:400}.variable-title{margin:0;font-weight:200;text-transform:lowercase;line-height:1;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 15px #fff)}.variable-title span.word span.char{letter-spacing:-.1em}div.layout.layout--twocol-section--50-50{flex-wrap:nowrap;align-items:flex-start;column-gap:2em}div.layout.layout--twocol-section--50-50 div.layout__region{max-width:calc(50% - 1em);flex:1 0 calc(50% - 1em)}div.layout.layout--twocol-section--50-50 div.layout__region .views-row{margin-bottom:2em;max-width:100%}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet>header>h2{font-size:5em}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images{position:relative;z-index:5}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images a{display:block}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images a img{width:100%;height:auto}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet div.field_artiste_s_invite_s.field-items.multiple .field-item{display:inline-block}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet div.field_artiste_s_invite_s.field-items.multiple .field-item:not(:last-of-type):after{content:", "}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement>header>h2{font-size:5em}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement.has-image>header div.field_images{position:relative;z-index:5}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement.has-image>header div.field_images a{display:block}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement.has-image>header div.field_images a img{width:100%;height:auto}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement>header .field_dates{font-size:3em}article.node-type-projet.view-mode-full div.cols{display:flex;flex-direction:row;gap:2em;align-items:flex-start}article.node-type-projet.view-mode-full div.cols div.col{flex:0 0 calc(50% - 1em);max-width:calc(50% - 1em)}article.node-type-projet.view-mode-full div.cols div.col.left{z-index:10}article.node-type-projet.view-mode-full div.cols div.col.left>header{transform-origin:0 0;width:205%;z-index:100;pointer-events:none}article.node-type-projet.view-mode-full div.cols div.col.left>header>h2.node-title{position:relative;font-size:12em;margin:0}article.node-type-projet.view-mode-full div.cols div.col.left>header>h2.node-title.leshed-svg-export-target{pointer-events:painted}article.node-type-projet.view-mode-full div.cols div.col.left .field_artiste_s_invite_s{font-size:1.8em;font-weight:300}article.node-type-projet.view-mode-full div.cols div.col.left .field_invite_accompagne_curate_p,article.node-type-projet.view-mode-full div.cols div.col.left .field_partenaire_s{margin-top:1em;font-weight:400}article.node-type-projet.view-mode-full div.cols div.col.left .field_invite_accompagne_curate_p .field-label,article.node-type-projet.view-mode-full div.cols div.col.left .field_partenaire_s .field-label{font-weight:200}article.node-type-projet.view-mode-full div.cols div.col.left .field_dates{margin-top:1em}article.node-type-projet.view-mode-full div.cols div.col.left .field_dates time{font-weight:400}article.node-type-projet.view-mode-full div.cols div.col.left>div.spacer{display:block;height:5em}article.node-type-projet.view-mode-full div.cols div.col.right{display:flex}article.node-type-projet.view-mode-full div.cols div.col.right .field_images{flex:1}article.node-type-projet.view-mode-full div.cols div.col.right .field_images:after{display:block;position:relative;content:"";width:100%;height:100vh}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item{position:relative}@media (min-width: 768px){article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item{position:sticky;top:0}}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure{margin:0}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure a{display:block}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure a img{width:100%;max-width:100%;height:auto}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption{margin:0;position:absolute;bottom:0;left:0;height:5em;width:100%;overflow:visible;display:block}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote{position:absolute;bottom:0;left:0;width:100%;margin:0;background-color:#000000a6;color:#fff;pointer-events:none}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote p{margin:0;padding:1em;font-weight:300;font-size:.8em}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote{opacity:0;transition:opacity .3s ease-in-out}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption:hover blockquote{opacity:1}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item:hover{z-index:200}article.node-type-evenement.view-mode-full div.cols{display:flex;flex-direction:row;gap:2em;align-items:flex-start}article.node-type-evenement.view-mode-full div.cols div.col{flex:0 0 calc(50% - 1em);max-width:calc(50% - 1em)}article.node-type-evenement.view-mode-full div.cols div.col.left{z-index:10}article.node-type-evenement.view-mode-full div.cols div.col.left>header{transform-origin:0 0;width:205%;z-index:100;pointer-events:none}article.node-type-evenement.view-mode-full div.cols div.col.left>header>h2.node-title{position:relative;font-size:12em;margin:0}article.node-type-evenement.view-mode-full div.cols div.col.left>header>h2.node-title.leshed-svg-export-target{pointer-events:painted}article.node-type-evenement.view-mode-full div.cols div.col.left .field_artiste_s_invite_s{font-size:1.8em;font-weight:300}article.node-type-evenement.view-mode-full div.cols div.col.left .field_invite_accompagne_curate_p,article.node-type-evenement.view-mode-full div.cols div.col.left .field_partenaire_s{margin-top:1em;font-weight:400}article.node-type-evenement.view-mode-full div.cols div.col.left .field_invite_accompagne_curate_p .field-label,article.node-type-evenement.view-mode-full div.cols div.col.left .field_partenaire_s .field-label{font-weight:200}article.node-type-evenement.view-mode-full div.cols div.col.left .field_dates{margin-top:1em}article.node-type-evenement.view-mode-full div.cols div.col.left .field_dates time{font-weight:400}article.node-type-evenement.view-mode-full div.cols div.col.left>div.spacer{display:block;height:5em}article.node-type-evenement.view-mode-full div.cols div.col.right{display:flex}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images{flex:1}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images:after{display:block;position:relative;content:"";width:100%;height:100vh}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item{position:relative}@media (min-width: 768px){article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item{position:sticky;top:0}}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure{margin:0}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure a{display:block}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure a img{width:100%;max-width:100%;height:auto}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption{margin:0;position:absolute;bottom:0;left:0;height:5em;width:100%;overflow:visible;display:block}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote{position:absolute;bottom:0;left:0;width:100%;margin:0;background-color:#000000a6;color:#fff;pointer-events:none}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote p{margin:0;padding:1em;font-weight:300;font-size:.8em}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote{opacity:0;transition:opacity .3s ease-in-out}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption:hover blockquote{opacity:1}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item:hover{z-index:200}article.node-type-evenement.view-mode-full .field_dates.digit-dates{transform-origin:0 0}article.node-type-evenement.view-mode-full .field_dates.digit-dates time{display:grid;grid-template-columns:18em 7em;grid-template-rows:auto auto;grid-template-areas:"day month" "day year"}article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-day{grid-area:day;font-size:18em}article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-month{grid-area:month;align-self:end}article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-year{grid-area:year}article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-month,article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-year{font-size:6em}div.views-archives-projets{display:flex;flex-direction:row;flex-wrap:wrap;gap:2em}div.views-archives-projets div.views-row{flex:1 0 calc(25% - 2em);width:calc(25% - 2em)}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste>header>h2{font-size:5em}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste.has-image>header div.field_images{position:relative;z-index:5}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste.has-image>header div.field_images a{display:block}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste.has-image>header div.field_images a img{width:100%;height:auto}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste div.field_artiste_s_invite_s.field-items.multiple .field-item{display:inline-block}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste div.field_artiste_s_invite_s.field-items.multiple .field-item:not(:last-of-type):after{content:", "}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste>header>h2{font-size:3em}div.views-archives-evenementskorganizer{display:flex;flex-direction:row;flex-wrap:wrap;gap:2em}div.views-archives-evenementskorganizer div.views-row{flex:1 0 calc(25% - 2em);width:calc(25% - 2em)}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste>header>h2{font-size:5em}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste.has-image>header div.field_images{position:relative;z-index:5}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste.has-image>header div.field_images a{display:block}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste.has-image>header div.field_images a img{width:100%;height:auto}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste>header .field_dates{font-size:3em}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste>header>h2{font-size:3em}.splitting .word,.splitting .char{display:inline-block}.splitting .char{position:relative}.splitting .char:before,.splitting .char:after{content:attr(data-char);position:absolute;top:0;left:0;visibility:hidden;transition:inherit;-webkit-user-select:none;user-select:none}.splitting{--word-center: calc((var(--word-total) - 1) / 2);--char-center: calc((var(--char-total) - 1) / 2);--line-center: calc((var(--line-total) - 1) / 2)}.splitting .word{--word-percent: calc(var(--word-index) / var(--word-total));--line-percent: calc(var(--line-index) / var(--line-total))}.splitting .char{--char-percent: calc(var(--char-index) / var(--char-total));--char-offset: calc(var(--char-index) - var(--char-center));--distance: calc( (var(--char-offset) * var(--char-offset)) / var(--char-center) );--distance-sine: calc(var(--char-offset) / var(--char-center));--distance-percent: calc((var(--distance) / var(--char-center)))}.splitting.cells img{width:100%;display:block}@supports (display: grid){.splitting.cells{position:relative;overflow:hidden;background-size:cover;visibility:hidden}.splitting .cell-grid{background:inherit;position:absolute;top:0;left:0;width:100%;height:100%;display:grid;grid-template:repeat(var(--row-total),1fr) / repeat(var(--col-total),1fr)}.splitting .cell{background:inherit;position:relative;overflow:hidden}.splitting .cell-inner{background:inherit;position:absolute;visibility:visible;width:calc(100% * var(--col-total));height:calc(100% * var(--row-total));left:calc(-100% * var(--col-index));top:calc(-100% * var(--row-index))}.splitting .cell{--center-x: calc((var(--col-total) - 1) / 2);--center-y: calc((var(--row-total) - 1) / 2);--offset-x: calc(var(--col-index) - var(--center-x));--offset-y: calc(var(--row-index) - var(--center-y));--distance-x: calc( (var(--offset-x) * var(--offset-x)) / var(--center-x) );--distance-y: calc( (var(--offset-y) * var(--offset-y)) / var(--center-y) )}} +@font-face{font-family:Epilogue;src:url(./fonts/Epilogue-Italic-VariableFont_wght.ttf) format("truetype");src:url(./fonts/Epilogue-Italic-VariableFont_wght.ttf) format("truetype") tech(variations);font-weight:100 900;font-style:italic;font-display:block}@font-face{font-family:Epilogue;src:url(./fonts/Epilogue-VariableFont_wght.ttf) format("truetype");src:url(./fonts/Epilogue-VariableFont_wght.ttf) format("truetype") tech(variations);font-weight:100 900;font-style:normal;font-display:block}body{font-family:Epilogue;font-weight:400;font-style:normal}a,a:visited{text-decoration:none;color:inherit;transition:color .15s ease-out}body{margin:0;font-weight:200;line-height:1.5}.splitting span.word,.splitting span.char{display:inline}div.layout-container{display:flex;flex-direction:column;height:100vh;overflow:hidden;max-width:1080px;margin:0 auto}div.layout-container header[role=banner]{display:block;position:relative;padding:.5em 0;flex:1 1 70px;z-index:100;height:70px;min-height:70px}div.layout-container main[role=main]{flex:1 1 auto;overflow-y:scroll}header[role=banner]{background-color:#fff}header[role=banner] .header-middle{display:flex;justify-content:space-between;align-items:center;padding:.2em 0}header[role=banner] #block-leshed-identitedusite a{text-decoration:none;font-size:2em;font-weight:500;margin-right:.5em}header[role=banner] .header-right{height:20px;width:20px;cursor:pointer}header[role=banner] .header-right>div#burger-btn{position:relative;transition-duration:.5s;transition-property:transform;top:8.5px}header[role=banner] .header-right>div#burger-btn,header[role=banner] .header-right>div#burger-btn:before,header[role=banner] .header-right>div#burger-btn:after{width:20px;height:3px;background-color:#000}header[role=banner] .header-right>div#burger-btn:hover,header[role=banner] .header-right>div#burger-btn:hover:before,header[role=banner] .header-right>div#burger-btn:hover:after{background-color:green}header[role=banner] .header-right>div#burger-btn:before,header[role=banner] .header-right>div#burger-btn:after{content:"";position:absolute;left:0}header[role=banner] .header-right>div#burger-btn:before{top:6px}header[role=banner] .header-right>div#burger-btn:after{bottom:6px}header[role=banner] .header-right>div#burger-btn[opened]{transform:rotate(90deg)}header[role=banner] .header-right>div.wrapper{position:fixed;top:70px;left:0;width:100vw;padding:0 calc((100vw - 1080px)/2) 0 calc((100vw - 1080px)/2);background-color:#ffffff4d;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);height:0;overflow:hidden;transition-duration:.5s}header[role=banner] .header-right>div.wrapper[opened]{height:calc(100vh - 70px)}header[role=banner] .header-right>div.wrapper nav#block-leshed-navigationprincipale{padding-top:10px}header[role=banner] .header-right>div.wrapper nav#block-leshed-navigationprincipale>ul{margin:0;padding:0}header[role=banner] .header-right>div.wrapper nav#block-leshed-navigationprincipale>ul li{list-style:none}header[role=banner] .header-right>div.wrapper nav#block-leshed-navigationprincipale>ul li a{font-size:4em;font-weight:200;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #fff) drop-shadow(0 0 15px #fff)}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul{margin:0;padding:0}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul li{list-style:none;padding:0;display:inline-block;font-size:2em}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul li:first-child:after{content:" /";font-weight:200}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul li:last-child{padding-left:.3em}header[role=banner] .header-right>div.wrapper div#block-leshed-selecteurdelangue ul li.is-active{font-weight:400}.variable-title{margin:0;font-weight:200;text-transform:lowercase;line-height:1;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 15px #fff)}.variable-title span.word span.char{letter-spacing:-.1em}:where(#block-leshed-identitedusite>a,article.node-type-projet>header>h2,article.node-type-projet>.cols>.left>h2,article.node-type-projet.view-mode-full h2.node-title,article.node-type-evenement>header>h2,article.node-type-evenement>header>.field_dates>time,article.node-type-evenement.view-mode-full h2.node-title,article.node-type-evenement.view-mode-full .field_dates.digit-dates span.date-part):not(.splitting){margin:0;font-weight:200;text-transform:lowercase;line-height:1;letter-spacing:-.1em}@media (scripting: enabled){:where(#block-leshed-identitedusite>a,article.node-type-projet>header>h2,article.node-type-projet>.cols>.left>h2,article.node-type-projet.view-mode-full h2.node-title,article.node-type-evenement>header>h2,article.node-type-evenement>header>.field_dates>time,article.node-type-evenement.view-mode-full h2.node-title,article.node-type-evenement.view-mode-full .field_dates.digit-dates span.date-part):not(.is-ready){visibility:hidden;animation:leshed-title-failsafe 0s 3s forwards}}@keyframes leshed-title-failsafe{to{visibility:visible}}div.layout.layout--twocol-section--50-50{flex-wrap:nowrap;align-items:flex-start;column-gap:2em}div.layout.layout--twocol-section--50-50 div.layout__region{max-width:calc(50% - 1em);flex:1 0 calc(50% - 1em)}div.layout.layout--twocol-section--50-50 div.layout__region .views-row{margin-bottom:2em;max-width:100%}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet>header>h2{font-size:5em}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images{position:relative;z-index:5}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images a{display:block}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images a img{width:100%;height:auto}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet div.field_artiste_s_invite_s.field-items.multiple .field-item{display:inline-block}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet div.field_artiste_s_invite_s.field-items.multiple .field-item:not(:last-of-type):after{content:", "}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement>header>h2{font-size:5em}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement.has-image>header div.field_images{position:relative;z-index:5}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement.has-image>header div.field_images a{display:block}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement.has-image>header div.field_images a img{width:100%;height:auto}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-evenement>header .field_dates{font-size:3em}article.node-type-projet.view-mode-full div.cols{display:flex;flex-direction:row;gap:2em;align-items:flex-start}article.node-type-projet.view-mode-full div.cols div.col{flex:0 0 calc(50% - 1em);max-width:calc(50% - 1em)}article.node-type-projet.view-mode-full div.cols div.col.left{z-index:10}article.node-type-projet.view-mode-full div.cols div.col.left>header{transform-origin:0 0;width:205%;z-index:100;pointer-events:none}article.node-type-projet.view-mode-full div.cols div.col.left>header>h2.node-title{position:relative;font-size:12em;margin:0}article.node-type-projet.view-mode-full div.cols div.col.left>header>h2.node-title.leshed-svg-export-target{pointer-events:painted}article.node-type-projet.view-mode-full div.cols div.col.left .field_artiste_s_invite_s{font-size:1.8em;font-weight:300}article.node-type-projet.view-mode-full div.cols div.col.left .field_invite_accompagne_curate_p,article.node-type-projet.view-mode-full div.cols div.col.left .field_partenaire_s{margin-top:1em;font-weight:400}article.node-type-projet.view-mode-full div.cols div.col.left .field_invite_accompagne_curate_p .field-label,article.node-type-projet.view-mode-full div.cols div.col.left .field_partenaire_s .field-label{font-weight:200}article.node-type-projet.view-mode-full div.cols div.col.left .field_dates{margin-top:1em}article.node-type-projet.view-mode-full div.cols div.col.left .field_dates time{font-weight:400}article.node-type-projet.view-mode-full div.cols div.col.left>div.spacer{display:block;height:5em}article.node-type-projet.view-mode-full div.cols div.col.right{display:flex}article.node-type-projet.view-mode-full div.cols div.col.right .field_images{flex:1}article.node-type-projet.view-mode-full div.cols div.col.right .field_images:after{display:block;position:relative;content:"";width:100%;height:100vh}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item{position:relative}@media (min-width: 768px){article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item{position:sticky;top:0}}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure{margin:0}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure a{display:block}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure a img{width:100%;max-width:100%;height:auto}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption{margin:0;position:absolute;bottom:0;left:0;height:5em;width:100%;overflow:visible;display:block}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote{position:absolute;bottom:0;left:0;width:100%;margin:0;background-color:#000000a6;color:#fff;pointer-events:none}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote p{margin:0;padding:1em;font-weight:300;font-size:.8em}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote{opacity:0;transition:opacity .3s ease-in-out}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption:hover blockquote{opacity:1}article.node-type-projet.view-mode-full div.cols div.col.right .field_images .field-item:hover{z-index:200}article.node-type-evenement.view-mode-full div.cols{display:flex;flex-direction:row;gap:2em;align-items:flex-start}article.node-type-evenement.view-mode-full div.cols div.col{flex:0 0 calc(50% - 1em);max-width:calc(50% - 1em)}article.node-type-evenement.view-mode-full div.cols div.col.left{z-index:10}article.node-type-evenement.view-mode-full div.cols div.col.left>header{transform-origin:0 0;width:205%;z-index:100;pointer-events:none}article.node-type-evenement.view-mode-full div.cols div.col.left>header>h2.node-title{position:relative;font-size:12em;margin:0}article.node-type-evenement.view-mode-full div.cols div.col.left>header>h2.node-title.leshed-svg-export-target{pointer-events:painted}article.node-type-evenement.view-mode-full div.cols div.col.left .field_artiste_s_invite_s{font-size:1.8em;font-weight:300}article.node-type-evenement.view-mode-full div.cols div.col.left .field_invite_accompagne_curate_p,article.node-type-evenement.view-mode-full div.cols div.col.left .field_partenaire_s{margin-top:1em;font-weight:400}article.node-type-evenement.view-mode-full div.cols div.col.left .field_invite_accompagne_curate_p .field-label,article.node-type-evenement.view-mode-full div.cols div.col.left .field_partenaire_s .field-label{font-weight:200}article.node-type-evenement.view-mode-full div.cols div.col.left .field_dates{margin-top:1em}article.node-type-evenement.view-mode-full div.cols div.col.left .field_dates time{font-weight:400}article.node-type-evenement.view-mode-full div.cols div.col.left>div.spacer{display:block;height:5em}article.node-type-evenement.view-mode-full div.cols div.col.right{display:flex}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images{flex:1}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images:after{display:block;position:relative;content:"";width:100%;height:100vh}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item{position:relative}@media (min-width: 768px){article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item{position:sticky;top:0}}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure{margin:0}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure a{display:block}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure a img{width:100%;max-width:100%;height:auto}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption{margin:0;position:absolute;bottom:0;left:0;height:5em;width:100%;overflow:visible;display:block}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote{position:absolute;bottom:0;left:0;width:100%;margin:0;background-color:#000000a6;color:#fff;pointer-events:none}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote p{margin:0;padding:1em;font-weight:300;font-size:.8em}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption blockquote{opacity:0;transition:opacity .3s ease-in-out}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item figure figcaption.image-field-caption:hover blockquote{opacity:1}article.node-type-evenement.view-mode-full div.cols div.col.right .field_images .field-item:hover{z-index:200}article.node-type-evenement.view-mode-full .field_dates.digit-dates{transform-origin:0 0}article.node-type-evenement.view-mode-full .field_dates.digit-dates time{display:grid;grid-template-columns:18em 7em;grid-template-rows:auto auto;grid-template-areas:"day month" "day year"}article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-day{grid-area:day;font-size:18em}article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-month{grid-area:month;align-self:end}article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-year{grid-area:year}article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-month,article.node-type-evenement.view-mode-full .field_dates.digit-dates time span.date-year{font-size:6em}div.views-archives-projets{display:flex;flex-direction:row;flex-wrap:wrap;gap:2em}div.views-archives-projets div.views-row{flex:1 0 calc(25% - 2em);width:calc(25% - 2em)}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste>header>h2{font-size:5em}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste.has-image>header div.field_images{position:relative;z-index:5}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste.has-image>header div.field_images a{display:block}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste.has-image>header div.field_images a img{width:100%;height:auto}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste div.field_artiste_s_invite_s.field-items.multiple .field-item{display:inline-block}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste div.field_artiste_s_invite_s.field-items.multiple .field-item:not(:last-of-type):after{content:", "}div.views-archives-projets article.node-type-projet.view-mode-tableau_liste>header>h2{font-size:3em}div.views-archives-evenementskorganizer{display:flex;flex-direction:row;flex-wrap:wrap;gap:2em}div.views-archives-evenementskorganizer div.views-row{flex:1 0 calc(25% - 2em);width:calc(25% - 2em)}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste>header>h2{font-size:5em}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste.has-image>header div.field_images{position:relative;z-index:5}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste.has-image>header div.field_images a{display:block}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste.has-image>header div.field_images a img{width:100%;height:auto}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste>header .field_dates{font-size:3em}div.views-archives-evenementskorganizer article.node-type-evenement.view-mode-tableau_liste>header>h2{font-size:3em}.splitting .word,.splitting .char{display:inline-block}.splitting .char{position:relative}.splitting .char:before,.splitting .char:after{content:attr(data-char);position:absolute;top:0;left:0;visibility:hidden;transition:inherit;-webkit-user-select:none;user-select:none}.splitting{--word-center: calc((var(--word-total) - 1) / 2);--char-center: calc((var(--char-total) - 1) / 2);--line-center: calc((var(--line-total) - 1) / 2)}.splitting .word{--word-percent: calc(var(--word-index) / var(--word-total));--line-percent: calc(var(--line-index) / var(--line-total))}.splitting .char{--char-percent: calc(var(--char-index) / var(--char-total));--char-offset: calc(var(--char-index) - var(--char-center));--distance: calc( (var(--char-offset) * var(--char-offset)) / var(--char-center) );--distance-sine: calc(var(--char-offset) / var(--char-center));--distance-percent: calc((var(--distance) / var(--char-center)))}.splitting.cells img{width:100%;display:block}@supports (display: grid){.splitting.cells{position:relative;overflow:hidden;background-size:cover;visibility:hidden}.splitting .cell-grid{background:inherit;position:absolute;top:0;left:0;width:100%;height:100%;display:grid;grid-template:repeat(var(--row-total),1fr) / repeat(var(--col-total),1fr)}.splitting .cell{background:inherit;position:relative;overflow:hidden}.splitting .cell-inner{background:inherit;position:absolute;visibility:visible;width:calc(100% * var(--col-total));height:calc(100% * var(--row-total));left:calc(-100% * var(--col-index));top:calc(-100% * var(--row-index))}.splitting .cell{--center-x: calc((var(--col-total) - 1) / 2);--center-y: calc((var(--row-total) - 1) / 2);--offset-x: calc(var(--col-index) - var(--center-x));--offset-y: calc(var(--row-index) - var(--center-y));--distance-x: calc( (var(--offset-x) * var(--offset-x)) / var(--center-x) );--distance-y: calc( (var(--offset-y) * var(--offset-y)) / var(--center-y) )}} diff --git a/web/themes/custom/leshed/assets/dist/main.js b/web/themes/custom/leshed/assets/dist/main.js index 8c69f00..8f34ea5 100644 --- a/web/themes/custom/leshed/assets/dist/main.js +++ b/web/themes/custom/leshed/assets/dist/main.js @@ -1,30 +1,30 @@ -var bl=Object.defineProperty;var wl=(o,e,i)=>e in o?bl(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var se=(o,e,i)=>wl(o,typeof e!="symbol"?e+"":e,i);var Wr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sl(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var jo={exports:{}};(function(o,e){(function(i,t){o.exports=t()})(Wr,function(){var i=document,t=i.createTextNode.bind(i);function r(O,N,V){O.style.setProperty(N,V)}function n(O,N){return O.appendChild(N)}function s(O,N,V,ie){var Z=i.createElement("span");return N&&(Z.className=N),V&&(!ie&&Z.setAttribute("data-"+N,V),Z.textContent=V),O&&n(O,Z)||Z}function a(O,N){return O.getAttribute("data-"+N)}function l(O,N){return!O||O.length==0?[]:O.nodeName?[O]:[].slice.call(O[0].nodeName?O:(N||i).querySelectorAll(O))}function u(O){for(var N=[];O--;)N[O]=[];return N}function c(O,N){O&&O.some(N)}function p(O){return function(N){return O[N]}}function h(O,N,V){var ie="--"+N,Z=ie+"-index";c(V,function(le,ce){Array.isArray(le)?c(le,function(Se){r(Se,Z,ce)}):r(le,Z,ce)}),r(O,ie+"-total",V.length)}var f={};function g(O,N,V){var ie=V.indexOf(O);if(ie==-1){V.unshift(O);var Z=f[O];if(!Z)throw new Error("plugin not loaded: "+O);c(Z.depends,function(ce){g(ce,O,V)})}else{var le=V.indexOf(N);V.splice(ie,1),V.splice(le,0,O)}return V}function d(O,N,V,ie){return{by:O,depends:N,key:V,split:ie}}function b(O){return g(O,0,[]).map(p(f))}function y(O){f[O.by]=O}function x(O,N,V,ie,Z){O.normalize();var le=[],ce=document.createDocumentFragment();ie&&le.push(O.previousSibling);var Se=[];return l(O.childNodes).some(function(ge){if(ge.tagName&&!ge.hasChildNodes()){Se.push(ge);return}if(ge.childNodes&&ge.childNodes.length){Se.push(ge),le.push.apply(le,x(ge,N,V,ie,Z));return}var ve=ge.wholeText||"",be=ve.trim();if(be.length){ve[0]===" "&&Se.push(t(" "));var We=V===""&&typeof Intl.Segmenter=="function";c(We?Array.from(new Intl.Segmenter().segment(be)).map(function(et){return et.segment}):be.split(V),function(et,rt){rt&&Z&&Se.push(s(ce,"whitespace"," ",Z));var E=s(ce,N,et);le.push(E),Se.push(E)}),ve[ve.length-1]===" "&&Se.push(t(" "))}}),c(Se,function(ge){n(ce,ge)}),O.innerHTML="",n(O,ce),le}var C=0;function w(O,N){for(var V in N)O[V]=N[V];return O}var T="words",M=d(T,C,"word",function(O){return x(O,"word",/\s+/,0,1)}),S="chars",z=d(S,[T],"char",function(O,N,V){var ie=[];return c(V[T],function(Z,le){ie.push.apply(ie,x(Z,"char","",N.whitespace&&le))}),ie});function A(O){O=O||{};var N=O.key;return l(O.target||"[data-splitting]").map(function(V){var ie=V["🍌"];if(!O.force&&ie)return ie;ie=V["🍌"]={el:V};var Z=O.by||a(V,"splitting");(!Z||Z=="true")&&(Z=S);var le=b(Z),ce=w({},O);return c(le,function(Se){if(Se.split){var ge=Se.by,ve=(N?"-"+N:"")+Se.key,be=Se.split(V,ce,ie);ve&&h(V,ve,be),ie[ge]=be,V.classList.add(ge)}}),V.classList.add("splitting"),ie})}function R(O){O=O||{};var N=O.target=s();return N.innerHTML=O.content,A(O),N.outerHTML}A.html=R,A.add=y;function fe(O,N,V){var ie=l(N.matching||O.children,O),Z={};return c(ie,function(le){var ce=Math.round(le[V]);(Z[ce]||(Z[ce]=[])).push(le)}),Object.keys(Z).map(Number).sort($).map(p(Z))}function $(O,N){return O-N}var xe=d("lines",[T],"line",function(O,N,V){return fe(O,{matching:V[T]},"offsetTop")}),W=d("items",C,"item",function(O,N){return l(N.matching||O.children,O)}),q=d("rows",C,"row",function(O,N){return fe(O,N,"offsetTop")}),Y=d("cols",C,"col",function(O,N){return fe(O,N,"offsetLeft")}),I=d("grid",["rows","cols"]),G="layout",ne=d(G,C,C,function(O,N){var V=N.rows=+(N.rows||a(O,"rows")||1),ie=N.columns=+(N.columns||a(O,"columns")||1);if(N.image=N.image||a(O,"image")||O.currentSrc||O.src,N.image){var Z=l("img",O)[0];N.image=Z&&(Z.currentSrc||Z.src)}N.image&&r(O,"background-image","url("+N.image+")");for(var le=V*ie,ce=[],Se=s(C,"cell-grid");le--;){var ge=s(Se,"cell");s(ge,"cell-inner"),ce.push(ge)}return n(O,Se),ce}),v=d("cellRows",[G],"row",function(O,N,V){var ie=N.rows,Z=u(ie);return c(V[G],function(le,ce,Se){Z[Math.floor(ce/(Se.length/ie))].push(le)}),Z}),we=d("cellColumns",[G],"col",function(O,N,V){var ie=N.columns,Z=u(ie);return c(V[G],function(le,ce){Z[ce%ie].push(le)}),Z}),Re=d("cells",["cellRows","cellColumns"],"cell",function(O,N,V){return V[G]});return y(M),y(z),y(xe),y(W),y(q),y(Y),y(I),y(ne),y(v),y(we),y(Re),A})})(jo);var Tl=jo.exports;const Cl=Sl(Tl);var Ko={exports:{}};(function(o){(function(e,i){o.exports?o.exports=i():e.createHyphenator=i()})(Wr,function(){function e(W){var q="",Y="",I=0,G=W();return function(ne){for(;I"&&(q(),W=!1):Y[0]==="<"&&(!i(Y[1])||Y[1]==="/")&&(W=!0),W}}function r(W){var q=!1;return function(Y,I){return q?!i(I[0])&&i(I[1])&&(Y(),q=!1):!i(I[0])&&I[1]===W&&(q=!0),q}}function n(W,q){return function(){var Y="",I="";function G(){Y+=I,I=""}function ne(v){return Y="",I="",v}return function(v,we){I+=v;var Re=W.reduce(function(O,N){return O||N(G,[v,we])},!1);if(!Re&&(i(v)&&!i(we)&&G(),!i(v)&&i(we))){if(I.length>=q)return ne([Y,I]);G()}if(we==="")return(I.length1)for(var G=0,ne=1;ne-1;)G.push(I);return q[Y.toLocaleLowerCase().replace(/\-/g,"")]=G,q},{})}function u(W){var q=0;function Y(){return W[q++]}return Y}function c(W){var q=0,Y=W;function I(){if(Y=W.slice(q++),!(Y.length<3))return Y}function G(){return q===2}return[I,G]}function p(W,ne,Y,I){for(var G=new Array(W.length+1),ne=("."+ne+".").split(""),v,we,Re,O,N,V,ie=-1,Z,le,ce,Se,ge=G.length;ge--;)G[ge]=0;for(Z=c(ne),le=Z[0],ce=Z[1];v=le();)for(ie++,ce()&&ie--,Re=I,Se=u(v);(we=Se())&&(O=Re[we])!==void 0;){switch(Re={},N=-1,Object.prototype.toString.call(O)){case"[object Array]":Re=O[0],N=O[1];break;case"[object Object]":Re=O;break;case"[object Number]":N=O;break}if(!(N<0)){V=Y[N];for(var ve=0;ve>0,N=R(q,w,d),V=R(q,C,g,A),ie=v+O;if(ne[ie]={},W[2]&&(ne[ie]=fe(W[2],v),G=W[2]),V&&V.length&&(ne[ie]=z(ne[ie],$(V,v)),G=z(G,l(V))),I[ie]=z({},ne[ie]),Y&&!("Promise"in S))throw new Error("Failed to create hyphenator: Could not find global Promise object, needed for hyphenator to work in async mode");return function(Z,le){le=le||{};var ce=R(le,T,v),Se=R(le,M,O)>>0,ge=R(le,C,g,A),ve=ce+Se;return!ne[ve]&&W[2]&&(ne[ve]=fe(W[2],ce),I[ve]=z(I[ve],ne[ve])),ge&&ge.length&&(ne[ve]=z(ne[ve],$(ge,ce)),G=z(G,l(ge)),I[ve]=z(I[ve],ne[ve])),h(Z,we,Re,I[ve],G,ce,N,Se,Y)}}return xe})})(Ko);var El=Ko.exports,dn=El,Pl=function(o){return{hyphenate:dn(o,{async:!0}),hyphenateHTML:dn(o,{async:!0,html:!0}),hyphenateHTMLSync:dn(o,{html:!0}),hyphenateSync:dn(o),patterns:o}},Qo={exports:{}};(function(o){(function(e,i){o.exports?o.exports=i:e.hyphenationPatternsFr=i})(Wr,[[[2,2],[0,4],[0,0,4],[0,0,2],[0,0,3],[0,0,0,3],[0,1,2],[0,0,3,4],[0,0,0,3,4],[1],[0,2],[0,2,1],[0,0,0,0,0,1,2],[0,0,0,0,0,0,1,2],[0,0,0,0,3,4],[1,2],[0,2,2],[0,0,0,0,1,2],[0,0,0,0,2],[0,0,0,0,0,2],[0,0,0,2,3],[0,0,0,0,2,3],[0,0,0,2],[0,2,3],[0,0,0,2,0,3],[4],[2],[0,0,1,2],[0,0,1],[0,0,0,1,2],[0,0,2,1,2],[0,0,3,0,3,2],[0,3],[0,0,0,0,0,0,3],[0,0,0,0,3],[0,0,0,0,0,0,0,0,3],[0,0,0,0,0,0,0,4],[0,0,0,0,0,4],[0,0,0,2,0,0,3],[0,0,0,0,2,3,2],[0,0,2,1],[2,0,3],[0,0,0,4],[0,0,0,0,4],[0,0,2,3],[0,0,0,0,0,3],[0,0,3,2,3],[0,0,3,2],[3,2],[0,2,1,2],[0,0,0,2,1,2],[0,0,0,0,0,1],[0,0,0,0,0,0,0,3],[0,0,0,0,1],[0,0,0,0,0,0,2],[0,0,0,0,4,1],[0,1],[0,0,0,0,0,5],[0,0,0,0,0,0,4],[0,0,0,0,0,4,3],[0,0,0,0,0,0,0,2],[0,0,0,0,4,3],[0,0,0,0,0,0,0,0,2],[0,0,0,0,2,1,2],[0,3,2],[0,0,0,0,0,2,3],[0,0,0,1],[0,0,1,2,2],[0,0,0,0,0,0,3,2],[3,0,2],[0,0,0,2,1],[0,0,0,0,3,2],[0,0,4,5],[2,3],[0,0,0,0,0,3,2]],{"'":[{a:[{b:{r:{é:{a:5}}},e:{s:{c:{h:8}}},l:{c:{o:{o:{l:10}}}},m:{i:{n:{o:{a:{c:13}}}}},n:{a:{s:{t:{r:14}}},e:{s:{t:{h:{é:{s:{i:16}}}}}},t:{i:{a:12,e:[{n:{n:{e:19}}},12],é:12,s:12}}},p:{o:{s:{t:{a:21}}}},s:{t:{a:22}},r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},g:{n:{a:{t:44}}}},2],â:2,e:[{n:{a:29,o:29},u:{r:{a:50}}},2],ê:2,é:2,è:2,i:[{g:{n:{é:44,i:44}},n:{f:{o:{r:{m:{a:{t:10}}}}},a:[{n:{i:{t:20}},u:{g:{u:{r:22}}}},29],e:[{f:{f:{a:{b:22}}},p:{t:22},r:22,x:{o:{r:{a:22}}}},29],é:[{l:{u:{c:{t:{a:20}}}},n:{a:{r:{r:{a:20}}}}},29],i:[{m:{i:{t:{i:20}}},q:20,t:20},29],o:[{c:{u:{l:20}},n:{d:22}},29],s:{t:{a:{b:29}}},t:{e:{r:[{a:60,e:60,é:60,i:60,o:60,u:60,s:60},59]}},u:[{i:{t:22},l:20},29]}},2],o:[{n:{g:{u:{e:{n:{t:{".":5}}}}}},c:{t:{e:{t:10}}},u:{a:{o:{u:53}}},v:{i:{s:{c:17}}}},2],î:2,ô:2,u:2,û:2,y:2},0],".":{a:[{b:{r:{é:{a:4}}},e:{s:{c:{h:7}}},m:{i:{n:{o:{a:{c:12}}}}},n:{a:{s:{t:{r:8}}},t:{i:{a:17,e:[{n:{n:{e:18}}},17],é:17,s:17}}},p:{o:{s:{t:{a:20}}}},s:{t:{a:3}},r:{d:{e:{n:{t:{".":4}}}},g:{e:{n:{t:{".":4}}}},p:{e:{n:{t:{".":4}}}}},g:{n:{a:{t:23}}}},1],â:1,b:{a:{i:{s:{e:{m:{a:{i:{n:24}}}}}}},i:{a:{c:27,t:27,u:28},o:{a:29},s:{a:30},u:27}},c:{h:[{è:{v:{r:{e:{f:{e:{u:{i:{l:{l:{e:38}}}}}}}}}}},2],i:{s:{a:{l:{p:40}}}},o:{n:[{s:43,t:{r:{e:{s:{c:13},m:{a:{î:{t:{r:{e:33}}}}}}}}},42],o:[{l:{i:{e:44}}},27],m:{m:{e:{n:{t:{".":5}}}}}},u:{l:42}},d:{a:{c:{r:{y:{o:{a:13}}}}},é:{a:27,i:{o:28},o:27,s:[{a:{c:{r:46},m:20,t:{e:{l:{l:46}}},s:{t:{r:47}}},c:47,é:[{g:{r:46}},30],e:{n:{s:{i:{b:47}}},r:{t:47},x:{u:47}},i:[{d:46,g:{n:46},l:{i:46},n:{e:{n:46},v:{o:47}},r:46,s:{t:47}},30],o:{d:{é:46},l:46,p:{i:{l:46}},r:{m:47,p:47},u:{f:{r:47}}},œ:40,p:47,t:47,u:{n:30}},3]},i:{a:{c:{é:27,i:{d:27}},l:{d:28},m:{i:27},t:{o:{m:27}}},e:{n:27},s:{h:44}},y:{s:[{a:30,i:30,o:30,u:30},44]},o:{l:{e:{n:{t:{".":4}}}}}},e:[{n:{a:27,o:27},u:{r:{a:30}}},1],ê:1,é:[{m:{i:{n:{e:{n:{t:{".":5}}}}}}},1],è:1,i:[{g:{n:{é:23,i:23}},n:{a:[{n:{i:{t:44}},u:{g:{u:{r:3}}}},27],e:[{f:{f:{a:{b:3}}},p:{t:3},r:3,x:{o:{r:{a:3}}}},27],é:[{l:{u:{c:{t:{a:44}}}},n:{a:{r:{r:{a:44}}}}},27],i:[{m:{i:{t:{i:44}}},q:44,t:44},27],o:[{c:{u:{l:44}},n:{d:3}},27],s:{t:{a:{b:27}}},t:{e:{r:[{a:54,e:54,é:54,i:54,o:54,u:54,s:54},61]}},u:[{i:{t:3},l:44},27]}},1],m:{a:{g:{n:{i:{c:{i:{d:{e:44}}},f:{i:{c:{a:{t:44}}}}},u:{m:44}}},c:{k:44,r:{o:{s:{c:12}}}},l:{a:{d:{r:{e:{s:30},o:30}},i:{s:{é:40}},p:40,v:30},e:{n:40},i:{n:{t:40}},o:{c:40,d:30}},r:{x:40}},é:{g:{o:{h:40}},s:{a:[{n:4},3],e:{s:40},i:40,u:{s:30}},t:{a:{s:{t:{a:17}}}}},i:{l:{l:{i:{a:{m:51}}}}},o:{n:{o:{a:17,e:17,é:17,i:17,ï:{d:{é:17}},o:17,u:17,s:17}}}},p:{r:{o:{g:{n:{a:{t:{h:20}}}},é:29,s:{c:{é:29}},u:{d:{h:71}}},é:{a:[{l:{a:20},u:22},29],é:29,e:29,i:29,o:29,u:29,s:29}},a:{n:{a:{f:30,m:{é:30},r:{a:30}},i:{s:40},o:{p:{h:30,t:40}}},r:{a:{c:{h:{e:30,è:30}},s:17},h:{é:44},e:{n:{t:{".":4}}}},t:{e:{n:{t:{".":4}}}}},e:{n:{t:{a:22}},r:[{a:29,e:29,é:29,i:29,o:29,u:29},2]},é:{r:{i:{o:{s:53},s:[{s:21,t:{a:21}},17],u:17}}},h:[{a:{l:{a:{n:{s:{t:68}}}}}},2],l:{u:{r:{i:{a:51}}}},o:{n:{t:{e:{t:22}}},s:{t:{h:20,i:{n:70},o:50,r:20,s:17}}},s:{y:{c:{h:{o:{a:{n:13}}}}}},u:{d:{d:{l:29}}}},s:{t:{a:{g:{n:20}},i:{l:{l:34}}},y:{n:{g:{n:{a:{t:{h:20}}}}}},a:{r:{m:{e:{n:{t:{".":5}}}}}},e:{r:{m:{e:{n:{t:{".":5}}}}},u:{l:{e:22}}},c:{h:42},h:2,u:{b:{a:[{l:{t:47}},30],é:[{r:46},30],i:{n:40},l:{i:{m:{i:{n:44}},n:44},u:44},u:{r:40}},r:{a:[{t:46},30],e:[{a:{u:47},l:{l:47},t:47},30],é:30,h:44,i:{m:30,n:{f:40,t:40}},o:{f:40,x:40}}},o:{u:{v:{e:{n:{t:{".":5}}}}}}},o:[{n:{g:{u:{e:{n:{t:{".":4}}}}}},u:{a:{o:{u:66}}},v:{i:{s:{c:29}}}},1],î:1,k:{h:2},t:{a:{l:{e:{n:{t:{".":4}}}}},h:2,r:{i:{a:{c:29,n:29,t:29},o:{n:29}}}},g:{e:{m:{m:{e:{n:{t:{".":22}}}}}}},n:{o:{n:{o:{b:{s:40}}}}},ô:1,r:{é:{a:[{l:{e:44,i:{s:44,t:44}},u:{x:3}},27],é:27,e:[{l:3,r:3},27],è:{r:3},i:[{f:{i:44}},27],o:27,u:[{s:{s:3}},22],t:{r:{o:{a:12}}}},e:{s:[{c:{a:{p:44},i:{s:{i:44,o:44}},o:{u:44},r:{i:44}},p:{e:{c:{t:44}},i:{r:44},l:{e:{n:{d:44}}},o:{n:{s:44}}},q:{u:{i:{l:44}}},s:[{e:{n:{t:{".":5}}}},44],t:[{a:{b:7,g:7,n:{d:7},t:7},é:{n:7,r:7},i:{m:7,p:7},o:{c:7,p:7},r:[{e:{i:{n:72}},i:{c:{t:72},n:72}},7],u:7,y:7},44]},27]}},l:{a:{t:{e:{n:{t:{".":4}}}}}},u:1,û:1,y:1},a:{b:{h:3,î:{m:{e:{n:{t:{".":22}}}}},s:{t:{i:{n:{e:{n:{t:{".":45}}}}}},e:{n:{t:{".":4}}}}},d:{h:3},è:{d:{r:{e:6}}},l:{c:{o:{o:{l:9}}},a:{l:{g:{i:11}}}},n:{e:{s:{t:{h:{é:{s:{i:15}}}}}},i:{m:{e:{n:{t:{".":22}}}}},t:{i:{f:{e:{r:{m:{e:{n:{t:{".":52}}}}}}}}}},p:{o:{s:{t:{r:20}}},p:{a:{r:{e:{n:{t:{".":34}}}}}}},r:{c:{h:{i:{é:{p:{i:{s:12}}}}}},m:{i:{l:{l:57}},e:{n:{t:{".":3}}}}},s:{t:{r:{o:23}},m:{e:{n:{t:{".":3}}}}},c:{c:{e:{n:{t:{".":4}}}},q:{u:{i:{e:{s:{c:{e:{n:{t:{".":36}}}}}}}}}},g:{n:{o:{s:23}}},v:{i:{l:{l:43}}},m:{a:{l:{g:{a:{m:{e:{n:{t:{".":54}}}}}}}}},i:{m:{e:{n:{t:{".":3}}}}},u:{m:{e:{n:{t:{".":3}}}}}},b:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:[{u:{t:{i:{l:{l:33}}},m:{e:{n:{t:{".":22}}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},u:{m:{e:{n:{t:{".":22}}}}}},15],u:9,û:9,y:9},ç:9,c:{a:[{o:{u:{t:31}},p:{i:{l:{l:45}}},r:{ê:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}},v:{i:{l:{l:58}}}},g:26,l:[{e:{".":25,s:{".":25}},o:{r:{a:{c:39},é:{t:39}}}},3],m:26,n:26,p:26,r:[{e:{".":25,s:{".":25}},o:{m:{e:{n:{t:{".":18}}}}}},3],s:26,t:26,w:26,i:{e:{n:{d:{e:{n:{t:{".":45}}}}}}}},15],i:[{l:{l:5}},9],î:9,k:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}}},f:26,g:26,h:41,p:26,s:26,t:26},15],l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{e:{n:{t:{".":22}}}}}},15],o:[{a:{c:{c:28,q:28},d:27,p:28,r:28,s:{s:{o:{c:28},u:{r:28}}},u:28,x:28},é:27,e:{f:28,n:28,x:28},n:{u:{r:{b:3}},f:{i:{d:{e:{n:{t:{".":45}}}}}},t:{i:{n:{g:{e:{n:{t:{".":33}}}},e:{n:{t:{".":45}}}}}},n:{i:{v:{e:{n:{t:{".":45}}}}}}},g:{n:{i:{t:{i:44}}}},r:{p:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{p:{é:{t:{e:{n:{t:{".":45}}}}}}}},9],ô:9,œ:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{r:{r:{e:{n:{t:{".":5}}}}}},9],û:9,y:[{r:{i:{l:{l:45}}}},9],c:{i:{d:{e:{n:{t:{".":5}}}}}}},j:[{a:{c:{e:{n:{t:{".":4}}}}},k:26,e:{".":25,s:{".":25},n:{t:{".":26}}}},9],é:{c:{e:{n:{t:{".":32}}},i:{m:{e:{n:{t:{".":22}}}}},u:{m:{e:{n:{t:{".":22}}}}}},d:{e:{n:{t:{".":32}}},h:{i:3},r:{i:{e:15,q:{u:{e:15}}}}},l:{e:{c:{t:{r:15}}},é:{m:{e:{n:{t:15}}}},i:{m:{e:{n:{t:{".":22}}}}},o:{q:{u:{e:{n:{t:{".":5}}}}}}},n:{e:{r:{g:15}},i:{t:{e:{n:{t:{".":5}}}}}},p:{i:{s:{c:{o:{p:[{e:8},20]}}}}},m:{i:{l:{l:43}}},q:{u:{i:{v:{a:{l:{e:{n:{t:{".":58}}}}}},p:{o:{t:{e:{n:{t:{".":33}}}}}}},e:{n:{t:{".":32}}}}},r:{e:{n:{t:{".":32}}}}},m:{u:[{n:{i:{f:{i:{c:{e:{n:{t:{".":33}}}}}}}}},9],i:[{l:{l:[{e:{t:42}},5]},m:{e:{n:{t:{".":3}}}},t:{t:{e:{n:{t:{".":5}}}}}},9],o:[{n:{o:{v:{a:{l:{e:{n:{t:{".":33}}}}}}},t:{r:{é:{a:{l:20}}}}},y:{e:{n:{â:{g:63}}}}},9],a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{c:{o:{n:{t:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,î:9,n:{é:{m:{o:15},s:{i:15}},è:{s:15}},ô:9,œ:9,s:6,û:9,y:9},r:{é:[{t:{i:{c:{e:{n:{t:{".":34}}}}}},g:{e:{n:{t:{".":4}}}},s:{u:{r:{g:{e:{n:{t:{".":45}}}}}}},m:{a:{n:{e:{n:{t:{".":34}}}}}}},9],i:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}}},9],c:{i:{l:{l:43}}},m:{i:{l:{l:43}}},e:[{l:{e:{n:{t:{".":4}}},i:{m:{e:{n:{t:{".":18}}}}}},p:{e:{n:{t:{".":4}}}},".":25,s:{".":25},n:{t:{".":26}}},9],u:[{l:{e:{n:{t:{".":4}}}}},9],a:[{m:{e:{n:{t:{".":3}}}},i:{m:{e:{n:{t:{".":5}}}}},d:{i:{o:{a:12}}}},9],y:[{t:{h:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,è:9,ê:9,h:[{e:{".":25,s:{".":25},u:{r:73}},y:{d:{r:73}}},15],î:9,o:9,ô:9,û:9},p:{r:[{i:{v:{a:{t:{d:{o:{c:{e:{n:{t:{".":35}}}},z:{e:{n:{t:{".":35}}}}}}}}}},u:{d:{e:{n:{t:{".":5}}}}},é:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{e:{n:{t:{".":5}}}}},o:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{t:{a:{t:20}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{g:{n:{a:{b:{l:{e:44}},c:44}}},p:{i:{l:{l:45}}},s:{i:{l:{l:45}}}},9],a:[{p:{i:{l:{l:{a:45,e:45,i:45,o:{m:45}}}}},l:{é:{o:{é:12}}}},9],i:[{r:{i:{l:{l:45}}}},9],o:[{l:{y:{v:{a:{l:{e:{n:{t:{".":33}}}}}},a:17,e:17,é:17,è:17,i:17,o:17,s:17,u:17}},a:{s:{t:{r:{e:28}}}}},9],l:[{u:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],e:[{r:{m:{a:{n:{e:{n:{t:{".":45}}}}}},t:{i:{n:{e:{n:{t:{".":45}}}}}},h:5},".":25,s:{".":25},n:{t:{".":26}}},9],â:9,é:[{n:{u:{l:3}},r:{é:{q:67}}},9],è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},l:[{e:{".":25,s:{".":25}}},3],n:26,o:{t:{o:{s:12}}},r:[{e:{".":25,s:{".":25}}},3],s:26,t:[{a:{l:{é:69}},i:{s:69}},26]},15],î:9,n:{é:15,e:{u:15}},ô:9,s:{y:{c:{h:15}}},t:{è:{r:15},é:{r:15}},û:9,y:9},i:{n:{n:{o:{c:{e:{n:{t:{".":34}}}}}},c:{i:{d:{e:{n:{t:{".":34}}}}}},d:{i:{g:{e:{n:{t:{".":34}}}}},u:{l:{g:{e:{n:{t:{".":45}}}}}},o:{l:{e:{n:{t:{".":34}}}}}},t:{e:{l:{l:{i:{g:{e:{n:{t:{".":52}}}}}}}},i:{m:{e:{n:{t:{".":18}}}}}},s:{t:{i:{l:{l:33}}},o:{l:{e:{n:{t:{".":34}}}}}},f:{o:{r:{m:{a:{t:9}}}}}},s:{c:{e:{n:{t:{".":4}}},h:{é:23,i:{a:23,o:23}}},t:{a:{t:6}}},m:{m:{i:{s:{c:{e:{n:{t:{".":37}}}}},n:{e:{n:{t:{".":34}}}}},a:{n:{e:{n:{t:{".":34}}}}}},p:{u:{d:{e:{n:{t:{".":34}}}}},o:{t:{e:{n:{t:{".":34}}}}}}},a:{l:{g:{i:56}},r:{t:{h:{r:56}}}},è:{d:{r:{e:6}}},l:{l:3},b:{r:{i:{l:{l:45}}}},o:{a:{c:{t:27}},x:{y:56}},v:{a:{l:{e:{n:{t:{".":5}}}}}}},e:{s:{c:{e:{n:{t:{".":4}}},o:{p:23},h:23},t:{i:{m:{e:{n:{t:{".":18}}}}}}},n:{i:{v:{r:49}},t:{r:{e:{g:{e:{n:{t:{".":45}}}}}}}},u:{s:{t:{a:{t:27}}}},x:{t:{r:{a:[{c:19,i:19},51]}}},r:{m:{e:{n:{t:{".":3}}}}}},d:{"'":9,a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,d:{h:6},e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{a:{d:{e:{n:{t:{".":34}}}}}},t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,i:[{s:{s:{i:{d:{e:{n:{t:{".":45}}}}}},c:{o:{p:44}},t:{i:{l:{l:33}}}},l:{i:{g:{e:{n:{t:{".":34}}}}}},a:{p:{h:{r:{a:{g:{m:{e:{n:{t:{".":62}}}}}}}}}}},9],h:{a:{l:48},o:{u:{d:48}}},î:9,l:{e:{n:{t:{".":26}}}},o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],s:6,u:9,û:9,y:9},t:{r:[{i:{d:{e:{n:{t:{".":5}}}}},u:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},a:{n:{s:{p:[{a:{r:{e:{n:{t:{".":52}}}}}},21],a:[{c:{t:71},t:{s:71}},63],h:21,o:63,u:63}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],a:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}},c:{h:{y:{a:12}}}},9],e:[{r:{g:{e:{n:{t:{".":5}}}}},m:{p:{é:{r:{a:{m:{e:{n:{t:{".":52}}}}}}}}},s:{t:{a:{m:{e:{n:{t:{".":45}}}}}},".":25},".":25,n:{t:{".":26}}},9],h:[{r:[{i:{l:{l:45}},e:{".":25,s:{".":25}}},3],".":25,e:{".":25,s:{".":25},r:{m:{o:{s:13}}},u:{r:73}},l:26,m:26,n:26,s:26},15],u:[{r:{b:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{e:{n:{t:{".":3}}}},n:{g:{s:21}}},9],o:[{m:{e:{n:{t:{".":3}}}},r:{r:{e:{n:{t:{".":5}}}}}},9],â:9,à:9,c:{h:{i:{n:{t:74}}}},é:[{l:{é:{e:17,i:17,o:{b:17,p:17},s:17}}},9],è:9,ê:9,i:9,î:9,ô:9,t:{l:6},û:9,y:9},f:{a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{u:{l:{e:{n:{t:{".":34}}}}}}},9],è:9,ê:9,i:[{r:{m:{e:{n:{t:{".":22}}}}},c:{h:{u:{m:{e:{n:{t:{".":45}}}}}}}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},i:{t:{i:{l:{l:33}}}}},15],s:6,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:9},g:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:{a:15,e:15,i:15,o:15,y:15},i:[{l:{l:5}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],n:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}},n:{d:{i:{l:{o:{q:{u:{e:{n:{t:{".":35}}}}}}}}}}}},15],u:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},9],û:9,s:6,y:9},s:{e:[{r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},m:{i:{l:{l:37}}},s:{q:{u:{i:{a:13}}},".":25},".":25,n:{t:{".":26}}},9],u:[{c:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},b:{l:{i:{m:{e:{n:{t:{".":19}}}}}},s:29},m:{e:{n:{t:{".":3}}}},r:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},a:{h:47}},p:{e:{r:[{o:54,s:54},55]}}},9],p:{o:{r:[{u:{l:{e:{n:{t:{".":37}}}}}},15]},a:{t:{i:{a:15}}},e:{r:{m:15}},h:{è:{r:15},é:{r:15}},i:{e:{l:15},r:{o:{s:15}}}},l:{a:{l:{o:{m:{e:{n:{t:{".":19}}}}}},v:15},o:{v:15}},a:9,â:9,c:{a:{p:{h:15}},l:{é:{r:15}},o:{p:15},h:[{".":25,e:{".":25,s:{".":25}},s:26},15]},é:9,è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},m:26,o:{m:73},r:26,s:26},15],i:9,î:9,o:9,ô:9,œ:9,t:{a:{n:{d:{a:{r:{d:15}}}}},e:{i:{n:15}},é:{r:{é:{o:{s:13}}}},i:{g:{m:15}},o:{c:{k:15},m:{o:{s:15}}},r:{o:{p:{h:15}},u:{c:{t:{u:15}}}},y:{l:{e:15}}},û:9,y:9},o:{g:{n:{o:{m:{o:{n:{i:23}}},s:{i:23}}}},p:{u:{l:{e:{n:{t:{".":5}}}}}},m:{m:{e:{n:{t:{".":3}}}},b:{u:{d:{s:65}}},n:{i:{s:17,p:{o:{t:{e:{n:{t:{".":33}}}}}}}}},r:{m:{e:{n:{t:{".":3}}}}},b:{l:{o:{n:{g:23}}}},c:{t:{e:{t:9}}},d:{l:6},è:{d:{r:{e:6}}},i:{o:{n:{i:56}}},s:{t:{a:{s:6,t:6},é:{r:{o:6}},i:{m:6},o:{m:6},r:{a:{d:6,t:{u:6}},i:{c:{t:{i:{o:{n:6}}}}}}}},x:{y:{a:29}}},w:{a:[{g:{n:44}},9],e:[{".":25,s:{".":25},n:{t:{".":26}}},9],i:9,o:9,u:9,r:15},h:{a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{m:{i:{é:53},o:{p:{t:17}}}},9],è:9,ê:9,i:[{l:{l:5}},9],î:9,o:9,ô:9,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:[{p:{e:{r:[{a:54,e:54,é:54,i:54,o:54,s:54,u:54},55]},o:{a:17,e:17,é:17,i:17,o:17,s:17,u:17}}},9]},u:{c:{i:{l:{l:43}}},e:{v:{i:{l:{l:37}}}},v:{i:{l:{l:43}}},n:{i:{o:{v:29},a:{x:29}}},s:{t:{r:23}}},v:{a:[{c:{i:{l:{l:37}}},n:{i:{l:{l:{i:{n:45,s:45}}}}}},9],i:[{l:{l:5},d:{i:{m:{e:{n:{t:{".":18}}}}}}},9],e:[{n:{i:{m:{e:{n:{t:{".":18}}}}},t:{r:{i:{p:{o:{t:{e:{n:{t:{".":35}}}}}}}},".":26}},".":25,s:{".":25}},9],â:9,é:[{l:{o:{s:{k:{i:17}}}}},9],è:9,ê:9,î:9,o:[{l:{t:{a:{m:{p:70}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:9,û:9,y:9},l:{i:[{l:{l:5}},9],l:{i:{o:{n:32}},u:{m:{e:{n:{t:{".":22}}}}}},a:[{w:{r:{e:44}}},9],â:9,à:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,î:9,o:9,ô:9,s:{t:6},u:9,û:9,y:9,m:{e:{n:{t:{".":10}}}}},x:{i:{l:{l:5}},e:{n:{t:{".":26}}}},k:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25},15],i:9,î:9,o:9,ô:9,r:15,u:9,û:9,y:9},â:{m:{e:{n:{t:{".":10}}}}},q:[{u:{a:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}}},9],è:{m:{e:{n:{t:{".":10}}}}},n:{u:[{t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,o:9,ô:9,œ:9,û:9,s:{a:{t:{".":64,s:{".":64}}}},x:56,y:9},ô:{m:{e:{n:{t:{".":10}}}}},y:{a:{s:{t:{h:56}},l:{g:{i:56}}},s:{t:{o:{m:6}}}},z:{a:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,i:9,o:9,u:9,y:9}},{}])})(Qo);var kl=Qo.exports,Ml=Pl(kl);function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function Zo(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*! +var gl=Object.defineProperty;var ml=(o,e,i)=>e in o?gl(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var G=(o,e,i)=>ml(o,typeof e!="symbol"?e+"":e,i);function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $o(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*! * GSAP 3.15.0 * https://gsap.com * * @license Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com -*/var qt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Jr={duration:.5,overwrite:!1,delay:0},Fs,dt,Xe,Jt=1e8,He=1/Jt,hs=Math.PI*2,Ol=hs/4,Al=0,Jo=Math.sqrt,Rl=Math.cos,Ll=Math.sin,ut=function(e){return typeof e=="string"},Ke=function(e){return typeof e=="function"},wi=function(e){return typeof e=="number"},Ns=function(e){return typeof e>"u"},_i=function(e){return typeof e=="object"},At=function(e){return e!==!1},Is=function(){return typeof window<"u"},pn=function(e){return Ke(e)||ut(e)},ea=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},bt=Array.isArray,Dl=/random\([^)]+\)/g,zl=/,\s*/g,uo=/(?:-?\.?\d|\.)+/gi,ta=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,hr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Zn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ia=/[+-]=-?[.\d]+/,Fl=/[^,'"\[\]\s]+/gi,Nl=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ue,ci,ds,Hs,Ut={},Fn={},ra,na=function(e){return(Fn=wr(e,Ut))&&zt},Ws=function(e,i){return console.warn("Invalid property",e,"set to",i,"Missing plugin? gsap.registerPlugin()")},en=function(e,i){return!i&&console.warn(e)},sa=function(e,i){return e&&(Ut[e]=i)&&Fn&&(Fn[e]=i)||Ut},tn=function(){return 0},Il={suppressEvents:!0,isStart:!0,kill:!1},Pn={suppressEvents:!0,kill:!1},Hl={suppressEvents:!0},Bs={},Li=[],ps={},oa,Ht={},Jn={},co=30,kn=[],Ys="",Xs=function(e){var i=e[0],t,r;if(_i(i)||Ke(i)||(e=[e]),!(t=(i._gsap||{}).harness)){for(r=kn.length;r--&&!kn[r].targetTest(i););t=kn[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new ka(e[r],t)))||e.splice(r,1);return e},ji=function(e){return e._gsap||Xs(ei(e))[0]._gsap},aa=function(e,i,t){return(t=e[i])&&Ke(t)?e[i]():Ns(t)&&e.getAttribute&&e.getAttribute(i)||t},Rt=function(e,i){return(e=e.split(",")).forEach(i)||e},Ze=function(e){return Math.round(e*1e5)/1e5||0},qe=function(e){return Math.round(e*1e7)/1e7||0},gr=function(e,i){var t=i.charAt(0),r=parseFloat(i.substr(2));return e=parseFloat(e),t==="+"?e+r:t==="-"?e-r:t==="*"?e*r:e/r},Wl=function(e,i){for(var t=i.length,r=0;e.indexOf(i[r])<0&&++ra;)s=s._prev;return s?(i._next=s._next,s._next=i):(i._next=e[t],e[t]=i),i._next?i._next._prev=i:e[r]=i,i._prev=s,i.parent=i._dp=e,i},Gn=function(e,i,t,r){t===void 0&&(t="_first"),r===void 0&&(r="_last");var n=i._prev,s=i._next;n?n._next=s:e[t]===i&&(e[t]=s),s?s._prev=n:e[r]===i&&(e[r]=n),i._next=i._prev=i.parent=null},Fi=function(e,i){e.parent&&(!i||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ki=function(e,i){if(e&&(!i||i._end>e._dur||i._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Xl=function(e){for(var i=e.parent;i&&i.parent;)i._dirty=1,i.totalDuration(),i=i.parent;return e},gs=function(e,i,t,r){return e._startAt&&(dt?e._startAt.revert(Pn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(i,!0,r))},Vl=function o(e){return!e||e._ts&&o(e.parent)},ho=function(e){return e._repeat?Sr(e._tTime,e=e.duration()+e._rDelay)*e:0},Sr=function(e,i){var t=Math.floor(e=qe(e/i));return e&&t===e?t-1:t},Hn=function(e,i){return(e-i._start)*i._ts+(i._ts>=0?0:i._dirty?i.totalDuration():i._tDur)},$n=function(e){return e._end=qe(e._start+(e._tDur/Math.abs(e._ts||e._rts||He)||0))},jn=function(e,i){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=qe(t._time-(e._ts>0?i/e._ts:((e._dirty?e.totalDuration():e._tDur)-i)/-e._ts)),$n(e),t._dirty||Ki(t,e)),e},ha=function(e,i){var t;if((i._time||!i._dur&&i._initted||i._startHe)&&i.render(t,!0)),Ki(e,i)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-He}},hi=function(e,i,t,r){return i.parent&&Fi(i),i._start=qe((wi(t)?t:t||e!==Ue?Kt(e,t,i):e._time)+i._delay),i._end=qe(i._start+(i.totalDuration()/Math.abs(i.timeScale())||0)),fa(e,i,"_first","_last",e._sort?"_start":0),_s(i)||(e._recent=i),r||ha(e,i),e._ts<0&&jn(e,e._tTime),e},da=function(e,i){return(Ut.ScrollTrigger||Ws("scrollTrigger",i))&&Ut.ScrollTrigger.create(i,e)},pa=function(e,i,t,r,n){if(Us(e,i,n),!e._initted)return 1;if(!t&&e._pt&&!dt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&oa!==Bt.frame)return Li.push(e),e._lazy=[n,r],1},ql=function o(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||o(i))},_s=function(e){var i=e.data;return i==="isFromStart"||i==="isStart"},Ul=function(e,i,t,r){var n=e.ratio,s=i<0||!i&&(!e._start&&ql(e)&&!(!e._initted&&_s(e))||(e._ts<0||e._dp._ts<0)&&!_s(e))?0:1,a=e._rDelay,l=0,u,c,p;if(a&&e._repeat&&(l=cn(0,e._tDur,i),c=Sr(l,a),e._yoyo&&c&1&&(s=1-s),c!==Sr(e._tTime,a)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||dt||r||e._zTime===He||!i&&e._zTime){if(!e._initted&&pa(e,i,r,t,l))return;for(p=e._zTime,e._zTime=i||(t?He:0),t||(t=i&&!p),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,u=e._pt;u;)u.r(s,u.d),u=u._next;i<0&&gs(e,i,t,!0),e._onUpdate&&!t&&Xt(e,"onUpdate"),l&&e._repeat&&!t&&e.parent&&Xt(e,"onRepeat"),(i>=e._tDur||i<0)&&e.ratio===s&&(s&&Fi(e,1),!t&&!dt&&(Xt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=i)},Gl=function(e,i,t){var r;if(t>i)for(r=e._first;r&&r._start<=t;){if(r.data==="isPause"&&r._start>i)return r;r=r._next}else for(r=e._last;r&&r._start>=t;){if(r.data==="isPause"&&r._start0&&!r&&jn(e,e._tTime=e._tDur*a),e.parent&&$n(e),t||Ki(e.parent,e),e},po=function(e){return e instanceof Ot?Ki(e):Tr(e,e._dur)},$l={_start:0,endTime:tn,totalDuration:tn},Kt=function o(e,i,t){var r=e.labels,n=e._recent||$l,s=e.duration()>=Jt?n.endTime(!1):e._dur,a,l,u;return ut(i)&&(isNaN(i)||i in r)?(l=i.charAt(0),u=i.substr(-1)==="%",a=i.indexOf("="),l==="<"||l===">"?(a>=0&&(i=i.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(i.substr(1))||0)*(u?(a<0?n:t).totalDuration()/100:1)):a<0?(i in r||(r[i]=s),r[i]):(l=parseFloat(i.charAt(a-1)+i.substr(a+1)),u&&t&&(l=l/100*(bt(t)?t[0]:t).totalDuration()),a>1?o(e,i.substr(0,a-1),t)+l:s+l)):i==null?s:+i},Yr=function(e,i,t){var r=wi(i[1]),n=(r?2:1)+(e<2?0:1),s=i[n],a,l;if(r&&(s.duration=i[1]),s.parent=t,e){for(a=s,l=t;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=At(l.vars.inherit)&&l.parent;s.immediateRender=At(a.immediateRender),e<2?s.runBackwards=1:s.startAt=i[n-1]}return new it(i[0],s,i[n+1])},Wi=function(e,i){return e||e===0?i(e):i},cn=function(e,i,t){return ti?i:t},yt=function(e,i){return!ut(e)||!(i=Nl.exec(e))?"":i[1]},jl=function(e,i,t){return Wi(t,function(r){return cn(e,i,r)})},ms=[].slice,ga=function(e,i){return e&&_i(e)&&"length"in e&&(!i&&!e.length||e.length-1 in e&&_i(e[0]))&&!e.nodeType&&e!==ci},Kl=function(e,i,t){return t===void 0&&(t=[]),e.forEach(function(r){var n;return ut(r)&&!i||ga(r,1)?(n=t).push.apply(n,ei(r)):t.push(r)})||t},ei=function(e,i,t){return Xe&&!i&&Xe.selector?Xe.selector(e):ut(e)&&!t&&(ds||!Cr())?ms.call((i||Hs).querySelectorAll(e),0):bt(e)?Kl(e,t):ga(e)?ms.call(e,0):e?[e]:[]},vs=function(e){return e=ei(e)[0]||en("Invalid scope")||{},function(i){var t=e.current||e.nativeElement||e;return ei(i,t.querySelectorAll?t:t===e?en("Invalid scope")||Hs.createElement("div"):e)}},_a=function(e){return e.sort(function(){return .5-Math.random()})},ma=function(e){if(Ke(e))return e;var i=_i(e)?e:{each:e},t=Qi(i.ease),r=i.from||0,n=parseFloat(i.base)||0,s={},a=r>0&&r<1,l=isNaN(r)||a,u=i.axis,c=r,p=r;return ut(r)?c=p={center:.5,edges:.5,end:1}[r]||0:!a&&l&&(c=r[0],p=r[1]),function(h,f,g){var d=(g||i).length,b=s[d],y,x,C,w,T,M,S,z,A;if(!b){if(A=i.grid==="auto"?0:(i.grid||[1,Jt])[1],!A){for(S=-Jt;S<(S=g[A++].getBoundingClientRect().left)&&AS&&(S=T),Td?d-1:u?u==="y"?d/A:A:Math.max(A,d/A))||0)*(r==="edges"?-1:1),b.b=d<0?n-d:n,b.u=yt(i.amount||i.each)||0,t=t&&d<0?uu(t):t}return d=(b[h]-b.min)/b.max||0,qe(b.b+(t?t(d):d)*b.v)+b.u}},ys=function(e){var i=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var r=qe(Math.round(parseFloat(t)/e)*e*i);return(r-r%1)/i+(wi(t)?0:yt(t))}},va=function(e,i){var t=bt(e),r,n;return!t&&_i(e)&&(r=t=e.radius||Jt,e.values?(e=ei(e.values),(n=!wi(e[0]))&&(r*=r)):e=ys(e.increment)),Wi(i,t?Ke(e)?function(s){return n=e(s),Math.abs(n-s)<=r?n:s}:function(s){for(var a=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=Jt,c=0,p=e.length,h,f;p--;)n?(h=e[p].x-a,f=e[p].y-l,h=h*h+f*f):h=Math.abs(e[p]-a),hr?n-s:s)})},rn=function(e){return e.replace(Dl,function(i){var t=i.indexOf("[")+1,r=i.substring(t||7,t?i.indexOf("]"):i.length-1).split(zl);return ya(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},ba=function(e,i,t,r,n){var s=i-e,a=r-t;return Wi(n,function(l){return t+((l-e)/s*a||0)})},iu=function o(e,i,t,r){var n=isNaN(e+i)?0:function(f){return(1-f)*e+f*i};if(!n){var s=ut(e),a={},l,u,c,p,h;if(t===!0&&(r=1)&&(t=null),s)e={p:e},i={p:i};else if(bt(e)&&!bt(i)){for(c=[],p=e.length,h=p-2,u=1;u(a=Math.abs(a))&&(l=s,n=a);return l},Xt=function(e,i,t){var r=e.vars,n=r[i],s=Xe,a=e._ctx,l,u,c;if(n)return l=r[i+"Params"],u=r.callbackScope||e,t&&Li.length&&Nn(),a&&(Xe=a),c=l?n.apply(u,l):n.call(u),Xe=s,c},Lr=function(e){return Fi(e),e.scrollTrigger&&e.scrollTrigger.kill(!!dt),e.progress()<1&&Xt(e,"onInterrupt"),e},dr,wa=[],Sa=function(e){if(e)if(e=!e.name&&e.default||e,Is()||e.headless){var i=e.name,t=Ke(e),r=i&&!t&&e.init?function(){this._props=[]}:e,n={init:tn,render:js,add:qs,kill:yu,modifier:vu,rawVars:0},s={targetTest:0,get:0,getSetter:$s,aliases:{},register:0};if(Cr(),e!==r){if(Ht[i])return;Gt(r,Gt(In(e,n),s)),wr(r.prototype,wr(n,In(e,s))),Ht[r.prop=i]=r,e.targetTest&&(kn.push(r),Bs[i]=1),i=(i==="css"?"CSS":i.charAt(0).toUpperCase()+i.substr(1))+"Plugin"}sa(i,r),e.register&&e.register(zt,r,Lt)}else wa.push(e)},Ie=255,Dr={aqua:[0,Ie,Ie],lime:[0,Ie,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ie],navy:[0,0,128],white:[Ie,Ie,Ie],olive:[128,128,0],yellow:[Ie,Ie,0],orange:[Ie,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ie,0,0],pink:[Ie,192,203],cyan:[0,Ie,Ie],transparent:[Ie,Ie,Ie,0]},es=function(e,i,t){return e+=e<0?1:e>1?-1:0,(e*6<1?i+(t-i)*e*6:e<.5?t:e*3<2?i+(t-i)*(2/3-e)*6:i)*Ie+.5|0},Ta=function(e,i,t){var r=e?wi(e)?[e>>16,e>>8&Ie,e&Ie]:0:Dr.black,n,s,a,l,u,c,p,h,f,g;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Dr[e])r=Dr[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+n+n+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Ie,r&Ie,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Ie,e&Ie]}else if(e.substr(0,3)==="hsl"){if(r=g=e.match(uo),!i)l=+r[0]%360/360,u=+r[1]/100,c=+r[2]/100,s=c<=.5?c*(u+1):c+u-c*u,n=c*2-s,r.length>3&&(r[3]*=1),r[0]=es(l+1/3,n,s),r[1]=es(l,n,s),r[2]=es(l-1/3,n,s);else if(~e.indexOf("="))return r=e.match(ta),t&&r.length<4&&(r[3]=1),r}else r=e.match(uo)||Dr.transparent;r=r.map(Number)}return i&&!g&&(n=r[0]/Ie,s=r[1]/Ie,a=r[2]/Ie,p=Math.max(n,s,a),h=Math.min(n,s,a),c=(p+h)/2,p===h?l=u=0:(f=p-h,u=c>.5?f/(2-p-h):f/(p+h),l=p===n?(s-a)/f+(se||y<0)&&(t+=y-i),r+=y,T=r-t,C=T-s,(C>0||x)&&(M=++p.frame,h=T-p.time*1e3,p.time=T=T/1e3,s+=C+(C>=n?4:n-C),w=1),x||(l=u(d)),w)for(f=0;f=y&&f--},_listeners:a},p}(),Cr=function(){return!nn&&Bt.wake()},Ae={},nu=/^[\d.\-M][\d.\-,\s]/,su=/["']/g,ou=function(e){for(var i={},t=e.substr(1,e.length-3).split(":"),r=t[0],n=1,s=t.length,a,l,u;n1&&t.config?t.config.apply(null,~e.indexOf("{")?[ou(i[1])]:au(e).split(",").map(ua)):Ae._CE&&nu.test(e)?Ae._CE("",e):t},uu=function(e){return function(i){return 1-e(1-i)}},Qi=function(e,i){return e&&(Ke(e)?e:Ae[e]||lu(e))||i},sr=function(e,i,t,r){t===void 0&&(t=function(l){return 1-i(1-l)}),r===void 0&&(r=function(l){return l<.5?i(l*2)/2:1-i((1-l)*2)/2});var n={easeIn:i,easeOut:t,easeInOut:r},s;return Rt(e,function(a){Ae[a]=Ut[a]=n,Ae[s=a.toLowerCase()]=t;for(var l in n)Ae[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Ae[a+"."+l]=n[l]}),n},Pa=function(e){return function(i){return i<.5?(1-e(1-i*2))/2:.5+e((i-.5)*2)/2}},ts=function o(e,i,t){var r=i>=1?i:1,n=(t||(e?.3:.45))/(i<1?i:1),s=n/hs*(Math.asin(1/r)||0),a=function(c){return c===1?1:r*Math.pow(2,-10*c)*Ll((c-s)*n)+1},l=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:Pa(a);return n=hs/n,l.config=function(u,c){return o(e,u,c)},l},is=function o(e,i){i===void 0&&(i=1.70158);var t=function(s){return s?--s*s*((i+1)*s+i)+1:0},r=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:Pa(t);return r.config=function(n){return o(e,n)},r};Rt("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,e){var i=e<5?e+1:e;sr(o+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},function(t){return 1-Math.pow(1-t,i)},function(t){return t<.5?Math.pow(t*2,i)/2:1-Math.pow((1-t)*2,i)/2})});Ae.Linear.easeNone=Ae.none=Ae.Linear.easeIn;sr("Elastic",ts("in"),ts("out"),ts());(function(o,e){var i=1/e,t=2*i,r=2.5*i,n=function(a){return a0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Tr(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,r){if(Cr(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(jn(this,t),!n._dp||n.parent||ha(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&hi(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===He||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),la(this,t,r)),this},e.time=function(t,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ho(this))%(this._dur+this._rDelay)||(t?this._dur:0),r):this._time},e.totalProgress=function(t,r){return arguments.length?this.totalTime(this.totalDuration()*t,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+ho(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,r):this._repeat?Sr(this._tTime,n)+1:1},e.timeScale=function(t,r){if(!arguments.length)return this._rts===-He?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?Hn(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-He?0:this._rts,this.totalTime(cn(-Math.abs(this._delay),this.totalDuration(),n),r!==!1),$n(this),Xl(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Cr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==He&&(this._tTime-=He)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=qe(t);var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&hi(r,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(At(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var r=this.parent||this._dp;return r?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Hn(r.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=Hl);var r=dt;return dt=t,Vs(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),dt=r,this},e.globalTime=function(t){for(var r=this,n=arguments.length?t:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,po(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var r=this._time;return this._rDelay=t,po(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,r){return this.totalTime(Kt(this,t),At(r))},e.restart=function(t,r){return this.play().totalTime(t?-this._delay:0,At(r)),this._dur||(this._zTime=-He),this},e.play=function(t,r){return t!=null&&this.seek(t,r),this.reversed(!1).paused(!1)},e.reverse=function(t,r){return t!=null&&this.seek(t||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(t,r){return t!=null&&this.seek(t,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-He:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-He,this},e.isActive=function(){var t=this.parent||this._dp,r=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=r&&n1?(r?(s[t]=r,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=r)):delete s[t],this):s[t]},e.then=function(t){var r=this,n=r._prom;return new Promise(function(s){var a=Ke(t)?t:ca,l=function(){var c=r.then;r.then=null,n&&n(),Ke(a)&&(a=a(r))&&(a.then||a===r)&&(r.then=c),s(a),r.then=c};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?l():r._prom=l})},e.kill=function(){Lr(this)},o}();Gt(sn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-He,_prom:0,_ps:!1,_rts:1});var Ot=function(o){Zo(e,o);function e(t,r){var n;return t===void 0&&(t={}),n=o.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=At(t.sortChildren),Ue&&hi(t.parent||Ue,mi(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&da(mi(n),t.scrollTrigger),n}var i=e.prototype;return i.to=function(r,n,s){return Yr(0,arguments,this),this},i.from=function(r,n,s){return Yr(1,arguments,this),this},i.fromTo=function(r,n,s,a){return Yr(2,arguments,this),this},i.set=function(r,n,s){return n.duration=0,n.parent=this,Br(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new it(r,n,Kt(this,s),1),this},i.call=function(r,n,s){return hi(this,it.delayedCall(0,r,n),s)},i.staggerTo=function(r,n,s,a,l,u,c){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=u,s.onCompleteParams=c,s.parent=this,new it(r,s,Kt(this,l)),this},i.staggerFrom=function(r,n,s,a,l,u,c){return s.runBackwards=1,Br(s).immediateRender=At(s.immediateRender),this.staggerTo(r,n,s,a,l,u,c)},i.staggerFromTo=function(r,n,s,a,l,u,c,p){return a.startAt=s,Br(a).immediateRender=At(a.immediateRender),this.staggerTo(r,n,a,l,u,c,p)},i.render=function(r,n,s){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=r<=0?0:qe(r),p=this._zTime<0!=r<0&&(this._initted||!u),h,f,g,d,b,y,x,C,w,T,M,S;if(this!==Ue&&c>l&&r>=0&&(c=l),c!==this._tTime||s||p){if(a!==this._time&&u&&(c+=this._time-a,r+=this._time-a),h=c,w=this._start,C=this._ts,y=!C,p&&(u||(a=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(M=this._yoyo,b=u+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(b*100+r,n,s);if(h=qe(c%b),c===l?(d=this._repeat,h=u):(T=qe(c/b),d=~~T,d&&d===T&&(h=u,d--),h>u&&(h=u)),T=Sr(this._tTime,b),!a&&this._tTime&&T!==d&&this._tTime-T*b-this._dur<=0&&(T=d),M&&d&1&&(h=u-h,S=1),d!==T&&!this._lock){var z=M&&T&1,A=z===(M&&d&1);if(d=a&&r>=0)for(f=this._first;f;){if(g=f._next,(f._act||h>=f._start)&&f._ts&&x!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(h-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(h-f._start)*f._ts,n,s),h!==this._time||!this._ts&&!y){x=0,g&&(c+=this._zTime=-He);break}}f=g}else{f=this._last;for(var R=r<0?r:h;f;){if(g=f._prev,(f._act||R<=f._end)&&f._ts&&x!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(R-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(R-f._start)*f._ts,n,s||dt&&Vs(f)),h!==this._time||!this._ts&&!y){x=0,g&&(c+=this._zTime=R?-He:He);break}}f=g}}if(x&&!n&&(this.pause(),x.render(h>=a?0:-He)._zTime=h>=a?1:-1,this._ts))return this._start=w,$n(this),this.render(r,n,s);this._onUpdate&&!n&&Xt(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&a)&&(w===this._start||Math.abs(C)!==Math.abs(this._ts))&&(this._lock||((r||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Fi(this,1),!n&&!(r<0&&!a)&&(c||a||!l)&&(Xt(this,c===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c0)&&this._prom())))}return this},i.add=function(r,n){var s=this;if(wi(n)||(n=Kt(this,n,r)),!(r instanceof sn)){if(bt(r))return r.forEach(function(a){return s.add(a,n)}),this;if(ut(r))return this.addLabel(r,n);if(Ke(r))r=it.delayedCall(0,r);else return this}return this!==r?hi(this,r,n):this},i.getChildren=function(r,n,s,a){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=-Jt);for(var l=[],u=this._first;u;)u._start>=a&&(u instanceof it?n&&l.push(u):(s&&l.push(u),r&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},i.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},i.remove=function(r){return ut(r)?this.removeLabel(r):Ke(r)?this.killTweensOf(r):(r.parent===this&&Gn(this,r),r===this._recent&&(this._recent=this._last),Ki(this))},i.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=qe(Bt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),o.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},i.addLabel=function(r,n){return this.labels[r]=Kt(this,n),this},i.removeLabel=function(r){return delete this.labels[r],this},i.addPause=function(r,n,s){var a=it.delayedCall(0,n||tn,s);return a.data="isPause",this._hasPause=1,hi(this,a,Kt(this,r))},i.removePause=function(r){var n=this._first;for(r=Kt(this,r);n;)n._start===r&&n.data==="isPause"&&Fi(n),n=n._next},i.killTweensOf=function(r,n,s){for(var a=this.getTweensOf(r,s),l=a.length;l--;)ki!==a[l]&&a[l].kill(r,n);return this},i.getTweensOf=function(r,n){for(var s=[],a=ei(r),l=this._first,u=wi(n),c;l;)l instanceof it?Wl(l._targets,a)&&(u?(!ki||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(c=l.getTweensOf(a,n)).length&&s.push.apply(s,c),l=l._next;return s},i.tweenTo=function(r,n){n=n||{};var s=this,a=Kt(s,r),l=n,u=l.startAt,c=l.onStart,p=l.onStartParams,h=l.immediateRender,f,g=it.to(s,Gt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale())||He,onStart:function(){if(s.pause(),!f){var b=n.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale());g._dur!==b&&Tr(g,b,0,1).render(g._time,!0,!0),f=1}c&&c.apply(g,p||[])}},n));return h?g.render(0):g},i.tweenFromTo=function(r,n,s){return this.tweenTo(n,Gt({startAt:{time:Kt(this,r)}},s))},i.recent=function(){return this._recent},i.nextLabel=function(r){return r===void 0&&(r=this._time),go(this,Kt(this,r))},i.previousLabel=function(r){return r===void 0&&(r=this._time),go(this,Kt(this,r),1)},i.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+He)},i.shiftChildren=function(r,n,s){s===void 0&&(s=0);var a=this._first,l=this.labels,u;for(r=qe(r);a;)a._start>=s&&(a._start+=r,a._end+=r),a=a._next;if(n)for(u in l)l[u]>=s&&(l[u]+=r);return Ki(this)},i.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return o.prototype.invalidate.call(this,r)},i.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Ki(this)},i.totalDuration=function(r){var n=0,s=this,a=s._last,l=Jt,u,c,p;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(p=s.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>l&&s._sort&&a._ts&&!s._lock?(s._lock=1,hi(s,a,c-a._delay,1)._lock=0):l=c,c<0&&a._ts&&(n-=c,(!p&&!s._dp||p&&p.smoothChildTiming)&&(s._start+=qe(c/s._ts),s._time-=c,s._tTime-=c),s.shiftChildren(-c,!1,-1/0),l=0),a._end>n&&a._ts&&(n=a._end),a=u;Tr(s,s===Ue&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(r){if(Ue._ts&&(la(Ue,Hn(r,Ue)),oa=Bt.frame),Bt.frame>=co){co+=qt.autoSleep||120;var n=Ue._first;if((!n||!n._ts)&&qt.autoSleep&&Bt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Bt.sleep()}}},e}(sn);Gt(Ot.prototype,{_lock:0,_hasPause:0,_forcing:0});var cu=function(e,i,t,r,n,s,a){var l=new Lt(this._pt,e,i,0,1,Da,null,n),u=0,c=0,p,h,f,g,d,b,y,x;for(l.b=t,l.e=r,t+="",r+="",(y=~r.indexOf("random("))&&(r=rn(r)),s&&(x=[t,r],s(x,e,i),t=x[0],r=x[1]),h=t.match(Zn)||[];p=Zn.exec(r);)g=p[0],d=r.substring(u,p.index),f?f=(f+1)%5:d.substr(-5)==="rgba("&&(f=1),g!==h[c++]&&(b=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:d||c===1?d:",",s:b,c:g.charAt(1)==="="?gr(b,g)-b:parseFloat(g)-b,m:f&&f<4?Math.round:0},u=Zn.lastIndex);return l.c=u")}),C.duration();else{T={};for(S in g)S==="ease"||S==="easeEach"||pu(S,g[S],T,g.easeEach);for(S in T)for(xe=T[S].sort(function(Y,I){return Y.t-I.t}),$=0,w=0;wl-He&&!c?l:ru&&(h=u)),y=this._yoyo&&g&1,y&&(h=u-h),b=Sr(this._tTime,d),h===a&&!s&&this._initted&&g===b)return this._tTime=p,this;g!==b&&this.vars.repeatRefresh&&!y&&!this._lock&&h!==d&&this._initted&&(this._lock=s=1,this.render(qe(d*g),!0).invalidate()._lock=0)}if(!this._initted){if(pa(this,c?r:h,s,n,p))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&g!==b))return this;if(u!==this._dur)return this.render(r,n,s)}if(this._rEase){var w=h0||!p&&this._ts<0)&&Fi(this,1),!n&&!(c&&!a)&&(p||a||y)&&(Xt(this,p===l?"onComplete":"onReverseComplete",!0),this._prom&&!(p0)&&this._prom()))}return this},i.targets=function(){return this._targets},i.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),o.prototype.invalidate.call(this,r)},i.resetTo=function(r,n,s,a,l){nn||Bt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Us(this,u),c=this._ease(u/this._dur),hu(this,r,n,s,a,c,u,l)?this.resetTo(r,n,s,a,1):(jn(this,0),this.parent||fa(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Lr(this):this.scrollTrigger&&this.scrollTrigger.kill(!!dt),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,ki&&ki.vars.overwrite!==!0)._first||Lr(this),this.parent&&s!==this.timeline.totalDuration()&&Tr(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,l=r?ei(r):a,u=this._ptLookup,c=this._pt,p,h,f,g,d,b,y;if((!n||n==="all")&&Yl(a,l))return n==="all"&&(this._pt=0),Lr(this);for(p=this._op=this._op||[],n!=="all"&&(ut(n)&&(d={},Rt(n,function(x){return d[x]=1}),n=d),n=du(a,n)),y=a.length;y--;)if(~l.indexOf(a[y])){h=u[y],n==="all"?(p[y]=n,g=h,f={}):(f=p[y]=p[y]||{},g=n);for(d in g)b=h&&h[d],b&&((!("kill"in b.d)||b.d.kill(d)===!0)&&Gn(this,b,"_pt"),delete h[d]),f!=="all"&&(f[d]=1)}return this._initted&&!this._pt&&c&&Lr(this),this},e.to=function(r,n){return new e(r,n,arguments[2])},e.from=function(r,n){return Yr(1,arguments)},e.delayedCall=function(r,n,s,a){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(r,n,s){return Yr(2,arguments)},e.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(r,n)},e.killTweensOf=function(r,n,s){return Ue.killTweensOf(r,n,s)},e}(sn);Gt(it.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Rt("staggerTo,staggerFrom,staggerFromTo",function(o){it[o]=function(){var e=new Ot,i=ms.call(arguments,0);return i.splice(o==="staggerFromTo"?5:4,0,0),e[o].apply(e,i)}});var Gs=function(e,i,t){return e[i]=t},Ra=function(e,i,t){return e[i](t)},gu=function(e,i,t,r){return e[i](r.fp,t)},_u=function(e,i,t){return e.setAttribute(i,t)},$s=function(e,i){return Ke(e[i])?Ra:Ns(e[i])&&e.setAttribute?_u:Gs},La=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e6)/1e6,i)},mu=function(e,i){return i.set(i.t,i.p,!!(i.s+i.c*e),i)},Da=function(e,i){var t=i._pt,r="";if(!e&&i.b)r=i.b;else if(e===1&&i.e)r=i.e;else{for(;t;)r=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+r,t=t._next;r+=i.c}i.set(i.t,i.p,r,i)},js=function(e,i){for(var t=i._pt;t;)t.r(e,t.d),t=t._next},vu=function(e,i,t,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(e,i,t),n=s},yu=function(e){for(var i=this._pt,t,r;i;)r=i._next,i.p===e&&!i.op||i.op===e?Gn(this,i,"_pt"):i.dep||(t=1),i=r;return!t},xu=function(e,i,t,r){r.mSet(e,i,r.m.call(r.tween,t,r.mt),r)},za=function(e){for(var i=e._pt,t,r,n,s;i;){for(t=i._next,r=n;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:s)?i._prev._next=i:n=i,(i._next=r)?r._prev=i:s=i,i=t}e._pt=n},Lt=function(){function o(i,t,r,n,s,a,l,u,c){this.t=t,this.s=n,this.c=s,this.p=r,this.r=a||La,this.d=l||this,this.set=u||Gs,this.pr=c||0,this._next=i,i&&(i._prev=this)}var e=o.prototype;return e.modifier=function(t,r,n){this.mSet=this.mSet||this.set,this.set=xu,this.m=t,this.mt=n,this.tween=r},o}();Rt(Ys+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(o){return Bs[o]=1});Ut.TweenMax=Ut.TweenLite=it;Ut.TimelineLite=Ut.TimelineMax=Ot;Ue=new Ot({sortChildren:!1,defaults:Jr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});qt.stringFilter=Ea;var Zi=[],Mn={},bu=[],mo=0,wu=0,rs=function(e){return(Mn[e]||bu).map(function(i){return i()})},bs=function(){var e=Date.now(),i=[];e-mo>2&&(rs("matchMediaInit"),Zi.forEach(function(t){var r=t.queries,n=t.conditions,s,a,l,u;for(a in r)s=ci.matchMedia(r[a]).matches,s&&(l=1),s!==n[a]&&(n[a]=s,u=1);u&&(t.revert(),l&&i.push(t))}),rs("matchMediaRevert"),i.forEach(function(t){return t.onMatch(t,function(r){return t.add(null,r)})}),mo=e,rs("matchMedia"))},Fa=function(){function o(i,t){this.selector=t&&vs(t),this.data=[],this._r=[],this.isReverted=!1,this.id=wu++,i&&this.add(i)}var e=o.prototype;return e.add=function(t,r,n){Ke(t)&&(n=r,r=t,t=Ke);var s=this,a=function(){var u=Xe,c=s.selector,p;return u&&u!==s&&u.data.push(s),n&&(s.selector=vs(n)),Xe=s,p=r.apply(s,arguments),Ke(p)&&s._r.push(p),Xe=u,s.selector=c,s.isReverted=!1,p};return s.last=a,t===Ke?a(s,function(l){return s.add(null,l)}):t?s[t]=a:a},e.ignore=function(t){var r=Xe;Xe=null,t(this),Xe=r},e.getTweens=function(){var t=[];return this.data.forEach(function(r){return r instanceof o?t.push.apply(t,r.getTweens()):r instanceof it&&!(r.parent&&r.parent.data==="nested")&&t.push(r)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,r){var n=this;if(t?function(){for(var a=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,p){return p.g-c.g||-1/0}).forEach(function(c){return c.t.revert(t)}),l=n.data.length;l--;)u=n.data[l],u instanceof Ot?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof it)&&u.revert&&u.revert(t);n._r.forEach(function(c){return c(t,n)}),n.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var s=Zi.length;s--;)Zi[s].id===this.id&&Zi.splice(s,1)},e.revert=function(t){this.kill(t||{})},o}(),Su=function(){function o(i){this.contexts=[],this.scope=i,Xe&&Xe.data.push(this)}var e=o.prototype;return e.add=function(t,r,n){_i(t)||(t={matches:t});var s=new Fa(0,n||this.scope),a=s.conditions={},l,u,c;Xe&&!s.selector&&(s.selector=Xe.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=t;for(u in t)u==="all"?c=1:(l=ci.matchMedia(t[u]),l&&(Zi.indexOf(s)<0&&Zi.push(s),(a[u]=l.matches)&&(c=1),l.addListener?l.addListener(bs):l.addEventListener("change",bs)));return c&&r(s,function(p){return s.add(null,p)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(r){return r.kill(t,!0)})},o}(),Wn={registerPlugin:function(){for(var e=arguments.length,i=new Array(e),t=0;t1){var r=e.map(function(c){return zt.quickSetter(c,i,t)}),n=r.length;return function(c){for(var p=n;p--;)r[p](c)}}e=e[0]||{};var s=Ht[i],a=ji(e),l=a.harness&&(a.harness.aliases||{})[i]||i,u=s?function(c){var p=new s;dr._pt=0,p.init(e,t?c+t:c,dr,0,[e]),p.render(1,p),dr._pt&&js(1,dr)}:a.set(e,l);return s?u:function(c){return u(e,l,t?c+t:c,a,1)}},quickTo:function(e,i,t){var r,n=zt.to(e,Gt((r={},r[i]="+=0.1",r.paused=!0,r.stagger=0,r),t||{})),s=function(l,u,c){return n.resetTo(i,l,u,c)};return s.tween=n,s},isTweening:function(e){return Ue.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Qi(e.ease,Jr.ease)),fo(Jr,e||{})},config:function(e){return fo(qt,e||{})},registerEffect:function(e){var i=e.name,t=e.effect,r=e.plugins,n=e.defaults,s=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Ht[a]&&!Ut[a]&&en(i+" effect requires "+a+" plugin.")}),Jn[i]=function(a,l,u){return t(ei(a),Gt(l||{},n),u)},s&&(Ot.prototype[i]=function(a,l,u){return this.add(Jn[i](a,_i(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,i){Ae[e]=Qi(i)},parseEase:function(e,i){return arguments.length?Qi(e,i):Ae},getById:function(e){return Ue.getById(e)},exportRoot:function(e,i){e===void 0&&(e={});var t=new Ot(e),r,n;for(t.smoothChildTiming=At(e.smoothChildTiming),Ue.remove(t),t._dp=0,t._time=t._tTime=Ue._time,r=Ue._first;r;)n=r._next,(i||!(!r._dur&&r instanceof it&&r.vars.onComplete===r._targets[0]))&&hi(t,r,r._start-r._delay),r=n;return hi(Ue,t,0),t},context:function(e,i){return e?new Fa(e,i):Xe},matchMedia:function(e){return new Su(e)},matchMediaRefresh:function(){return Zi.forEach(function(e){var i=e.conditions,t,r;for(r in i)i[r]&&(i[r]=!1,t=1);t&&e.revert()})||bs()},addEventListener:function(e,i){var t=Mn[e]||(Mn[e]=[]);~t.indexOf(i)||t.push(i)},removeEventListener:function(e,i){var t=Mn[e],r=t&&t.indexOf(i);r>=0&&t.splice(r,1)},utils:{wrap:eu,wrapYoyo:tu,distribute:ma,random:ya,snap:va,normalize:Jl,getUnit:yt,clamp:jl,splitColor:Ta,toArray:ei,selector:vs,mapRange:ba,pipe:Ql,unitize:Zl,interpolate:iu,shuffle:_a},install:na,effects:Jn,ticker:Bt,updateRoot:Ot.updateRoot,plugins:Ht,globalTimeline:Ue,core:{PropTween:Lt,globals:sa,Tween:it,Timeline:Ot,Animation:sn,getCache:ji,_removeLinkedListItem:Gn,reverting:function(){return dt},context:function(e){return e&&Xe&&(Xe.data.push(e),e._ctx=Xe),Xe},suppressOverwrites:function(e){return Fs=e}}};Rt("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return Wn[o]=it[o]});Bt.add(Ot.updateRoot);dr=Wn.to({},{duration:0});var Tu=function(e,i){for(var t=e._pt;t&&t.p!==i&&t.op!==i&&t.fp!==i;)t=t._next;return t},Cu=function(e,i){var t=e._targets,r,n,s;for(r in i)for(n=t.length;n--;)s=e._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=Tu(s,r)),s&&s.modifier&&s.modifier(i[r],e,t[n],r))},ns=function(e,i){return{name:e,headless:1,rawVars:1,init:function(r,n,s){s._onInit=function(a){var l,u;if(ut(n)&&(l={},Rt(n,function(c){return l[c]=1}),n=l),i){l={};for(u in n)l[u]=i(n[u]);n=l}Cu(a,n)}}}},zt=Wn.registerPlugin({name:"attr",init:function(e,i,t,r,n){var s,a,l;this.tween=t;for(s in i)l=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(l||0)+"",i[s],r,n,0,0,s),a.op=s,a.b=l,this._props.push(s)},render:function(e,i){for(var t=i._pt;t;)dt?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,i){for(var t=i.length;t--;)this.add(e,t,e[t]||0,i[t],0,0,0,0,0,1)}},ns("roundProps",ys),ns("modifiers"),ns("snap",va))||Wn;it.version=Ot.version=zt.version="3.15.0";ra=1;Is()&&Cr();Ae.Power0;Ae.Power1;Ae.Power2;Ae.Power3;Ae.Power4;Ae.Linear;Ae.Quad;Ae.Cubic;Ae.Quart;Ae.Quint;Ae.Strong;Ae.Elastic;Ae.Back;Ae.SteppedEase;Ae.Bounce;Ae.Sine;Ae.Expo;Ae.Circ;/*! +*/var Vt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Zr={duration:.5,overwrite:!1,delay:0},Ls,ct,Ae,Zt=1e8,Pe=1/Zt,cs=Math.PI*2,vl=cs/4,xl=0,Go=Math.sqrt,yl=Math.cos,bl=Math.sin,it=function(e){return typeof e=="string"},Be=function(e){return typeof e=="function"},wi=function(e){return typeof e=="number"},zs=function(e){return typeof e>"u"},gi=function(e){return typeof e=="object"},Mt=function(e){return e!==!1},Fs=function(){return typeof window<"u"},hn=function(e){return Be(e)||it(e)},jo=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},xt=Array.isArray,wl=/random\([^)]+\)/g,Sl=/,\s*/g,ao=/(?:-?\.?\d|\.)+/gi,Ko=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,hr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Kn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Qo=/[+-]=-?[.\d]+/,Tl=/[^,'"\[\]\s]+/gi,Cl=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ie,ci,fs,Is,Ut={},Ln={},Zo,Jo=function(e){return(Ln=wr(e,Ut))&&Lt},Ns=function(e,i){return console.warn("Invalid property",e,"set to",i,"Missing plugin? gsap.registerPlugin()")},Jr=function(e,i){return!i&&console.warn(e)},ea=function(e,i){return e&&(Ut[e]=i)&&Ln&&(Ln[e]=i)||Ut},en=function(){return 0},El={suppressEvents:!0,isStart:!0,kill:!1},Cn={suppressEvents:!0,kill:!1},kl={suppressEvents:!0},Hs={},Di=[],hs={},ta,Nt={},Qn={},lo=30,En=[],Ws="",Bs=function(e){var i=e[0],t,r;if(gi(i)||Be(i)||(e=[e]),!(t=(i._gsap||{}).harness)){for(r=En.length;r--&&!En[r].targetTest(i););t=En[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Sa(e[r],t)))||e.splice(r,1);return e},ji=function(e){return e._gsap||Bs(Jt(e))[0]._gsap},ia=function(e,i,t){return(t=e[i])&&Be(t)?e[i]():zs(t)&&e.getAttribute&&e.getAttribute(i)||t},Rt=function(e,i){return(e=e.split(",")).forEach(i)||e},Xe=function(e){return Math.round(e*1e5)/1e5||0},Fe=function(e){return Math.round(e*1e7)/1e7||0},_r=function(e,i){var t=i.charAt(0),r=parseFloat(i.substr(2));return e=parseFloat(e),t==="+"?e+r:t==="-"?e-r:t==="*"?e*r:e/r},Pl=function(e,i){for(var t=i.length,r=0;e.indexOf(i[r])<0&&++ra;)s=s._prev;return s?(i._next=s._next,s._next=i):(i._next=e[t],e[t]=i),i._next?i._next._prev=i:e[r]=i,i._prev=s,i.parent=i._dp=e,i},Un=function(e,i,t,r){t===void 0&&(t="_first"),r===void 0&&(r="_last");var n=i._prev,s=i._next;n?n._next=s:e[t]===i&&(e[t]=s),s?s._prev=n:e[r]===i&&(e[r]=n),i._next=i._prev=i.parent=null},Fi=function(e,i){e.parent&&(!i||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ki=function(e,i){if(e&&(!i||i._end>e._dur||i._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Rl=function(e){for(var i=e.parent;i&&i.parent;)i._dirty=1,i.totalDuration(),i=i.parent;return e},ds=function(e,i,t,r){return e._startAt&&(ct?e._startAt.revert(Cn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(i,!0,r))},Al=function o(e){return!e||e._ts&&o(e.parent)},co=function(e){return e._repeat?Sr(e._tTime,e=e.duration()+e._rDelay)*e:0},Sr=function(e,i){var t=Math.floor(e=Fe(e/i));return e&&t===e?t-1:t},In=function(e,i){return(e-i._start)*i._ts+(i._ts>=0?0:i._dirty?i.totalDuration():i._tDur)},qn=function(e){return e._end=Fe(e._start+(e._tDur/Math.abs(e._ts||e._rts||Pe)||0))},$n=function(e,i){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=Fe(t._time-(e._ts>0?i/e._ts:((e._dirty?e.totalDuration():e._tDur)-i)/-e._ts)),qn(e),t._dirty||Ki(t,e)),e},aa=function(e,i){var t;if((i._time||!i._dur&&i._initted||i._startPe)&&i.render(t,!0)),Ki(e,i)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-Pe}},hi=function(e,i,t,r){return i.parent&&Fi(i),i._start=Fe((wi(t)?t:t||e!==Ie?jt(e,t,i):e._time)+i._delay),i._end=Fe(i._start+(i.totalDuration()/Math.abs(i.timeScale())||0)),oa(e,i,"_first","_last",e._sort?"_start":0),ps(i)||(e._recent=i),r||aa(e,i),e._ts<0&&$n(e,e._tTime),e},la=function(e,i){return(Ut.ScrollTrigger||Ns("scrollTrigger",i))&&Ut.ScrollTrigger.create(i,e)},ua=function(e,i,t,r,n){if(Vs(e,i,n),!e._initted)return 1;if(!t&&e._pt&&!ct&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&ta!==Wt.frame)return Di.push(e),e._lazy=[n,r],1},Dl=function o(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||o(i))},ps=function(e){var i=e.data;return i==="isFromStart"||i==="isStart"},Ll=function(e,i,t,r){var n=e.ratio,s=i<0||!i&&(!e._start&&Dl(e)&&!(!e._initted&&ps(e))||(e._ts<0||e._dp._ts<0)&&!ps(e))?0:1,a=e._rDelay,l=0,u,c,d;if(a&&e._repeat&&(l=un(0,e._tDur,i),c=Sr(l,a),e._yoyo&&c&1&&(s=1-s),c!==Sr(e._tTime,a)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||ct||r||e._zTime===Pe||!i&&e._zTime){if(!e._initted&&ua(e,i,r,t,l))return;for(d=e._zTime,e._zTime=i||(t?Pe:0),t||(t=i&&!d),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,u=e._pt;u;)u.r(s,u.d),u=u._next;i<0&&ds(e,i,t,!0),e._onUpdate&&!t&&Yt(e,"onUpdate"),l&&e._repeat&&!t&&e.parent&&Yt(e,"onRepeat"),(i>=e._tDur||i<0)&&e.ratio===s&&(s&&Fi(e,1),!t&&!ct&&(Yt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=i)},zl=function(e,i,t){var r;if(t>i)for(r=e._first;r&&r._start<=t;){if(r.data==="isPause"&&r._start>i)return r;r=r._next}else for(r=e._last;r&&r._start>=t;){if(r.data==="isPause"&&r._start0&&!r&&$n(e,e._tTime=e._tDur*a),e.parent&&qn(e),t||Ki(e.parent,e),e},fo=function(e){return e instanceof Ot?Ki(e):Tr(e,e._dur)},Fl={_start:0,endTime:en,totalDuration:en},jt=function o(e,i,t){var r=e.labels,n=e._recent||Fl,s=e.duration()>=Zt?n.endTime(!1):e._dur,a,l,u;return it(i)&&(isNaN(i)||i in r)?(l=i.charAt(0),u=i.substr(-1)==="%",a=i.indexOf("="),l==="<"||l===">"?(a>=0&&(i=i.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(i.substr(1))||0)*(u?(a<0?n:t).totalDuration()/100:1)):a<0?(i in r||(r[i]=s),r[i]):(l=parseFloat(i.charAt(a-1)+i.substr(a+1)),u&&t&&(l=l/100*(xt(t)?t[0]:t).totalDuration()),a>1?o(e,i.substr(0,a-1),t)+l:s+l)):i==null?s:+i},Br=function(e,i,t){var r=wi(i[1]),n=(r?2:1)+(e<2?0:1),s=i[n],a,l;if(r&&(s.duration=i[1]),s.parent=t,e){for(a=s,l=t;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Mt(l.vars.inherit)&&l.parent;s.immediateRender=Mt(a.immediateRender),e<2?s.runBackwards=1:s.startAt=i[n-1]}return new qe(i[0],s,i[n+1])},Wi=function(e,i){return e||e===0?i(e):i},un=function(e,i,t){return ti?i:t},mt=function(e,i){return!it(e)||!(i=Cl.exec(e))?"":i[1]},Il=function(e,i,t){return Wi(t,function(r){return un(e,i,r)})},_s=[].slice,ca=function(e,i){return e&&gi(e)&&"length"in e&&(!i&&!e.length||e.length-1 in e&&gi(e[0]))&&!e.nodeType&&e!==ci},Nl=function(e,i,t){return t===void 0&&(t=[]),e.forEach(function(r){var n;return it(r)&&!i||ca(r,1)?(n=t).push.apply(n,Jt(r)):t.push(r)})||t},Jt=function(e,i,t){return Ae&&!i&&Ae.selector?Ae.selector(e):it(e)&&!t&&(fs||!Cr())?_s.call((i||Is).querySelectorAll(e),0):xt(e)?Nl(e,t):ca(e)?_s.call(e,0):e?[e]:[]},gs=function(e){return e=Jt(e)[0]||Jr("Invalid scope")||{},function(i){var t=e.current||e.nativeElement||e;return Jt(i,t.querySelectorAll?t:t===e?Jr("Invalid scope")||Is.createElement("div"):e)}},fa=function(e){return e.sort(function(){return .5-Math.random()})},ha=function(e){if(Be(e))return e;var i=gi(e)?e:{each:e},t=Qi(i.ease),r=i.from||0,n=parseFloat(i.base)||0,s={},a=r>0&&r<1,l=isNaN(r)||a,u=i.axis,c=r,d=r;return it(r)?c=d={center:.5,edges:.5,end:1}[r]||0:!a&&l&&(c=r[0],d=r[1]),function(h,f,_){var p=(_||i).length,v=s[p],C,b,k,w,P,F,E,N,z;if(!v){if(z=i.grid==="auto"?0:(i.grid||[1,Zt])[1],!z){for(E=-Zt;E<(E=_[z++].getBoundingClientRect().left)&&zE&&(E=P),Pp?p-1:u?u==="y"?p/z:z:Math.max(z,p/z))||0)*(r==="edges"?-1:1),v.b=p<0?n-p:n,v.u=mt(i.amount||i.each)||0,t=t&&p<0?Ql(t):t}return p=(v[h]-v.min)/v.max||0,Fe(v.b+(t?t(p):p)*v.v)+v.u}},ms=function(e){var i=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var r=Fe(Math.round(parseFloat(t)/e)*e*i);return(r-r%1)/i+(wi(t)?0:mt(t))}},da=function(e,i){var t=xt(e),r,n;return!t&&gi(e)&&(r=t=e.radius||Zt,e.values?(e=Jt(e.values),(n=!wi(e[0]))&&(r*=r)):e=ms(e.increment)),Wi(i,t?Be(e)?function(s){return n=e(s),Math.abs(n-s)<=r?n:s}:function(s){for(var a=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=Zt,c=0,d=e.length,h,f;d--;)n?(h=e[d].x-a,f=e[d].y-l,h=h*h+f*f):h=Math.abs(e[d]-a),hr?n-s:s)})},tn=function(e){return e.replace(wl,function(i){var t=i.indexOf("[")+1,r=i.substring(t||7,t?i.indexOf("]"):i.length-1).split(Sl);return pa(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},ga=function(e,i,t,r,n){var s=i-e,a=r-t;return Wi(n,function(l){return t+((l-e)/s*a||0)})},Vl=function o(e,i,t,r){var n=isNaN(e+i)?0:function(f){return(1-f)*e+f*i};if(!n){var s=it(e),a={},l,u,c,d,h;if(t===!0&&(r=1)&&(t=null),s)e={p:e},i={p:i};else if(xt(e)&&!xt(i)){for(c=[],d=e.length,h=d-2,u=1;u(a=Math.abs(a))&&(l=s,n=a);return l},Yt=function(e,i,t){var r=e.vars,n=r[i],s=Ae,a=e._ctx,l,u,c;if(n)return l=r[i+"Params"],u=r.callbackScope||e,t&&Di.length&&zn(),a&&(Ae=a),c=l?n.apply(u,l):n.call(u),Ae=s,c},Dr=function(e){return Fi(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ct),e.progress()<1&&Yt(e,"onInterrupt"),e},dr,ma=[],va=function(e){if(e)if(e=!e.name&&e.default||e,Fs()||e.headless){var i=e.name,t=Be(e),r=i&&!t&&e.init?function(){this._props=[]}:e,n={init:en,render:$s,add:Xs,kill:au,modifier:ou,rawVars:0},s={targetTest:0,get:0,getSetter:qs,aliases:{},register:0};if(Cr(),e!==r){if(Nt[i])return;qt(r,qt(Fn(e,n),s)),wr(r.prototype,wr(n,Fn(e,s))),Nt[r.prop=i]=r,e.targetTest&&(En.push(r),Hs[i]=1),i=(i==="css"?"CSS":i.charAt(0).toUpperCase()+i.substr(1))+"Plugin"}ea(i,r),e.register&&e.register(Lt,r,At)}else ma.push(e)},ke=255,Lr={aqua:[0,ke,ke],lime:[0,ke,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ke],navy:[0,0,128],white:[ke,ke,ke],olive:[128,128,0],yellow:[ke,ke,0],orange:[ke,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ke,0,0],pink:[ke,192,203],cyan:[0,ke,ke],transparent:[ke,ke,ke,0]},Zn=function(e,i,t){return e+=e<0?1:e>1?-1:0,(e*6<1?i+(t-i)*e*6:e<.5?t:e*3<2?i+(t-i)*(2/3-e)*6:i)*ke+.5|0},xa=function(e,i,t){var r=e?wi(e)?[e>>16,e>>8&ke,e&ke]:0:Lr.black,n,s,a,l,u,c,d,h,f,_;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Lr[e])r=Lr[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+n+n+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&ke,r&ke,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&ke,e&ke]}else if(e.substr(0,3)==="hsl"){if(r=_=e.match(ao),!i)l=+r[0]%360/360,u=+r[1]/100,c=+r[2]/100,s=c<=.5?c*(u+1):c+u-c*u,n=c*2-s,r.length>3&&(r[3]*=1),r[0]=Zn(l+1/3,n,s),r[1]=Zn(l,n,s),r[2]=Zn(l-1/3,n,s);else if(~e.indexOf("="))return r=e.match(Ko),t&&r.length<4&&(r[3]=1),r}else r=e.match(ao)||Lr.transparent;r=r.map(Number)}return i&&!_&&(n=r[0]/ke,s=r[1]/ke,a=r[2]/ke,d=Math.max(n,s,a),h=Math.min(n,s,a),c=(d+h)/2,d===h?l=u=0:(f=d-h,u=c>.5?f/(2-d-h):f/(d+h),l=d===n?(s-a)/f+(se||C<0)&&(t+=C-i),r+=C,P=r-t,k=P-s,(k>0||b)&&(F=++d.frame,h=P-d.time*1e3,d.time=P=P/1e3,s+=k+(k>=n?4:n-k),w=1),b||(l=u(p)),w)for(f=0;f=C&&f--},_listeners:a},d}(),Cr=function(){return!rn&&Wt.wake()},xe={},ql=/^[\d.\-M][\d.\-,\s]/,$l=/["']/g,Gl=function(e){for(var i={},t=e.substr(1,e.length-3).split(":"),r=t[0],n=1,s=t.length,a,l,u;n1&&t.config?t.config.apply(null,~e.indexOf("{")?[Gl(i[1])]:jl(e).split(",").map(na)):xe._CE&&ql.test(e)?xe._CE("",e):t},Ql=function(e){return function(i){return 1-e(1-i)}},Qi=function(e,i){return e&&(Be(e)?e:xe[e]||Kl(e))||i},sr=function(e,i,t,r){t===void 0&&(t=function(l){return 1-i(1-l)}),r===void 0&&(r=function(l){return l<.5?i(l*2)/2:1-i((1-l)*2)/2});var n={easeIn:i,easeOut:t,easeInOut:r},s;return Rt(e,function(a){xe[a]=Ut[a]=n,xe[s=a.toLowerCase()]=t;for(var l in n)xe[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=xe[a+"."+l]=n[l]}),n},wa=function(e){return function(i){return i<.5?(1-e(1-i*2))/2:.5+e((i-.5)*2)/2}},Jn=function o(e,i,t){var r=i>=1?i:1,n=(t||(e?.3:.45))/(i<1?i:1),s=n/cs*(Math.asin(1/r)||0),a=function(c){return c===1?1:r*Math.pow(2,-10*c)*bl((c-s)*n)+1},l=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:wa(a);return n=cs/n,l.config=function(u,c){return o(e,u,c)},l},es=function o(e,i){i===void 0&&(i=1.70158);var t=function(s){return s?--s*s*((i+1)*s+i)+1:0},r=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:wa(t);return r.config=function(n){return o(e,n)},r};Rt("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,e){var i=e<5?e+1:e;sr(o+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},function(t){return 1-Math.pow(1-t,i)},function(t){return t<.5?Math.pow(t*2,i)/2:1-Math.pow((1-t)*2,i)/2})});xe.Linear.easeNone=xe.none=xe.Linear.easeIn;sr("Elastic",Jn("in"),Jn("out"),Jn());(function(o,e){var i=1/e,t=2*i,r=2.5*i,n=function(a){return a0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Tr(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,r){if(Cr(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for($n(this,t),!n._dp||n.parent||aa(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&hi(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Pe||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ra(this,t,r)),this},e.time=function(t,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+co(this))%(this._dur+this._rDelay)||(t?this._dur:0),r):this._time},e.totalProgress=function(t,r){return arguments.length?this.totalTime(this.totalDuration()*t,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+co(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,r):this._repeat?Sr(this._tTime,n)+1:1},e.timeScale=function(t,r){if(!arguments.length)return this._rts===-Pe?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?In(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-Pe?0:this._rts,this.totalTime(un(-Math.abs(this._delay),this.totalDuration(),n),r!==!1),qn(this),Rl(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Cr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Pe&&(this._tTime-=Pe)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=Fe(t);var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&hi(r,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Mt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var r=this.parent||this._dp;return r?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?In(r.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=kl);var r=ct;return ct=t,Ys(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),ct=r,this},e.globalTime=function(t){for(var r=this,n=arguments.length?t:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,fo(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var r=this._time;return this._rDelay=t,fo(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,r){return this.totalTime(jt(this,t),Mt(r))},e.restart=function(t,r){return this.play().totalTime(t?-this._delay:0,Mt(r)),this._dur||(this._zTime=-Pe),this},e.play=function(t,r){return t!=null&&this.seek(t,r),this.reversed(!1).paused(!1)},e.reverse=function(t,r){return t!=null&&this.seek(t||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(t,r){return t!=null&&this.seek(t,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-Pe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Pe,this},e.isActive=function(){var t=this.parent||this._dp,r=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=r&&n1?(r?(s[t]=r,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=r)):delete s[t],this):s[t]},e.then=function(t){var r=this,n=r._prom;return new Promise(function(s){var a=Be(t)?t:sa,l=function(){var c=r.then;r.then=null,n&&n(),Be(a)&&(a=a(r))&&(a.then||a===r)&&(r.then=c),s(a),r.then=c};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?l():r._prom=l})},e.kill=function(){Dr(this)},o}();qt(nn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Pe,_prom:0,_ps:!1,_rts:1});var Ot=function(o){$o(e,o);function e(t,r){var n;return t===void 0&&(t={}),n=o.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=Mt(t.sortChildren),Ie&&hi(t.parent||Ie,mi(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&la(mi(n),t.scrollTrigger),n}var i=e.prototype;return i.to=function(r,n,s){return Br(0,arguments,this),this},i.from=function(r,n,s){return Br(1,arguments,this),this},i.fromTo=function(r,n,s,a){return Br(2,arguments,this),this},i.set=function(r,n,s){return n.duration=0,n.parent=this,Wr(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new qe(r,n,jt(this,s),1),this},i.call=function(r,n,s){return hi(this,qe.delayedCall(0,r,n),s)},i.staggerTo=function(r,n,s,a,l,u,c){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=u,s.onCompleteParams=c,s.parent=this,new qe(r,s,jt(this,l)),this},i.staggerFrom=function(r,n,s,a,l,u,c){return s.runBackwards=1,Wr(s).immediateRender=Mt(s.immediateRender),this.staggerTo(r,n,s,a,l,u,c)},i.staggerFromTo=function(r,n,s,a,l,u,c,d){return a.startAt=s,Wr(a).immediateRender=Mt(a.immediateRender),this.staggerTo(r,n,a,l,u,c,d)},i.render=function(r,n,s){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=r<=0?0:Fe(r),d=this._zTime<0!=r<0&&(this._initted||!u),h,f,_,p,v,C,b,k,w,P,F,E;if(this!==Ie&&c>l&&r>=0&&(c=l),c!==this._tTime||s||d){if(a!==this._time&&u&&(c+=this._time-a,r+=this._time-a),h=c,w=this._start,k=this._ts,C=!k,d&&(u||(a=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(F=this._yoyo,v=u+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(v*100+r,n,s);if(h=Fe(c%v),c===l?(p=this._repeat,h=u):(P=Fe(c/v),p=~~P,p&&p===P&&(h=u,p--),h>u&&(h=u)),P=Sr(this._tTime,v),!a&&this._tTime&&P!==p&&this._tTime-P*v-this._dur<=0&&(P=p),F&&p&1&&(h=u-h,E=1),p!==P&&!this._lock){var N=F&&P&1,z=N===(F&&p&1);if(p=a&&r>=0)for(f=this._first;f;){if(_=f._next,(f._act||h>=f._start)&&f._ts&&b!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(h-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(h-f._start)*f._ts,n,s),h!==this._time||!this._ts&&!C){b=0,_&&(c+=this._zTime=-Pe);break}}f=_}else{f=this._last;for(var D=r<0?r:h;f;){if(_=f._prev,(f._act||D<=f._end)&&f._ts&&b!==f){if(f.parent!==this)return this.render(r,n,s);if(f.render(f._ts>0?(D-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(D-f._start)*f._ts,n,s||ct&&Ys(f)),h!==this._time||!this._ts&&!C){b=0,_&&(c+=this._zTime=D?-Pe:Pe);break}}f=_}}if(b&&!n&&(this.pause(),b.render(h>=a?0:-Pe)._zTime=h>=a?1:-1,this._ts))return this._start=w,qn(this),this.render(r,n,s);this._onUpdate&&!n&&Yt(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&a)&&(w===this._start||Math.abs(k)!==Math.abs(this._ts))&&(this._lock||((r||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Fi(this,1),!n&&!(r<0&&!a)&&(c||a||!l)&&(Yt(this,c===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c0)&&this._prom())))}return this},i.add=function(r,n){var s=this;if(wi(n)||(n=jt(this,n,r)),!(r instanceof nn)){if(xt(r))return r.forEach(function(a){return s.add(a,n)}),this;if(it(r))return this.addLabel(r,n);if(Be(r))r=qe.delayedCall(0,r);else return this}return this!==r?hi(this,r,n):this},i.getChildren=function(r,n,s,a){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=-Zt);for(var l=[],u=this._first;u;)u._start>=a&&(u instanceof qe?n&&l.push(u):(s&&l.push(u),r&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},i.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},i.remove=function(r){return it(r)?this.removeLabel(r):Be(r)?this.killTweensOf(r):(r.parent===this&&Un(this,r),r===this._recent&&(this._recent=this._last),Ki(this))},i.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Fe(Wt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),o.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},i.addLabel=function(r,n){return this.labels[r]=jt(this,n),this},i.removeLabel=function(r){return delete this.labels[r],this},i.addPause=function(r,n,s){var a=qe.delayedCall(0,n||en,s);return a.data="isPause",this._hasPause=1,hi(this,a,jt(this,r))},i.removePause=function(r){var n=this._first;for(r=jt(this,r);n;)n._start===r&&n.data==="isPause"&&Fi(n),n=n._next},i.killTweensOf=function(r,n,s){for(var a=this.getTweensOf(r,s),l=a.length;l--;)Pi!==a[l]&&a[l].kill(r,n);return this},i.getTweensOf=function(r,n){for(var s=[],a=Jt(r),l=this._first,u=wi(n),c;l;)l instanceof qe?Pl(l._targets,a)&&(u?(!Pi||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(c=l.getTweensOf(a,n)).length&&s.push.apply(s,c),l=l._next;return s},i.tweenTo=function(r,n){n=n||{};var s=this,a=jt(s,r),l=n,u=l.startAt,c=l.onStart,d=l.onStartParams,h=l.immediateRender,f,_=qe.to(s,qt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale())||Pe,onStart:function(){if(s.pause(),!f){var v=n.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale());_._dur!==v&&Tr(_,v,0,1).render(_._time,!0,!0),f=1}c&&c.apply(_,d||[])}},n));return h?_.render(0):_},i.tweenFromTo=function(r,n,s){return this.tweenTo(n,qt({startAt:{time:jt(this,r)}},s))},i.recent=function(){return this._recent},i.nextLabel=function(r){return r===void 0&&(r=this._time),ho(this,jt(this,r))},i.previousLabel=function(r){return r===void 0&&(r=this._time),ho(this,jt(this,r),1)},i.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Pe)},i.shiftChildren=function(r,n,s){s===void 0&&(s=0);var a=this._first,l=this.labels,u;for(r=Fe(r);a;)a._start>=s&&(a._start+=r,a._end+=r),a=a._next;if(n)for(u in l)l[u]>=s&&(l[u]+=r);return Ki(this)},i.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return o.prototype.invalidate.call(this,r)},i.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Ki(this)},i.totalDuration=function(r){var n=0,s=this,a=s._last,l=Zt,u,c,d;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(d=s.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>l&&s._sort&&a._ts&&!s._lock?(s._lock=1,hi(s,a,c-a._delay,1)._lock=0):l=c,c<0&&a._ts&&(n-=c,(!d&&!s._dp||d&&d.smoothChildTiming)&&(s._start+=Fe(c/s._ts),s._time-=c,s._tTime-=c),s.shiftChildren(-c,!1,-1/0),l=0),a._end>n&&a._ts&&(n=a._end),a=u;Tr(s,s===Ie&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(r){if(Ie._ts&&(ra(Ie,In(r,Ie)),ta=Wt.frame),Wt.frame>=lo){lo+=Vt.autoSleep||120;var n=Ie._first;if((!n||!n._ts)&&Vt.autoSleep&&Wt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Wt.sleep()}}},e}(nn);qt(Ot.prototype,{_lock:0,_hasPause:0,_forcing:0});var Zl=function(e,i,t,r,n,s,a){var l=new At(this._pt,e,i,0,1,Oa,null,n),u=0,c=0,d,h,f,_,p,v,C,b;for(l.b=t,l.e=r,t+="",r+="",(C=~r.indexOf("random("))&&(r=tn(r)),s&&(b=[t,r],s(b,e,i),t=b[0],r=b[1]),h=t.match(Kn)||[];d=Kn.exec(r);)_=d[0],p=r.substring(u,d.index),f?f=(f+1)%5:p.substr(-5)==="rgba("&&(f=1),_!==h[c++]&&(v=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:p||c===1?p:",",s:v,c:_.charAt(1)==="="?_r(v,_)-v:parseFloat(_)-v,m:f&&f<4?Math.round:0},u=Kn.lastIndex);return l.c=u")}),k.duration();else{P={};for(E in _)E==="ease"||E==="easeEach"||iu(E,_[E],P,_.easeEach);for(E in P)for(le=P[E].sort(function(_e,Z){return _e.t-Z.t}),X=0,w=0;wl-Pe&&!c?l:ru&&(h=u)),C=this._yoyo&&_&1,C&&(h=u-h),v=Sr(this._tTime,p),h===a&&!s&&this._initted&&_===v)return this._tTime=d,this;_!==v&&this.vars.repeatRefresh&&!C&&!this._lock&&h!==p&&this._initted&&(this._lock=s=1,this.render(Fe(p*_),!0).invalidate()._lock=0)}if(!this._initted){if(ua(this,c?r:h,s,n,d))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&_!==v))return this;if(u!==this._dur)return this.render(r,n,s)}if(this._rEase){var w=h0||!d&&this._ts<0)&&Fi(this,1),!n&&!(c&&!a)&&(d||a||C)&&(Yt(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d0)&&this._prom()))}return this},i.targets=function(){return this._targets},i.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),o.prototype.invalidate.call(this,r)},i.resetTo=function(r,n,s,a,l){rn||Wt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Vs(this,u),c=this._ease(u/this._dur),eu(this,r,n,s,a,c,u,l)?this.resetTo(r,n,s,a,1):($n(this,0),this.parent||oa(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Dr(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ct),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Pi&&Pi.vars.overwrite!==!0)._first||Dr(this),this.parent&&s!==this.timeline.totalDuration()&&Tr(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,l=r?Jt(r):a,u=this._ptLookup,c=this._pt,d,h,f,_,p,v,C;if((!n||n==="all")&&Ml(a,l))return n==="all"&&(this._pt=0),Dr(this);for(d=this._op=this._op||[],n!=="all"&&(it(n)&&(p={},Rt(n,function(b){return p[b]=1}),n=p),n=tu(a,n)),C=a.length;C--;)if(~l.indexOf(a[C])){h=u[C],n==="all"?(d[C]=n,_=h,f={}):(f=d[C]=d[C]||{},_=n);for(p in _)v=h&&h[p],v&&((!("kill"in v.d)||v.d.kill(p)===!0)&&Un(this,v,"_pt"),delete h[p]),f!=="all"&&(f[p]=1)}return this._initted&&!this._pt&&c&&Dr(this),this},e.to=function(r,n){return new e(r,n,arguments[2])},e.from=function(r,n){return Br(1,arguments)},e.delayedCall=function(r,n,s,a){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(r,n,s){return Br(2,arguments)},e.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(r,n)},e.killTweensOf=function(r,n,s){return Ie.killTweensOf(r,n,s)},e}(nn);qt(qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Rt("staggerTo,staggerFrom,staggerFromTo",function(o){qe[o]=function(){var e=new Ot,i=_s.call(arguments,0);return i.splice(o==="staggerFromTo"?5:4,0,0),e[o].apply(e,i)}});var Us=function(e,i,t){return e[i]=t},ka=function(e,i,t){return e[i](t)},ru=function(e,i,t,r){return e[i](r.fp,t)},nu=function(e,i,t){return e.setAttribute(i,t)},qs=function(e,i){return Be(e[i])?ka:zs(e[i])&&e.setAttribute?nu:Us},Pa=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e6)/1e6,i)},su=function(e,i){return i.set(i.t,i.p,!!(i.s+i.c*e),i)},Oa=function(e,i){var t=i._pt,r="";if(!e&&i.b)r=i.b;else if(e===1&&i.e)r=i.e;else{for(;t;)r=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+r,t=t._next;r+=i.c}i.set(i.t,i.p,r,i)},$s=function(e,i){for(var t=i._pt;t;)t.r(e,t.d),t=t._next},ou=function(e,i,t,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(e,i,t),n=s},au=function(e){for(var i=this._pt,t,r;i;)r=i._next,i.p===e&&!i.op||i.op===e?Un(this,i,"_pt"):i.dep||(t=1),i=r;return!t},lu=function(e,i,t,r){r.mSet(e,i,r.m.call(r.tween,t,r.mt),r)},Ma=function(e){for(var i=e._pt,t,r,n,s;i;){for(t=i._next,r=n;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:s)?i._prev._next=i:n=i,(i._next=r)?r._prev=i:s=i,i=t}e._pt=n},At=function(){function o(i,t,r,n,s,a,l,u,c){this.t=t,this.s=n,this.c=s,this.p=r,this.r=a||Pa,this.d=l||this,this.set=u||Us,this.pr=c||0,this._next=i,i&&(i._prev=this)}var e=o.prototype;return e.modifier=function(t,r,n){this.mSet=this.mSet||this.set,this.set=lu,this.m=t,this.mt=n,this.tween=r},o}();Rt(Ws+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(o){return Hs[o]=1});Ut.TweenMax=Ut.TweenLite=qe;Ut.TimelineLite=Ut.TimelineMax=Ot;Ie=new Ot({sortChildren:!1,defaults:Zr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Vt.stringFilter=ba;var Zi=[],kn={},uu=[],_o=0,cu=0,ts=function(e){return(kn[e]||uu).map(function(i){return i()})},xs=function(){var e=Date.now(),i=[];e-_o>2&&(ts("matchMediaInit"),Zi.forEach(function(t){var r=t.queries,n=t.conditions,s,a,l,u;for(a in r)s=ci.matchMedia(r[a]).matches,s&&(l=1),s!==n[a]&&(n[a]=s,u=1);u&&(t.revert(),l&&i.push(t))}),ts("matchMediaRevert"),i.forEach(function(t){return t.onMatch(t,function(r){return t.add(null,r)})}),_o=e,ts("matchMedia"))},Ra=function(){function o(i,t){this.selector=t&&gs(t),this.data=[],this._r=[],this.isReverted=!1,this.id=cu++,i&&this.add(i)}var e=o.prototype;return e.add=function(t,r,n){Be(t)&&(n=r,r=t,t=Be);var s=this,a=function(){var u=Ae,c=s.selector,d;return u&&u!==s&&u.data.push(s),n&&(s.selector=gs(n)),Ae=s,d=r.apply(s,arguments),Be(d)&&s._r.push(d),Ae=u,s.selector=c,s.isReverted=!1,d};return s.last=a,t===Be?a(s,function(l){return s.add(null,l)}):t?s[t]=a:a},e.ignore=function(t){var r=Ae;Ae=null,t(this),Ae=r},e.getTweens=function(){var t=[];return this.data.forEach(function(r){return r instanceof o?t.push.apply(t,r.getTweens()):r instanceof qe&&!(r.parent&&r.parent.data==="nested")&&t.push(r)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,r){var n=this;if(t?function(){for(var a=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,d){return d.g-c.g||-1/0}).forEach(function(c){return c.t.revert(t)}),l=n.data.length;l--;)u=n.data[l],u instanceof Ot?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof qe)&&u.revert&&u.revert(t);n._r.forEach(function(c){return c(t,n)}),n.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var s=Zi.length;s--;)Zi[s].id===this.id&&Zi.splice(s,1)},e.revert=function(t){this.kill(t||{})},o}(),fu=function(){function o(i){this.contexts=[],this.scope=i,Ae&&Ae.data.push(this)}var e=o.prototype;return e.add=function(t,r,n){gi(t)||(t={matches:t});var s=new Ra(0,n||this.scope),a=s.conditions={},l,u,c;Ae&&!s.selector&&(s.selector=Ae.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=t;for(u in t)u==="all"?c=1:(l=ci.matchMedia(t[u]),l&&(Zi.indexOf(s)<0&&Zi.push(s),(a[u]=l.matches)&&(c=1),l.addListener?l.addListener(xs):l.addEventListener("change",xs)));return c&&r(s,function(d){return s.add(null,d)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(r){return r.kill(t,!0)})},o}(),Nn={registerPlugin:function(){for(var e=arguments.length,i=new Array(e),t=0;t1){var r=e.map(function(c){return Lt.quickSetter(c,i,t)}),n=r.length;return function(c){for(var d=n;d--;)r[d](c)}}e=e[0]||{};var s=Nt[i],a=ji(e),l=a.harness&&(a.harness.aliases||{})[i]||i,u=s?function(c){var d=new s;dr._pt=0,d.init(e,t?c+t:c,dr,0,[e]),d.render(1,d),dr._pt&&$s(1,dr)}:a.set(e,l);return s?u:function(c){return u(e,l,t?c+t:c,a,1)}},quickTo:function(e,i,t){var r,n=Lt.to(e,qt((r={},r[i]="+=0.1",r.paused=!0,r.stagger=0,r),t||{})),s=function(l,u,c){return n.resetTo(i,l,u,c)};return s.tween=n,s},isTweening:function(e){return Ie.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Qi(e.ease,Zr.ease)),uo(Zr,e||{})},config:function(e){return uo(Vt,e||{})},registerEffect:function(e){var i=e.name,t=e.effect,r=e.plugins,n=e.defaults,s=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Nt[a]&&!Ut[a]&&Jr(i+" effect requires "+a+" plugin.")}),Qn[i]=function(a,l,u){return t(Jt(a),qt(l||{},n),u)},s&&(Ot.prototype[i]=function(a,l,u){return this.add(Qn[i](a,gi(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,i){xe[e]=Qi(i)},parseEase:function(e,i){return arguments.length?Qi(e,i):xe},getById:function(e){return Ie.getById(e)},exportRoot:function(e,i){e===void 0&&(e={});var t=new Ot(e),r,n;for(t.smoothChildTiming=Mt(e.smoothChildTiming),Ie.remove(t),t._dp=0,t._time=t._tTime=Ie._time,r=Ie._first;r;)n=r._next,(i||!(!r._dur&&r instanceof qe&&r.vars.onComplete===r._targets[0]))&&hi(t,r,r._start-r._delay),r=n;return hi(Ie,t,0),t},context:function(e,i){return e?new Ra(e,i):Ae},matchMedia:function(e){return new fu(e)},matchMediaRefresh:function(){return Zi.forEach(function(e){var i=e.conditions,t,r;for(r in i)i[r]&&(i[r]=!1,t=1);t&&e.revert()})||xs()},addEventListener:function(e,i){var t=kn[e]||(kn[e]=[]);~t.indexOf(i)||t.push(i)},removeEventListener:function(e,i){var t=kn[e],r=t&&t.indexOf(i);r>=0&&t.splice(r,1)},utils:{wrap:Yl,wrapYoyo:Xl,distribute:ha,random:pa,snap:da,normalize:Bl,getUnit:mt,clamp:Il,splitColor:xa,toArray:Jt,selector:gs,mapRange:ga,pipe:Hl,unitize:Wl,interpolate:Vl,shuffle:fa},install:Jo,effects:Qn,ticker:Wt,updateRoot:Ot.updateRoot,plugins:Nt,globalTimeline:Ie,core:{PropTween:At,globals:ea,Tween:qe,Timeline:Ot,Animation:nn,getCache:ji,_removeLinkedListItem:Un,reverting:function(){return ct},context:function(e){return e&&Ae&&(Ae.data.push(e),e._ctx=Ae),Ae},suppressOverwrites:function(e){return Ls=e}}};Rt("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return Nn[o]=qe[o]});Wt.add(Ot.updateRoot);dr=Nn.to({},{duration:0});var hu=function(e,i){for(var t=e._pt;t&&t.p!==i&&t.op!==i&&t.fp!==i;)t=t._next;return t},du=function(e,i){var t=e._targets,r,n,s;for(r in i)for(n=t.length;n--;)s=e._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=hu(s,r)),s&&s.modifier&&s.modifier(i[r],e,t[n],r))},is=function(e,i){return{name:e,headless:1,rawVars:1,init:function(r,n,s){s._onInit=function(a){var l,u;if(it(n)&&(l={},Rt(n,function(c){return l[c]=1}),n=l),i){l={};for(u in n)l[u]=i(n[u]);n=l}du(a,n)}}}},Lt=Nn.registerPlugin({name:"attr",init:function(e,i,t,r,n){var s,a,l;this.tween=t;for(s in i)l=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(l||0)+"",i[s],r,n,0,0,s),a.op=s,a.b=l,this._props.push(s)},render:function(e,i){for(var t=i._pt;t;)ct?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,i){for(var t=i.length;t--;)this.add(e,t,e[t]||0,i[t],0,0,0,0,0,1)}},is("roundProps",ms),is("modifiers"),is("snap",da))||Nn;qe.version=Ot.version=Lt.version="3.15.0";Zo=1;Fs()&&Cr();xe.Power0;xe.Power1;xe.Power2;xe.Power3;xe.Power4;xe.Linear;xe.Quad;xe.Cubic;xe.Quart;xe.Quint;xe.Strong;xe.Elastic;xe.Back;xe.SteppedEase;xe.Bounce;xe.Sine;xe.Expo;xe.Circ;/*! * CSSPlugin 3.15.0 * https://gsap.com * * Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com -*/var vo,Mi,_r,Ks,Gi,yo,Qs,Eu=function(){return typeof window<"u"},Si={},Vi=180/Math.PI,mr=Math.PI/180,or=Math.atan2,xo=1e8,Zs=/([A-Z])/g,Pu=/(left|right|width|margin|padding|x)/i,ku=/[\s,\(]\S/,di={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ws=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e4)/1e4+i.u,i)},Mu=function(e,i){return i.set(i.t,i.p,e===1?i.e:Math.round((i.s+i.c*e)*1e4)/1e4+i.u,i)},Ou=function(e,i){return i.set(i.t,i.p,e?Math.round((i.s+i.c*e)*1e4)/1e4+i.u:i.b,i)},Au=function(e,i){return i.set(i.t,i.p,e===1?i.e:e?Math.round((i.s+i.c*e)*1e4)/1e4+i.u:i.b,i)},Ru=function(e,i){var t=i.s+i.c*e;i.set(i.t,i.p,~~(t+(t<0?-.5:.5))+i.u,i)},Na=function(e,i){return i.set(i.t,i.p,e?i.e:i.b,i)},Ia=function(e,i){return i.set(i.t,i.p,e!==1?i.b:i.e,i)},Lu=function(e,i,t){return e.style[i]=t},Du=function(e,i,t){return e.style.setProperty(i,t)},zu=function(e,i,t){return e._gsap[i]=t},Fu=function(e,i,t){return e._gsap.scaleX=e._gsap.scaleY=t},Nu=function(e,i,t,r,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Iu=function(e,i,t,r,n){var s=e._gsap;s[i]=t,s.renderTransform(n,s)},Ge="transform",Dt=Ge+"Origin",Hu=function o(e,i){var t=this,r=this.target,n=r.style,s=r._gsap;if(e in Si&&n){if(this.tfm=this.tfm||{},e!=="transform")e=di[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return t.tfm[a]=vi(r,a)}):this.tfm[e]=s.x?s[e]:vi(r,e),e===Dt&&(this.tfm.zOrigin=s.zOrigin);else return di.transform.split(",").forEach(function(a){return o.call(t,a,i)});if(this.props.indexOf(Ge)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Dt,i,"")),e=Ge}(n||i)&&this.props.push(e,i,n[e])},Ha=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Wu=function(){var e=this.props,i=this.target,t=i.style,r=i._gsap,n,s;for(n=0;n=0?bo[s]:"")+e},Ts=function(){Eu()&&window.document&&(vo=window,Mi=vo.document,_r=Mi.documentElement,Gi=Ss("div")||{style:{}},Ss("div"),Ge=Er(Ge),Dt=Ge+"Origin",Gi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ba=!!Er("perspective"),Qs=zt.core.reverting,Ks=1)},wo=function(e){var i=e.ownerSVGElement,t=Ss("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0),n;r.style.display="block",t.appendChild(r),_r.appendChild(t);try{n=r.getBBox()}catch{}return t.removeChild(r),_r.removeChild(t),n},So=function(e,i){for(var t=i.length;t--;)if(e.hasAttribute(i[t]))return e.getAttribute(i[t])},Ya=function(e){var i,t;try{i=e.getBBox()}catch{i=wo(e),t=1}return i&&(i.width||i.height)||t||(i=wo(e)),i&&!i.width&&!i.x&&!i.y?{x:+So(e,["x","cx","x1"])||0,y:+So(e,["y","cy","y1"])||0,width:0,height:0}:i},Xa=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ya(e))},Ni=function(e,i){if(i){var t=e.style,r;i in Si&&i!==Dt&&(i=Ge),t.removeProperty?(r=i.substr(0,2),(r==="ms"||i.substr(0,6)==="webkit")&&(i="-"+i),t.removeProperty(r==="--"?i:i.replace(Zs,"-$1").toLowerCase())):t.removeAttribute(i)}},Oi=function(e,i,t,r,n,s){var a=new Lt(e._pt,i,t,0,1,s?Ia:Na);return e._pt=a,a.b=r,a.e=n,e._props.push(t),a},To={deg:1,rad:1,turn:1},Bu={grid:1,flex:1},Ii=function o(e,i,t,r){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",a=Gi.style,l=Pu.test(i),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),p=100,h=r==="px",f=r==="%",g,d,b,y;if(r===s||!n||To[r]||To[s])return n;if(s!=="px"&&!h&&(n=o(e,i,t,"px")),y=e.getCTM&&Xa(e),(f||s==="%")&&(Si[i]||~i.indexOf("adius")))return g=y?e.getBBox()[l?"width":"height"]:e[c],Ze(f?n/g*p:n/100*g);if(a[l?"width":"height"]=p+(h?s:r),d=r!=="rem"&&~i.indexOf("adius")||r==="em"&&e.appendChild&&!u?e:e.parentNode,y&&(d=(e.ownerSVGElement||{}).parentNode),(!d||d===Mi||!d.appendChild)&&(d=Mi.body),b=d._gsap,b&&f&&b.width&&l&&b.time===Bt.time&&!b.uncache)return Ze(n/b.width*p);if(f&&(i==="height"||i==="width")){var x=e.style[i];e.style[i]=p+r,g=e[c],x?e.style[i]=x:Ni(e,i)}else(f||s==="%")&&!Bu[Vt(d,"display")]&&(a.position=Vt(e,"position")),d===e&&(a.position="static"),d.appendChild(Gi),g=Gi[c],d.removeChild(Gi),a.position="absolute";return l&&f&&(b=ji(d),b.time=Bt.time,b.width=d[c]),Ze(h?g*n/p:g&&n?p/g*n:0)},vi=function(e,i,t,r){var n;return Ks||Ts(),i in di&&i!=="transform"&&(i=di[i],~i.indexOf(",")&&(i=i.split(",")[0])),Si[i]&&i!=="transform"?(n=an(e,r),n=i!=="transformOrigin"?n[i]:n.svg?n.origin:Yn(Vt(e,Dt))+" "+n.zOrigin+"px"):(n=e.style[i],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=Bn[i]&&Bn[i](e,i,t)||Vt(e,i)||aa(e,i)||(i==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Ii(e,i,n,t)+t:n},Yu=function(e,i,t,r){if(!t||t==="none"){var n=Er(i,e,1),s=n&&Vt(e,n,1);s&&s!==t?(i=n,t=s):i==="borderColor"&&(t=Vt(e,"borderTopColor"))}var a=new Lt(this._pt,e.style,i,0,1,Da),l=0,u=0,c,p,h,f,g,d,b,y,x,C,w,T;if(a.b=t,a.e=r,t+="",r+="",r.substring(0,6)==="var(--"&&(r=Vt(e,r.substring(4,r.indexOf(")")))),r==="auto"&&(d=e.style[i],e.style[i]=r,r=Vt(e,i)||r,d?e.style[i]=d:Ni(e,i)),c=[t,r],Ea(c),t=c[0],r=c[1],h=t.match(hr)||[],T=r.match(hr)||[],T.length){for(;p=hr.exec(r);)b=p[0],x=r.substring(l,p.index),g?g=(g+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(g=1),b!==(d=h[u++]||"")&&(f=parseFloat(d)||0,w=d.substr((f+"").length),b.charAt(1)==="="&&(b=gr(f,b)+w),y=parseFloat(b),C=b.substr((y+"").length),l=hr.lastIndex-C.length,C||(C=C||qt.units[i]||w,l===r.length&&(r+=C,a.e+=C)),w!==C&&(f=Ii(e,i,d,C)||0),a._pt={_next:a._pt,p:x||u===1?x:",",s:f,c:y-f,m:g&&g<4||i==="zIndex"?Math.round:0});a.c=l-1;)a=n[u],Si[a]&&(l=1,a=a==="transformOrigin"?Dt:Ge),Ni(t,a);l&&(Ni(t,Ge),s&&(s.svg&&t.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",an(t,1),s.uncache=1,Ha(r)))}},Bn={clearProps:function(e,i,t,r,n){if(n.data!=="isFromStart"){var s=e._pt=new Lt(e._pt,i,t,0,0,Vu);return s.u=r,s.pr=-10,s.tween=n,e._props.push(t),1}}},on=[1,0,0,1,0,0],Va={},qa=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Eo=function(e){var i=Vt(e,Ge);return qa(i)?on:i.substr(7).match(ta).map(Ze)},Js=function(e,i){var t=e._gsap||ji(e),r=e.style,n=Eo(e),s,a,l,u;return t.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?on:n):(n===on&&!e.offsetParent&&e!==_r&&!t.svg&&(l=r.display,r.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,_r.appendChild(e)),n=Eo(e),l?r.display=l:Ni(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):_r.removeChild(e))),i&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Cs=function(e,i,t,r,n,s){var a=e._gsap,l=n||Js(e,!0),u=a.xOrigin||0,c=a.yOrigin||0,p=a.xOffset||0,h=a.yOffset||0,f=l[0],g=l[1],d=l[2],b=l[3],y=l[4],x=l[5],C=i.split(" "),w=parseFloat(C[0])||0,T=parseFloat(C[1])||0,M,S,z,A;t?l!==on&&(S=f*b-g*d)&&(z=w*(b/S)+T*(-d/S)+(d*x-b*y)/S,A=w*(-g/S)+T*(f/S)-(f*x-g*y)/S,w=z,T=A):(M=Ya(e),w=M.x+(~C[0].indexOf("%")?w/100*M.width:w),T=M.y+(~(C[1]||C[0]).indexOf("%")?T/100*M.height:T)),r||r!==!1&&a.smooth?(y=w-u,x=T-c,a.xOffset=p+(y*f+x*d)-y,a.yOffset=h+(y*g+x*b)-x):a.xOffset=a.yOffset=0,a.xOrigin=w,a.yOrigin=T,a.smooth=!!r,a.origin=i,a.originIsAbsolute=!!t,e.style[Dt]="0px 0px",s&&(Oi(s,a,"xOrigin",u,w),Oi(s,a,"yOrigin",c,T),Oi(s,a,"xOffset",p,a.xOffset),Oi(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",w+" "+T)},an=function(e,i){var t=e._gsap||new ka(e);if("x"in t&&!i&&!t.uncache)return t;var r=e.style,n=t.scaleX<0,s="px",a="deg",l=getComputedStyle(e),u=Vt(e,Dt)||"0",c,p,h,f,g,d,b,y,x,C,w,T,M,S,z,A,R,fe,$,xe,W,q,Y,I,G,ne,v,we,Re,O,N,V;return c=p=h=d=b=y=x=C=w=0,f=g=1,t.svg=!!(e.getCTM&&Xa(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(r[Ge]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Ge]!=="none"?l[Ge]:"")),r.scale=r.rotate=r.translate="none"),S=Js(e,t.svg),t.svg&&(t.uncache?(G=e.getBBox(),u=t.xOrigin-G.x+"px "+(t.yOrigin-G.y)+"px",I=""):I=!i&&e.getAttribute("data-svg-origin"),Cs(e,I||u,!!I||t.originIsAbsolute,t.smooth!==!1,S)),T=t.xOrigin||0,M=t.yOrigin||0,S!==on&&(fe=S[0],$=S[1],xe=S[2],W=S[3],c=q=S[4],p=Y=S[5],S.length===6?(f=Math.sqrt(fe*fe+$*$),g=Math.sqrt(W*W+xe*xe),d=fe||$?or($,fe)*Vi:0,x=xe||W?or(xe,W)*Vi+d:0,x&&(g*=Math.abs(Math.cos(x*mr))),t.svg&&(c-=T-(T*fe+M*xe),p-=M-(T*$+M*W))):(V=S[6],O=S[7],v=S[8],we=S[9],Re=S[10],N=S[11],c=S[12],p=S[13],h=S[14],z=or(V,Re),b=z*Vi,z&&(A=Math.cos(-z),R=Math.sin(-z),I=q*A+v*R,G=Y*A+we*R,ne=V*A+Re*R,v=q*-R+v*A,we=Y*-R+we*A,Re=V*-R+Re*A,N=O*-R+N*A,q=I,Y=G,V=ne),z=or(-xe,Re),y=z*Vi,z&&(A=Math.cos(-z),R=Math.sin(-z),I=fe*A-v*R,G=$*A-we*R,ne=xe*A-Re*R,N=W*R+N*A,fe=I,$=G,xe=ne),z=or($,fe),d=z*Vi,z&&(A=Math.cos(z),R=Math.sin(z),I=fe*A+$*R,G=q*A+Y*R,$=$*A-fe*R,Y=Y*A-q*R,fe=I,q=G),b&&Math.abs(b)+Math.abs(d)>359.9&&(b=d=0,y=180-y),f=Ze(Math.sqrt(fe*fe+$*$+xe*xe)),g=Ze(Math.sqrt(Y*Y+V*V)),z=or(q,Y),x=Math.abs(z)>2e-4?z*Vi:0,w=N?1/(N<0?-N:N):0),t.svg&&(I=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!qa(Vt(e,Ge)),I&&e.setAttribute("transform",I))),Math.abs(x)>90&&Math.abs(x)<270&&(n?(f*=-1,x+=d<=0?180:-180,d+=d<=0?180:-180):(g*=-1,x+=x<=0?180:-180)),i=i||t.uncache,t.x=c-((t.xPercent=c&&(!i&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=p-((t.yPercent=p&&(!i&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-p)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=h+s,t.scaleX=Ze(f),t.scaleY=Ze(g),t.rotation=Ze(d)+a,t.rotationX=Ze(b)+a,t.rotationY=Ze(y)+a,t.skewX=x+a,t.skewY=C+a,t.transformPerspective=w+s,(t.zOrigin=parseFloat(u.split(" ")[2])||!i&&t.zOrigin||0)&&(r[Dt]=Yn(u)),t.xOffset=t.yOffset=0,t.force3D=qt.force3D,t.renderTransform=t.svg?Uu:Ba?Ua:qu,t.uncache=0,t},Yn=function(e){return(e=e.split(" "))[0]+" "+e[1]},ss=function(e,i,t){var r=yt(i);return Ze(parseFloat(i)+parseFloat(Ii(e,"x",t+"px",r)))+r},qu=function(e,i){i.z="0px",i.rotationY=i.rotationX="0deg",i.force3D=0,Ua(e,i)},Yi="0deg",Or="0px",Xi=") ",Ua=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,l=t.z,u=t.rotation,c=t.rotationY,p=t.rotationX,h=t.skewX,f=t.skewY,g=t.scaleX,d=t.scaleY,b=t.transformPerspective,y=t.force3D,x=t.target,C=t.zOrigin,w="",T=y==="auto"&&e&&e!==1||y===!0;if(C&&(p!==Yi||c!==Yi)){var M=parseFloat(c)*mr,S=Math.sin(M),z=Math.cos(M),A;M=parseFloat(p)*mr,A=Math.cos(M),s=ss(x,s,S*A*-C),a=ss(x,a,-Math.sin(M)*-C),l=ss(x,l,z*A*-C+C)}b!==Or&&(w+="perspective("+b+Xi),(r||n)&&(w+="translate("+r+"%, "+n+"%) "),(T||s!==Or||a!==Or||l!==Or)&&(w+=l!==Or||T?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+Xi),u!==Yi&&(w+="rotate("+u+Xi),c!==Yi&&(w+="rotateY("+c+Xi),p!==Yi&&(w+="rotateX("+p+Xi),(h!==Yi||f!==Yi)&&(w+="skew("+h+", "+f+Xi),(g!==1||d!==1)&&(w+="scale("+g+", "+d+Xi),x.style[Ge]=w||"translate(0, 0)"},Uu=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,l=t.rotation,u=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,f=t.target,g=t.xOrigin,d=t.yOrigin,b=t.xOffset,y=t.yOffset,x=t.forceCSS,C=parseFloat(s),w=parseFloat(a),T,M,S,z,A;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=mr,u*=mr,T=Math.cos(l)*p,M=Math.sin(l)*p,S=Math.sin(l-u)*-h,z=Math.cos(l-u)*h,u&&(c*=mr,A=Math.tan(u-c),A=Math.sqrt(1+A*A),S*=A,z*=A,c&&(A=Math.tan(c),A=Math.sqrt(1+A*A),T*=A,M*=A)),T=Ze(T),M=Ze(M),S=Ze(S),z=Ze(z)):(T=p,z=h,M=S=0),(C&&!~(s+"").indexOf("px")||w&&!~(a+"").indexOf("px"))&&(C=Ii(f,"x",s,"px"),w=Ii(f,"y",a,"px")),(g||d||b||y)&&(C=Ze(C+g-(g*T+d*S)+b),w=Ze(w+d-(g*M+d*z)+y)),(r||n)&&(A=f.getBBox(),C=Ze(C+r/100*A.width),w=Ze(w+n/100*A.height)),A="matrix("+T+","+M+","+S+","+z+","+C+","+w+")",f.setAttribute("transform",A),x&&(f.style[Ge]=A)},Gu=function(e,i,t,r,n){var s=360,a=ut(n),l=parseFloat(n)*(a&&~n.indexOf("rad")?Vi:1),u=l-r,c=r+u+"deg",p,h;return a&&(p=n.split("_")[1],p==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),p==="cw"&&u<0?u=(u+s*xo)%s-~~(u/s)*s:p==="ccw"&&u>0&&(u=(u-s*xo)%s-~~(u/s)*s)),e._pt=h=new Lt(e._pt,i,t,r,u,Mu),h.e=c,h.u="deg",e._props.push(t),h},Po=function(e,i){for(var t in i)e[t]=i[t];return e},$u=function(e,i,t){var r=Po({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,a,l,u,c,p,h,f,g;r.svg?(u=t.getAttribute("transform"),t.setAttribute("transform",""),s[Ge]=i,a=an(t,1),Ni(t,Ge),t.setAttribute("transform",u)):(u=getComputedStyle(t)[Ge],s[Ge]=i,a=an(t,1),s[Ge]=u);for(l in Si)u=r[l],c=a[l],u!==c&&n.indexOf(l)<0&&(f=yt(u),g=yt(c),p=f!==g?Ii(t,l,u,g):parseFloat(u),h=parseFloat(c),e._pt=new Lt(e._pt,a,l,p,h-p,ws),e._pt.u=g||0,e._props.push(l));Po(a,r)};Rt("padding,margin,Width,Radius",function(o,e){var i="Top",t="Right",r="Bottom",n="Left",s=(e<3?[i,t,r,n]:[i+n,i+t,r+t,r+n]).map(function(a){return e<2?o+a:"border"+a+o});Bn[e>1?"border"+o:o]=function(a,l,u,c,p){var h,f;if(arguments.length<4)return h=s.map(function(g){return vi(a,g,u)}),f=h.join(" "),f.split(h[0]).length===5?h[0]:f;h=(c+"").split(" "),f={},s.forEach(function(g,d){return f[g]=h[d]=h[d]||h[(d-1)/2|0]}),a.init(l,f,p)}});var Ga={name:"css",register:Ts,targetTest:function(e){return e.style&&e.nodeType},init:function(e,i,t,r,n){var s=this._props,a=e.style,l=t.vars.startAt,u,c,p,h,f,g,d,b,y,x,C,w,T,M,S,z,A;Ks||Ts(),this.styles=this.styles||Wa(e),z=this.styles.props,this.tween=t;for(d in i)if(d!=="autoRound"&&(c=i[d],!(Ht[d]&&Ma(d,i,t,r,e,n)))){if(f=typeof c,g=Bn[d],f==="function"&&(c=c.call(t,r,e,n),f=typeof c),f==="string"&&~c.indexOf("random(")&&(c=rn(c)),g)g(this,e,d,c,t)&&(S=1);else if(d.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(d)+"").trim(),c+="",Di.lastIndex=0,Di.test(u)||(b=yt(u),y=yt(c),y?b!==y&&(u=Ii(e,d,u,y)+y):b&&(c+=b)),this.add(a,"setProperty",u,c,r,n,0,0,d),s.push(d),z.push(d,0,a[d]);else if(f!=="undefined"){if(l&&d in l?(u=typeof l[d]=="function"?l[d].call(t,r,e,n):l[d],ut(u)&&~u.indexOf("random(")&&(u=rn(u)),yt(u+"")||u==="auto"||(u+=qt.units[d]||yt(vi(e,d))||""),(u+"").charAt(1)==="="&&(u=vi(e,d))):u=vi(e,d),h=parseFloat(u),x=f==="string"&&c.charAt(1)==="="&&c.substr(0,2),x&&(c=c.substr(2)),p=parseFloat(c),d in di&&(d==="autoAlpha"&&(h===1&&vi(e,"visibility")==="hidden"&&p&&(h=0),z.push("visibility",0,a.visibility),Oi(this,a,"visibility",h?"inherit":"hidden",p?"inherit":"hidden",!p)),d!=="scale"&&d!=="transform"&&(d=di[d],~d.indexOf(",")&&(d=d.split(",")[0]))),C=d in Si,C){if(this.styles.save(d),A=c,f==="string"&&c.substring(0,6)==="var(--"){if(c=Vt(e,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var R=e.style.perspective;e.style.perspective=c,c=Vt(e,"perspective"),R?e.style.perspective=R:Ni(e,"perspective")}p=parseFloat(c)}if(w||(T=e._gsap,T.renderTransform&&!i.parseTransform||an(e,i.parseTransform),M=i.smoothOrigin!==!1&&T.smooth,w=this._pt=new Lt(this._pt,a,Ge,0,1,T.renderTransform,T,0,-1),w.dep=1),d==="scale")this._pt=new Lt(this._pt,T,"scaleY",T.scaleY,(x?gr(T.scaleY,x+p):p)-T.scaleY||0,ws),this._pt.u=0,s.push("scaleY",d),d+="X";else if(d==="transformOrigin"){z.push(Dt,0,a[Dt]),c=Xu(c),T.svg?Cs(e,c,0,M,0,this):(y=parseFloat(c.split(" ")[2])||0,y!==T.zOrigin&&Oi(this,T,"zOrigin",T.zOrigin,y),Oi(this,a,d,Yn(u),Yn(c)));continue}else if(d==="svgOrigin"){Cs(e,c,1,M,0,this);continue}else if(d in Va){Gu(this,T,d,h,x?gr(h,x+c):c);continue}else if(d==="smoothOrigin"){Oi(this,T,"smooth",T.smooth,c);continue}else if(d==="force3D"){T[d]=c;continue}else if(d==="transform"){$u(this,c,e);continue}}else d in a||(d=Er(d)||d);if(C||(p||p===0)&&(h||h===0)&&!ku.test(c)&&d in a)b=(u+"").substr((h+"").length),p||(p=0),y=yt(c)||(d in qt.units?qt.units[d]:b),b!==y&&(h=Ii(e,d,u,y)),this._pt=new Lt(this._pt,C?T:a,d,h,(x?gr(h,x+p):p)-h,!C&&(y==="px"||d==="zIndex")&&i.autoRound!==!1?Ru:ws),this._pt.u=y||0,C&&A!==c?(this._pt.b=u,this._pt.e=A,this._pt.r=Au):b!==y&&y!=="%"&&(this._pt.b=u,this._pt.r=Ou);else if(d in a)Yu.call(this,e,d,u,x?x+c:c);else if(d in e)this.add(e,d,u||e[d],x?x+c:c,r,n);else if(d!=="parseTransform"){Ws(d,c);continue}C||(d in a?z.push(d,0,a[d]):typeof e[d]=="function"?z.push(d,2,e[d]()):z.push(d,1,u||e[d])),s.push(d)}}S&&za(this)},render:function(e,i){if(i.tween._time||!Qs())for(var t=i._pt;t;)t.r(e,t.d),t=t._next;else i.styles.revert()},get:vi,aliases:di,getSetter:function(e,i,t){var r=di[i];return r&&r.indexOf(",")<0&&(i=r),i in Si&&i!==Dt&&(e._gsap.x||vi(e,"x"))?t&&yo===t?i==="scale"?Fu:zu:(yo=t||{})&&(i==="scale"?Nu:Iu):e.style&&!Ns(e.style[i])?Lu:~i.indexOf("-")?Du:$s(e,i)},core:{_removeProperty:Ni,_getMatrix:Js}};zt.utils.checkPrefix=Er;zt.core.getStyleSaver=Wa;(function(o,e,i,t){var r=Rt(o+","+e+","+i,function(n){Si[n]=1});Rt(e,function(n){qt.units[n]="deg",Va[n]=1}),di[r[13]]=o+","+e,Rt(t,function(n){var s=n.split(":");di[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Rt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){qt.units[o]="px"});zt.registerPlugin(Ga);var Pi=zt.registerPlugin(Ga)||zt;Pi.core.Tween;function ju(o,e){for(var i=0;i=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Dt,i,"")),e=Ne}(n||i)&&this.props.push(e,i,n[e])},La=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Pu=function(){var e=this.props,i=this.target,t=i.style,r=i._gsap,n,s;for(n=0;n=0?xo[s]:"")+e},ws=function(){pu()&&window.document&&(go=window,Oi=go.document,gr=Oi.documentElement,$i=bs("div")||{style:{}},bs("div"),Ne=Er(Ne),Dt=Ne+"Origin",$i.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Fa=!!Er("perspective"),js=Lt.core.reverting,Gs=1)},yo=function(e){var i=e.ownerSVGElement,t=bs("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0),n;r.style.display="block",t.appendChild(r),gr.appendChild(t);try{n=r.getBBox()}catch{}return t.removeChild(r),gr.removeChild(t),n},bo=function(e,i){for(var t=i.length;t--;)if(e.hasAttribute(i[t]))return e.getAttribute(i[t])},Ia=function(e){var i,t;try{i=e.getBBox()}catch{i=yo(e),t=1}return i&&(i.width||i.height)||t||(i=yo(e)),i&&!i.width&&!i.x&&!i.y?{x:+bo(e,["x","cx","x1"])||0,y:+bo(e,["y","cy","y1"])||0,width:0,height:0}:i},Na=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ia(e))},Ii=function(e,i){if(i){var t=e.style,r;i in Si&&i!==Dt&&(i=Ne),t.removeProperty?(r=i.substr(0,2),(r==="ms"||i.substr(0,6)==="webkit")&&(i="-"+i),t.removeProperty(r==="--"?i:i.replace(Ks,"-$1").toLowerCase())):t.removeAttribute(i)}},Mi=function(e,i,t,r,n,s){var a=new At(e._pt,i,t,0,1,s?Da:Aa);return e._pt=a,a.b=r,a.e=n,e._props.push(t),a},wo={deg:1,rad:1,turn:1},Ou={grid:1,flex:1},Ni=function o(e,i,t,r){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",a=$i.style,l=_u.test(i),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),d=100,h=r==="px",f=r==="%",_,p,v,C;if(r===s||!n||wo[r]||wo[s])return n;if(s!=="px"&&!h&&(n=o(e,i,t,"px")),C=e.getCTM&&Na(e),(f||s==="%")&&(Si[i]||~i.indexOf("adius")))return _=C?e.getBBox()[l?"width":"height"]:e[c],Xe(f?n/_*d:n/100*_);if(a[l?"width":"height"]=d+(h?s:r),p=r!=="rem"&&~i.indexOf("adius")||r==="em"&&e.appendChild&&!u?e:e.parentNode,C&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Oi||!p.appendChild)&&(p=Oi.body),v=p._gsap,v&&f&&v.width&&l&&v.time===Wt.time&&!v.uncache)return Xe(n/v.width*d);if(f&&(i==="height"||i==="width")){var b=e.style[i];e.style[i]=d+r,_=e[c],b?e.style[i]=b:Ii(e,i)}else(f||s==="%")&&!Ou[Xt(p,"display")]&&(a.position=Xt(e,"position")),p===e&&(a.position="static"),p.appendChild($i),_=$i[c],p.removeChild($i),a.position="absolute";return l&&f&&(v=ji(p),v.time=Wt.time,v.width=p[c]),Xe(h?_*n/d:_&&n?d/_*n:0)},vi=function(e,i,t,r){var n;return Gs||ws(),i in di&&i!=="transform"&&(i=di[i],~i.indexOf(",")&&(i=i.split(",")[0])),Si[i]&&i!=="transform"?(n=on(e,r),n=i!=="transformOrigin"?n[i]:n.svg?n.origin:Wn(Xt(e,Dt))+" "+n.zOrigin+"px"):(n=e.style[i],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=Hn[i]&&Hn[i](e,i,t)||Xt(e,i)||ia(e,i)||(i==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Ni(e,i,n,t)+t:n},Mu=function(e,i,t,r){if(!t||t==="none"){var n=Er(i,e,1),s=n&&Xt(e,n,1);s&&s!==t?(i=n,t=s):i==="borderColor"&&(t=Xt(e,"borderTopColor"))}var a=new At(this._pt,e.style,i,0,1,Oa),l=0,u=0,c,d,h,f,_,p,v,C,b,k,w,P;if(a.b=t,a.e=r,t+="",r+="",r.substring(0,6)==="var(--"&&(r=Xt(e,r.substring(4,r.indexOf(")")))),r==="auto"&&(p=e.style[i],e.style[i]=r,r=Xt(e,i)||r,p?e.style[i]=p:Ii(e,i)),c=[t,r],ba(c),t=c[0],r=c[1],h=t.match(hr)||[],P=r.match(hr)||[],P.length){for(;d=hr.exec(r);)v=d[0],b=r.substring(l,d.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),v!==(p=h[u++]||"")&&(f=parseFloat(p)||0,w=p.substr((f+"").length),v.charAt(1)==="="&&(v=_r(f,v)+w),C=parseFloat(v),k=v.substr((C+"").length),l=hr.lastIndex-k.length,k||(k=k||Vt.units[i]||w,l===r.length&&(r+=k,a.e+=k)),w!==k&&(f=Ni(e,i,p,k)||0),a._pt={_next:a._pt,p:b||u===1?b:",",s:f,c:C-f,m:_&&_<4||i==="zIndex"?Math.round:0});a.c=l-1;)a=n[u],Si[a]&&(l=1,a=a==="transformOrigin"?Dt:Ne),Ii(t,a);l&&(Ii(t,Ne),s&&(s.svg&&t.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",on(t,1),s.uncache=1,La(r)))}},Hn={clearProps:function(e,i,t,r,n){if(n.data!=="isFromStart"){var s=e._pt=new At(e._pt,i,t,0,0,Au);return s.u=r,s.pr=-10,s.tween=n,e._props.push(t),1}}},sn=[1,0,0,1,0,0],Ha={},Wa=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},To=function(e){var i=Xt(e,Ne);return Wa(i)?sn:i.substr(7).match(Ko).map(Xe)},Qs=function(e,i){var t=e._gsap||ji(e),r=e.style,n=To(e),s,a,l,u;return t.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?sn:n):(n===sn&&!e.offsetParent&&e!==gr&&!t.svg&&(l=r.display,r.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,gr.appendChild(e)),n=To(e),l?r.display=l:Ii(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):gr.removeChild(e))),i&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ss=function(e,i,t,r,n,s){var a=e._gsap,l=n||Qs(e,!0),u=a.xOrigin||0,c=a.yOrigin||0,d=a.xOffset||0,h=a.yOffset||0,f=l[0],_=l[1],p=l[2],v=l[3],C=l[4],b=l[5],k=i.split(" "),w=parseFloat(k[0])||0,P=parseFloat(k[1])||0,F,E,N,z;t?l!==sn&&(E=f*v-_*p)&&(N=w*(v/E)+P*(-p/E)+(p*b-v*C)/E,z=w*(-_/E)+P*(f/E)-(f*b-_*C)/E,w=N,P=z):(F=Ia(e),w=F.x+(~k[0].indexOf("%")?w/100*F.width:w),P=F.y+(~(k[1]||k[0]).indexOf("%")?P/100*F.height:P)),r||r!==!1&&a.smooth?(C=w-u,b=P-c,a.xOffset=d+(C*f+b*p)-C,a.yOffset=h+(C*_+b*v)-b):a.xOffset=a.yOffset=0,a.xOrigin=w,a.yOrigin=P,a.smooth=!!r,a.origin=i,a.originIsAbsolute=!!t,e.style[Dt]="0px 0px",s&&(Mi(s,a,"xOrigin",u,w),Mi(s,a,"yOrigin",c,P),Mi(s,a,"xOffset",d,a.xOffset),Mi(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",w+" "+P)},on=function(e,i){var t=e._gsap||new Sa(e);if("x"in t&&!i&&!t.uncache)return t;var r=e.style,n=t.scaleX<0,s="px",a="deg",l=getComputedStyle(e),u=Xt(e,Dt)||"0",c,d,h,f,_,p,v,C,b,k,w,P,F,E,N,z,D,oe,X,le,re,ge,_e,Z,me,we,x,Ce,rt,yt,Oe,$e;return c=d=h=p=v=C=b=k=w=0,f=_=1,t.svg=!!(e.getCTM&&Na(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(r[Ne]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Ne]!=="none"?l[Ne]:"")),r.scale=r.rotate=r.translate="none"),E=Qs(e,t.svg),t.svg&&(t.uncache?(me=e.getBBox(),u=t.xOrigin-me.x+"px "+(t.yOrigin-me.y)+"px",Z=""):Z=!i&&e.getAttribute("data-svg-origin"),Ss(e,Z||u,!!Z||t.originIsAbsolute,t.smooth!==!1,E)),P=t.xOrigin||0,F=t.yOrigin||0,E!==sn&&(oe=E[0],X=E[1],le=E[2],re=E[3],c=ge=E[4],d=_e=E[5],E.length===6?(f=Math.sqrt(oe*oe+X*X),_=Math.sqrt(re*re+le*le),p=oe||X?or(X,oe)*Vi:0,b=le||re?or(le,re)*Vi+p:0,b&&(_*=Math.abs(Math.cos(b*mr))),t.svg&&(c-=P-(P*oe+F*le),d-=F-(P*X+F*re))):($e=E[6],yt=E[7],x=E[8],Ce=E[9],rt=E[10],Oe=E[11],c=E[12],d=E[13],h=E[14],N=or($e,rt),v=N*Vi,N&&(z=Math.cos(-N),D=Math.sin(-N),Z=ge*z+x*D,me=_e*z+Ce*D,we=$e*z+rt*D,x=ge*-D+x*z,Ce=_e*-D+Ce*z,rt=$e*-D+rt*z,Oe=yt*-D+Oe*z,ge=Z,_e=me,$e=we),N=or(-le,rt),C=N*Vi,N&&(z=Math.cos(-N),D=Math.sin(-N),Z=oe*z-x*D,me=X*z-Ce*D,we=le*z-rt*D,Oe=re*D+Oe*z,oe=Z,X=me,le=we),N=or(X,oe),p=N*Vi,N&&(z=Math.cos(N),D=Math.sin(N),Z=oe*z+X*D,me=ge*z+_e*D,X=X*z-oe*D,_e=_e*z-ge*D,oe=Z,ge=me),v&&Math.abs(v)+Math.abs(p)>359.9&&(v=p=0,C=180-C),f=Xe(Math.sqrt(oe*oe+X*X+le*le)),_=Xe(Math.sqrt(_e*_e+$e*$e)),N=or(ge,_e),b=Math.abs(N)>2e-4?N*Vi:0,w=Oe?1/(Oe<0?-Oe:Oe):0),t.svg&&(Z=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!Wa(Xt(e,Ne)),Z&&e.setAttribute("transform",Z))),Math.abs(b)>90&&Math.abs(b)<270&&(n?(f*=-1,b+=p<=0?180:-180,p+=p<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),i=i||t.uncache,t.x=c-((t.xPercent=c&&(!i&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=d-((t.yPercent=d&&(!i&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=h+s,t.scaleX=Xe(f),t.scaleY=Xe(_),t.rotation=Xe(p)+a,t.rotationX=Xe(v)+a,t.rotationY=Xe(C)+a,t.skewX=b+a,t.skewY=k+a,t.transformPerspective=w+s,(t.zOrigin=parseFloat(u.split(" ")[2])||!i&&t.zOrigin||0)&&(r[Dt]=Wn(u)),t.xOffset=t.yOffset=0,t.force3D=Vt.force3D,t.renderTransform=t.svg?Lu:Fa?Ba:Du,t.uncache=0,t},Wn=function(e){return(e=e.split(" "))[0]+" "+e[1]},rs=function(e,i,t){var r=mt(i);return Xe(parseFloat(i)+parseFloat(Ni(e,"x",t+"px",r)))+r},Du=function(e,i){i.z="0px",i.rotationY=i.rotationX="0deg",i.force3D=0,Ba(e,i)},Yi="0deg",Mr="0px",Xi=") ",Ba=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,l=t.z,u=t.rotation,c=t.rotationY,d=t.rotationX,h=t.skewX,f=t.skewY,_=t.scaleX,p=t.scaleY,v=t.transformPerspective,C=t.force3D,b=t.target,k=t.zOrigin,w="",P=C==="auto"&&e&&e!==1||C===!0;if(k&&(d!==Yi||c!==Yi)){var F=parseFloat(c)*mr,E=Math.sin(F),N=Math.cos(F),z;F=parseFloat(d)*mr,z=Math.cos(F),s=rs(b,s,E*z*-k),a=rs(b,a,-Math.sin(F)*-k),l=rs(b,l,N*z*-k+k)}v!==Mr&&(w+="perspective("+v+Xi),(r||n)&&(w+="translate("+r+"%, "+n+"%) "),(P||s!==Mr||a!==Mr||l!==Mr)&&(w+=l!==Mr||P?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+Xi),u!==Yi&&(w+="rotate("+u+Xi),c!==Yi&&(w+="rotateY("+c+Xi),d!==Yi&&(w+="rotateX("+d+Xi),(h!==Yi||f!==Yi)&&(w+="skew("+h+", "+f+Xi),(_!==1||p!==1)&&(w+="scale("+_+", "+p+Xi),b.style[Ne]=w||"translate(0, 0)"},Lu=function(e,i){var t=i||this,r=t.xPercent,n=t.yPercent,s=t.x,a=t.y,l=t.rotation,u=t.skewX,c=t.skewY,d=t.scaleX,h=t.scaleY,f=t.target,_=t.xOrigin,p=t.yOrigin,v=t.xOffset,C=t.yOffset,b=t.forceCSS,k=parseFloat(s),w=parseFloat(a),P,F,E,N,z;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=mr,u*=mr,P=Math.cos(l)*d,F=Math.sin(l)*d,E=Math.sin(l-u)*-h,N=Math.cos(l-u)*h,u&&(c*=mr,z=Math.tan(u-c),z=Math.sqrt(1+z*z),E*=z,N*=z,c&&(z=Math.tan(c),z=Math.sqrt(1+z*z),P*=z,F*=z)),P=Xe(P),F=Xe(F),E=Xe(E),N=Xe(N)):(P=d,N=h,F=E=0),(k&&!~(s+"").indexOf("px")||w&&!~(a+"").indexOf("px"))&&(k=Ni(f,"x",s,"px"),w=Ni(f,"y",a,"px")),(_||p||v||C)&&(k=Xe(k+_-(_*P+p*E)+v),w=Xe(w+p-(_*F+p*N)+C)),(r||n)&&(z=f.getBBox(),k=Xe(k+r/100*z.width),w=Xe(w+n/100*z.height)),z="matrix("+P+","+F+","+E+","+N+","+k+","+w+")",f.setAttribute("transform",z),b&&(f.style[Ne]=z)},zu=function(e,i,t,r,n){var s=360,a=it(n),l=parseFloat(n)*(a&&~n.indexOf("rad")?Vi:1),u=l-r,c=r+u+"deg",d,h;return a&&(d=n.split("_")[1],d==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),d==="cw"&&u<0?u=(u+s*vo)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*vo)%s-~~(u/s)*s)),e._pt=h=new At(e._pt,i,t,r,u,mu),h.e=c,h.u="deg",e._props.push(t),h},Co=function(e,i){for(var t in i)e[t]=i[t];return e},Fu=function(e,i,t){var r=Co({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,a,l,u,c,d,h,f,_;r.svg?(u=t.getAttribute("transform"),t.setAttribute("transform",""),s[Ne]=i,a=on(t,1),Ii(t,Ne),t.setAttribute("transform",u)):(u=getComputedStyle(t)[Ne],s[Ne]=i,a=on(t,1),s[Ne]=u);for(l in Si)u=r[l],c=a[l],u!==c&&n.indexOf(l)<0&&(f=mt(u),_=mt(c),d=f!==_?Ni(t,l,u,_):parseFloat(u),h=parseFloat(c),e._pt=new At(e._pt,a,l,d,h-d,ys),e._pt.u=_||0,e._props.push(l));Co(a,r)};Rt("padding,margin,Width,Radius",function(o,e){var i="Top",t="Right",r="Bottom",n="Left",s=(e<3?[i,t,r,n]:[i+n,i+t,r+t,r+n]).map(function(a){return e<2?o+a:"border"+a+o});Hn[e>1?"border"+o:o]=function(a,l,u,c,d){var h,f;if(arguments.length<4)return h=s.map(function(_){return vi(a,_,u)}),f=h.join(" "),f.split(h[0]).length===5?h[0]:f;h=(c+"").split(" "),f={},s.forEach(function(_,p){return f[_]=h[p]=h[p]||h[(p-1)/2|0]}),a.init(l,f,d)}});var Ya={name:"css",register:ws,targetTest:function(e){return e.style&&e.nodeType},init:function(e,i,t,r,n){var s=this._props,a=e.style,l=t.vars.startAt,u,c,d,h,f,_,p,v,C,b,k,w,P,F,E,N,z;Gs||ws(),this.styles=this.styles||za(e),N=this.styles.props,this.tween=t;for(p in i)if(p!=="autoRound"&&(c=i[p],!(Nt[p]&&Ta(p,i,t,r,e,n)))){if(f=typeof c,_=Hn[p],f==="function"&&(c=c.call(t,r,e,n),f=typeof c),f==="string"&&~c.indexOf("random(")&&(c=tn(c)),_)_(this,e,p,c,t)&&(E=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),c+="",Li.lastIndex=0,Li.test(u)||(v=mt(u),C=mt(c),C?v!==C&&(u=Ni(e,p,u,C)+C):v&&(c+=v)),this.add(a,"setProperty",u,c,r,n,0,0,p),s.push(p),N.push(p,0,a[p]);else if(f!=="undefined"){if(l&&p in l?(u=typeof l[p]=="function"?l[p].call(t,r,e,n):l[p],it(u)&&~u.indexOf("random(")&&(u=tn(u)),mt(u+"")||u==="auto"||(u+=Vt.units[p]||mt(vi(e,p))||""),(u+"").charAt(1)==="="&&(u=vi(e,p))):u=vi(e,p),h=parseFloat(u),b=f==="string"&&c.charAt(1)==="="&&c.substr(0,2),b&&(c=c.substr(2)),d=parseFloat(c),p in di&&(p==="autoAlpha"&&(h===1&&vi(e,"visibility")==="hidden"&&d&&(h=0),N.push("visibility",0,a.visibility),Mi(this,a,"visibility",h?"inherit":"hidden",d?"inherit":"hidden",!d)),p!=="scale"&&p!=="transform"&&(p=di[p],~p.indexOf(",")&&(p=p.split(",")[0]))),k=p in Si,k){if(this.styles.save(p),z=c,f==="string"&&c.substring(0,6)==="var(--"){if(c=Xt(e,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var D=e.style.perspective;e.style.perspective=c,c=Xt(e,"perspective"),D?e.style.perspective=D:Ii(e,"perspective")}d=parseFloat(c)}if(w||(P=e._gsap,P.renderTransform&&!i.parseTransform||on(e,i.parseTransform),F=i.smoothOrigin!==!1&&P.smooth,w=this._pt=new At(this._pt,a,Ne,0,1,P.renderTransform,P,0,-1),w.dep=1),p==="scale")this._pt=new At(this._pt,P,"scaleY",P.scaleY,(b?_r(P.scaleY,b+d):d)-P.scaleY||0,ys),this._pt.u=0,s.push("scaleY",p),p+="X";else if(p==="transformOrigin"){N.push(Dt,0,a[Dt]),c=Ru(c),P.svg?Ss(e,c,0,F,0,this):(C=parseFloat(c.split(" ")[2])||0,C!==P.zOrigin&&Mi(this,P,"zOrigin",P.zOrigin,C),Mi(this,a,p,Wn(u),Wn(c)));continue}else if(p==="svgOrigin"){Ss(e,c,1,F,0,this);continue}else if(p in Ha){zu(this,P,p,h,b?_r(h,b+c):c);continue}else if(p==="smoothOrigin"){Mi(this,P,"smooth",P.smooth,c);continue}else if(p==="force3D"){P[p]=c;continue}else if(p==="transform"){Fu(this,c,e);continue}}else p in a||(p=Er(p)||p);if(k||(d||d===0)&&(h||h===0)&&!gu.test(c)&&p in a)v=(u+"").substr((h+"").length),d||(d=0),C=mt(c)||(p in Vt.units?Vt.units[p]:v),v!==C&&(h=Ni(e,p,u,C)),this._pt=new At(this._pt,k?P:a,p,h,(b?_r(h,b+d):d)-h,!k&&(C==="px"||p==="zIndex")&&i.autoRound!==!1?yu:ys),this._pt.u=C||0,k&&z!==c?(this._pt.b=u,this._pt.e=z,this._pt.r=xu):v!==C&&C!=="%"&&(this._pt.b=u,this._pt.r=vu);else if(p in a)Mu.call(this,e,p,u,b?b+c:c);else if(p in e)this.add(e,p,u||e[p],b?b+c:c,r,n);else if(p!=="parseTransform"){Ns(p,c);continue}k||(p in a?N.push(p,0,a[p]):typeof e[p]=="function"?N.push(p,2,e[p]()):N.push(p,1,u||e[p])),s.push(p)}}E&&Ma(this)},render:function(e,i){if(i.tween._time||!js())for(var t=i._pt;t;)t.r(e,t.d),t=t._next;else i.styles.revert()},get:vi,aliases:di,getSetter:function(e,i,t){var r=di[i];return r&&r.indexOf(",")<0&&(i=r),i in Si&&i!==Dt&&(e._gsap.x||vi(e,"x"))?t&&mo===t?i==="scale"?Tu:Su:(mo=t||{})&&(i==="scale"?Cu:Eu):e.style&&!zs(e.style[i])?bu:~i.indexOf("-")?wu:qs(e,i)},core:{_removeProperty:Ii,_getMatrix:Qs}};Lt.utils.checkPrefix=Er;Lt.core.getStyleSaver=za;(function(o,e,i,t){var r=Rt(o+","+e+","+i,function(n){Si[n]=1});Rt(e,function(n){Vt.units[n]="deg",Ha[n]=1}),di[r[13]]=o+","+e,Rt(t,function(n){var s=n.split(":");di[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Rt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){Vt.units[o]="px"});Lt.registerPlugin(Ya);var ki=Lt.registerPlugin(Ya)||Lt;ki.core.Tween;function Iu(o,e){for(var i=0;il?(n=r,r=g,a=s,s=b):t?r+=g:r=n+(g-n)/(b-a)*(s-a)},p=function(){n=r=t?0:r,a=s=0},h=function(g){var d=a,b=n,y=Vr();return(g||g===0)&&g!==r&&c(g),s===a||y-a>u?0:(r+(t?b:-b))/((t?y:s)-d)*1e3};return{update:c,reset:p,getVelocity:h}},Ar=function(e,i){return i&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},ko=function(e){var i=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(i)>=Math.abs(t)?i:t},Ja=function(){yr=ht.core.globals().ScrollTrigger,yr&&yr.core&&Qu()},el=function(e){return ht=e||Qa(),!On&&ht&&typeof document<"u"&&document.body&&(Yt=window,Ai=document,Ri=Ai.documentElement,vr=Ai.body,ja=[Yt,Ai,Ri,vr],ht.utils.clamp,Ka=ht.core.context||function(){},qi="onpointerenter"in vr?"pointer":"mouse",$a=Je.isTouch=Yt.matchMedia&&Yt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Yt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ni=Je.eventTypes=("ontouchstart"in Ri?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ri?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Za=0},500),On=1),yr||Ja(),On};kt.op=ot;Oe.cache=0;var Je=function(){function o(i){this.init(i)}var e=o.prototype;return e.init=function(t){On||el(ht)||console.warn("Please gsap.registerPlugin(Observer)"),yr||Ja();var r=t.tolerance,n=t.dragMinimum,s=t.type,a=t.target,l=t.lineHeight,u=t.debounce,c=t.preventDefault,p=t.onStop,h=t.onStopDelay,f=t.ignore,g=t.wheelSpeed,d=t.event,b=t.onDragStart,y=t.onDragEnd,x=t.onDrag,C=t.onPress,w=t.onRelease,T=t.onRight,M=t.onLeft,S=t.onUp,z=t.onDown,A=t.onChangeX,R=t.onChangeY,fe=t.onChange,$=t.onToggleX,xe=t.onToggleY,W=t.onHover,q=t.onHoverEnd,Y=t.onMove,I=t.ignoreCheck,G=t.isNormalizer,ne=t.onGestureStart,v=t.onGestureEnd,we=t.onWheel,Re=t.onEnable,O=t.onDisable,N=t.onClick,V=t.scrollSpeed,ie=t.capture,Z=t.allowClicks,le=t.lockAxis,ce=t.onLockAxis;this.target=a=Mt(a)||Ri,this.vars=t,f&&(f=ht.utils.toArray(f)),r=r||1e-9,n=n||0,g=g||1,V=V||1,s=s||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(Yt.getComputedStyle(vr).lineHeight)||22);var Se,ge,ve,be,We,et,rt,E=this,wt=0,$t=0,si=t.passive||!c&&t.passive!==!1,Be=Hi(a,kt),ii=Hi(a,ot),jt=Be(),oi=ii(),_=~s.indexOf("touch")&&!~s.indexOf("pointer")&&ni[0]==="pointerdown",m=qr(a),k=a.ownerDocument||Ai,P=[0,0,0],D=[0,0,0],X=0,H=function(){return X=Vr()},L=function(K,Te){return(E.event=K)&&f&&Zu(K.target,f)||Te&&_&&K.pointerType!=="touch"||I&&I(K,Te)},B=function(){E._vx.reset(),E._vy.reset(),ge.pause(),p&&p(E)},te=function(){var K=E.deltaX=ko(P),Te=E.deltaY=ko(D),U=Math.abs(K)>=r,pe=Math.abs(Te)>=r;fe&&(U||pe)&&fe(E,K,Te,P,D),U&&(T&&E.deltaX>0&&T(E),M&&E.deltaX<0&&M(E),A&&A(E),$&&E.deltaX<0!=wt<0&&$(E),wt=E.deltaX,P[0]=P[1]=P[2]=0),pe&&(z&&E.deltaY>0&&z(E),S&&E.deltaY<0&&S(E),R&&R(E),xe&&E.deltaY<0!=$t<0&&xe(E),$t=E.deltaY,D[0]=D[1]=D[2]=0),(be||ve)&&(Y&&Y(E),ve&&(b&&ve===1&&b(E),x&&x(E),ve=0),be=!1),et&&!(et=!1)&&ce&&ce(E),We&&(we(E),We=!1),Se=0},F=function(K,Te,U){P[U]+=K,D[U]+=Te,E._vx.update(K),E._vy.update(Te),u?Se||(Se=requestAnimationFrame(te)):te()},Q=function(K,Te){le&&!rt&&(E.axis=rt=Math.abs(K)>Math.abs(Te)?"x":"y",et=!0),rt!=="y"&&(P[2]+=K,E._vx.update(K,!0)),rt!=="x"&&(D[2]+=Te,E._vy.update(Te,!0)),u?Se||(Se=requestAnimationFrame(te)):te()},J=function(K){if(!L(K,1)){K=Ar(K,c);var Te=K.clientX,U=K.clientY,pe=Te-E.x,oe=U-E.y,_e=E.isDragging;E.x=Te,E.y=U,(_e||(pe||oe)&&(Math.abs(E.startX-Te)>=n||Math.abs(E.startY-U)>=n))&&(ve||(ve=_e?2:1),_e||(E.isDragging=!0),Q(pe,oe))}},ue=E.onPress=function(ae){L(ae,1)||ae&&ae.button||(E.axis=rt=null,ge.pause(),E.isPressed=!0,ae=Ar(ae),wt=$t=0,E.startX=E.x=ae.clientX,E.startY=E.y=ae.clientY,E._vx.reset(),E._vy.reset(),Tt(G?a:k,ni[1],J,si,!0),E.deltaX=E.deltaY=0,C&&C(E))},j=E.onRelease=function(ae){if(!L(ae,1)){St(G?a:k,ni[1],J,!0);var K=!isNaN(E.y-E.startY),Te=E.isDragging,U=Te&&(Math.abs(E.x-E.startX)>3||Math.abs(E.y-E.startY)>3),pe=Ar(ae);!U&&K&&(E._vx.reset(),E._vy.reset(),c&&Z&&ht.delayedCall(.08,function(){if(Vr()-X>300&&!ae.defaultPrevented){if(ae.target.click)ae.target.click();else if(k.createEvent){var oe=k.createEvent("MouseEvents");oe.initMouseEvent("click",!0,!0,Yt,1,pe.screenX,pe.screenY,pe.clientX,pe.clientY,!1,!1,!1,!1,0,null),ae.target.dispatchEvent(oe)}}})),E.isDragging=E.isGesturing=E.isPressed=!1,p&&Te&&!G&&ge.restart(!0),ve&&te(),y&&Te&&y(E),w&&w(E,U)}},me=function(K){return K.touches&&K.touches.length>1&&(E.isGesturing=!0)&&ne(K,E.isDragging)},he=function(){return(E.isGesturing=!1)||v(E)},ee=function(K){if(!L(K)){var Te=Be(),U=ii();F((Te-jt)*V,(U-oi)*V,1),jt=Te,oi=U,p&&ge.restart(!0)}},de=function(K){if(!L(K)){K=Ar(K,c),we&&(We=!0);var Te=(K.deltaMode===1?l:K.deltaMode===2?Yt.innerHeight:1)*g;F(K.deltaX*Te,K.deltaY*Te,0),p&&!G&&ge.restart(!0)}},Le=function(K){if(!L(K)){var Te=K.clientX,U=K.clientY,pe=Te-E.x,oe=U-E.y;E.x=Te,E.y=U,be=!0,p&&ge.restart(!0),(pe||oe)&&Q(pe,oe)}},ye=function(K){E.event=K,W(E)},Pe=function(K){E.event=K,q(E)},Fe=function(K){return L(K)||Ar(K,c)&&N(E)};ge=E._dc=ht.delayedCall(h||.25,B).pause(),E.deltaX=E.deltaY=0,E._vx=ks(0,50,!0),E._vy=ks(0,50,!0),E.scrollX=Be,E.scrollY=ii,E.isDragging=E.isGesturing=E.isPressed=!1,Ka(this),E.enable=function(ae){return E.isEnabled||(Tt(m?k:a,"scroll",Ps),s.indexOf("scroll")>=0&&Tt(m?k:a,"scroll",ee,si,ie),s.indexOf("wheel")>=0&&Tt(a,"wheel",de,si,ie),(s.indexOf("touch")>=0&&$a||s.indexOf("pointer")>=0)&&(Tt(a,ni[0],ue,si,ie),Tt(k,ni[2],j),Tt(k,ni[3],j),Z&&Tt(a,"click",H,!0,!0),N&&Tt(a,"click",Fe),ne&&Tt(k,"gesturestart",me),v&&Tt(k,"gestureend",he),W&&Tt(a,qi+"enter",ye),q&&Tt(a,qi+"leave",Pe),Y&&Tt(a,qi+"move",Le)),E.isEnabled=!0,E.isDragging=E.isGesturing=E.isPressed=be=ve=!1,E._vx.reset(),E._vy.reset(),jt=Be(),oi=ii(),ae&&ae.type&&ue(ae),Re&&Re(E)),E},E.disable=function(){E.isEnabled&&(pr.filter(function(ae){return ae!==E&&qr(ae.target)}).length||St(m?k:a,"scroll",Ps),E.isPressed&&(E._vx.reset(),E._vy.reset(),St(G?a:k,ni[1],J,!0)),St(m?k:a,"scroll",ee,ie),St(a,"wheel",de,ie),St(a,ni[0],ue,ie),St(k,ni[2],j),St(k,ni[3],j),St(a,"click",H,!0),St(a,"click",Fe),St(k,"gesturestart",me),St(k,"gestureend",he),St(a,qi+"enter",ye),St(a,qi+"leave",Pe),St(a,qi+"move",Le),E.isEnabled=E.isPressed=E.isDragging=!1,O&&O(E))},E.kill=E.revert=function(){E.disable();var ae=pr.indexOf(E);ae>=0&&pr.splice(ae,1),xi===E&&(xi=0)},pr.push(E),G&&qr(a)&&(xi=E),E.enable(d)},Ku(o,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),o}();Je.version="3.15.0";Je.create=function(o){return new Je(o)};Je.register=el;Je.getAll=function(){return pr.slice()};Je.getById=function(o){return pr.filter(function(e){return e.vars.id===o})[0]};Qa()&&ht.registerPlugin(Je);/*! +*/var ut,Pn,Bt,Ri,Ai,vr,Xa,Ui,xr,Va,yi,ri,Ua,qa=function(){return ut||typeof window<"u"&&(ut=window.gsap)&&ut.registerPlugin&&ut},$a=1,pr=[],pe=[],_i=[],Xr=Date.now,Ts=function(e,i){return i},Hu=function(){var e=xr.core,i=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,pe),r.push.apply(r,_i),pe=t,_i=r,Ts=function(s,a){return i[s](a)}},zi=function(e,i){return~_i.indexOf(e)&&_i[_i.indexOf(e)+1][i]},Vr=function(e){return!!~Va.indexOf(e)},St=function(e,i,t,r,n){return e.addEventListener(i,t,{passive:r!==!1,capture:!!n})},wt=function(e,i,t,r){return e.removeEventListener(i,t,!!r)},dn="scrollLeft",pn="scrollTop",Cs=function(){return yi&&yi.isPressed||pe.cache++},Bn=function(e,i){var t=function r(n){if(n||n===0){$a&&(Bt.history.scrollRestoration="manual");var s=yi&&yi.isPressed;n=r.v=Math.round(n)||(yi&&yi.iOS?1:0),e(n),r.cacheID=pe.cache,s&&Ts("ss",n)}else(i||pe.cache!==r.cacheID||Ts("ref"))&&(r.cacheID=pe.cache,r.v=e());return r.v+r.offset};return t.offset=0,e&&t},kt={s:dn,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Bn(function(o){return arguments.length?Bt.scrollTo(o,Ke.sc()):Bt.pageXOffset||Ri[dn]||Ai[dn]||vr[dn]||0})},Ke={s:pn,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:kt,sc:Bn(function(o){return arguments.length?Bt.scrollTo(kt.sc(),o):Bt.pageYOffset||Ri[pn]||Ai[pn]||vr[pn]||0})},Pt=function(e,i){return(i&&i._ctx&&i._ctx.selector||ut.utils.toArray)(e)[0]||(typeof e=="string"&&ut.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Wu=function(e,i){for(var t=i.length;t--;)if(i[t]===e||i[t].contains(e))return!0;return!1},Hi=function(e,i){var t=i.s,r=i.sc;Vr(e)&&(e=Ri.scrollingElement||Ai);var n=pe.indexOf(e),s=r===Ke.sc?1:2;!~n&&(n=pe.push(e)-1),pe[n+s]||St(e,"scroll",Cs);var a=pe[n+s],l=a||(pe[n+s]=Bn(zi(e,t),!0)||(Vr(e)?r:Bn(function(u){return arguments.length?e[t]=u:e[t]})));return l.target=e,a||(l.smooth=ut.getProperty(e,"scrollBehavior")==="smooth"),l},Es=function(e,i,t){var r=e,n=e,s=Xr(),a=s,l=i||50,u=Math.max(500,l*3),c=function(_,p){var v=Xr();p||v-s>l?(n=r,r=_,a=s,s=v):t?r+=_:r=n+(_-n)/(v-a)*(s-a)},d=function(){n=r=t?0:r,a=s=0},h=function(_){var p=a,v=n,C=Xr();return(_||_===0)&&_!==r&&c(_),s===a||C-a>u?0:(r+(t?v:-v))/((t?C:s)-p)*1e3};return{update:c,reset:d,getVelocity:h}},Rr=function(e,i){return i&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Eo=function(e){var i=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(i)>=Math.abs(t)?i:t},Ga=function(){xr=ut.core.globals().ScrollTrigger,xr&&xr.core&&Hu()},ja=function(e){return ut=e||qa(),!Pn&&ut&&typeof document<"u"&&document.body&&(Bt=window,Ri=document,Ai=Ri.documentElement,vr=Ri.body,Va=[Bt,Ri,Ai,vr],ut.utils.clamp,Ua=ut.core.context||function(){},Ui="onpointerenter"in vr?"pointer":"mouse",Xa=Ve.isTouch=Bt.matchMedia&&Bt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Bt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ri=Ve.eventTypes=("ontouchstart"in Ai?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ai?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return $a=0},500),Pn=1),xr||Ga(),Pn};kt.op=Ke;pe.cache=0;var Ve=function(){function o(i){this.init(i)}var e=o.prototype;return e.init=function(t){Pn||ja(ut)||console.warn("Please gsap.registerPlugin(Observer)"),xr||Ga();var r=t.tolerance,n=t.dragMinimum,s=t.type,a=t.target,l=t.lineHeight,u=t.debounce,c=t.preventDefault,d=t.onStop,h=t.onStopDelay,f=t.ignore,_=t.wheelSpeed,p=t.event,v=t.onDragStart,C=t.onDragEnd,b=t.onDrag,k=t.onPress,w=t.onRelease,P=t.onRight,F=t.onLeft,E=t.onUp,N=t.onDown,z=t.onChangeX,D=t.onChangeY,oe=t.onChange,X=t.onToggleX,le=t.onToggleY,re=t.onHover,ge=t.onHoverEnd,_e=t.onMove,Z=t.ignoreCheck,me=t.isNormalizer,we=t.onGestureStart,x=t.onGestureEnd,Ce=t.onWheel,rt=t.onEnable,yt=t.onDisable,Oe=t.onClick,$e=t.scrollSpeed,Qe=t.capture,De=t.allowClicks,nt=t.lockAxis,Ze=t.onLockAxis;this.target=a=Pt(a)||Ai,this.vars=t,f&&(f=ut.utils.toArray(f)),r=r||1e-9,n=n||0,_=_||1,$e=$e||1,s=s||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(Bt.getComputedStyle(vr).lineHeight)||22);var ni,st,Je,ve,Le,ft,ot,S=this,bt=0,$t=0,si=t.passive||!c&&t.passive!==!1,Me=Hi(a,kt),ti=Hi(a,Ke),Gt=Me(),oi=ti(),g=~s.indexOf("touch")&&!~s.indexOf("pointer")&&ri[0]==="pointerdown",m=Vr(a),T=a.ownerDocument||Ri,y=[0,0,0],M=[0,0,0],I=0,A=function(){return I=Xr()},O=function(B,ae){return(S.event=B)&&f&&Wu(B.target,f)||ae&&g&&B.pointerType!=="touch"||Z&&Z(B,ae)},L=function(){S._vx.reset(),S._vy.reset(),st.pause(),d&&d(S)},q=function(){var B=S.deltaX=Eo(y),ae=S.deltaY=Eo(M),H=Math.abs(B)>=r,te=Math.abs(ae)>=r;oe&&(H||te)&&oe(S,B,ae,y,M),H&&(P&&S.deltaX>0&&P(S),F&&S.deltaX<0&&F(S),z&&z(S),X&&S.deltaX<0!=bt<0&&X(S),bt=S.deltaX,y[0]=y[1]=y[2]=0),te&&(N&&S.deltaY>0&&N(S),E&&S.deltaY<0&&E(S),D&&D(S),le&&S.deltaY<0!=$t<0&&le(S),$t=S.deltaY,M[0]=M[1]=M[2]=0),(ve||Je)&&(_e&&_e(S),Je&&(v&&Je===1&&v(S),b&&b(S),Je=0),ve=!1),ft&&!(ft=!1)&&Ze&&Ze(S),Le&&(Ce(S),Le=!1),ni=0},R=function(B,ae,H){y[H]+=B,M[H]+=ae,S._vx.update(B),S._vy.update(ae),u?ni||(ni=requestAnimationFrame(q)):q()},Y=function(B,ae){nt&&!ot&&(S.axis=ot=Math.abs(B)>Math.abs(ae)?"x":"y",ft=!0),ot!=="y"&&(y[2]+=B,S._vx.update(B,!0)),ot!=="x"&&(M[2]+=ae,S._vy.update(ae,!0)),u?ni||(ni=requestAnimationFrame(q)):q()},V=function(B){if(!O(B,1)){B=Rr(B,c);var ae=B.clientX,H=B.clientY,te=ae-S.x,j=H-S.y,ie=S.isDragging;S.x=ae,S.y=H,(ie||(te||j)&&(Math.abs(S.startX-ae)>=n||Math.abs(S.startY-H)>=n))&&(Je||(Je=ie?2:1),ie||(S.isDragging=!0),Y(te,j))}},Q=S.onPress=function(K){O(K,1)||K&&K.button||(S.axis=ot=null,st.pause(),S.isPressed=!0,K=Rr(K),bt=$t=0,S.startX=S.x=K.clientX,S.startY=S.y=K.clientY,S._vx.reset(),S._vy.reset(),St(me?a:T,ri[1],V,si,!0),S.deltaX=S.deltaY=0,k&&k(S))},W=S.onRelease=function(K){if(!O(K,1)){wt(me?a:T,ri[1],V,!0);var B=!isNaN(S.y-S.startY),ae=S.isDragging,H=ae&&(Math.abs(S.x-S.startX)>3||Math.abs(S.y-S.startY)>3),te=Rr(K);!H&&B&&(S._vx.reset(),S._vy.reset(),c&&De&&ut.delayedCall(.08,function(){if(Xr()-I>300&&!K.defaultPrevented){if(K.target.click)K.target.click();else if(T.createEvent){var j=T.createEvent("MouseEvents");j.initMouseEvent("click",!0,!0,Bt,1,te.screenX,te.screenY,te.clientX,te.clientY,!1,!1,!1,!1,0,null),K.target.dispatchEvent(j)}}})),S.isDragging=S.isGesturing=S.isPressed=!1,d&&ae&&!me&&st.restart(!0),Je&&q(),C&&ae&&C(S),w&&w(S,H)}},ne=function(B){return B.touches&&B.touches.length>1&&(S.isGesturing=!0)&&we(B,S.isDragging)},J=function(){return(S.isGesturing=!1)||x(S)},U=function(B){if(!O(B)){var ae=Me(),H=ti();R((ae-Gt)*$e,(H-oi)*$e,1),Gt=ae,oi=H,d&&st.restart(!0)}},ee=function(B){if(!O(B)){B=Rr(B,c),Ce&&(Le=!0);var ae=(B.deltaMode===1?l:B.deltaMode===2?Bt.innerHeight:1)*_;R(B.deltaX*ae,B.deltaY*ae,0),d&&!me&&st.restart(!0)}},ye=function(B){if(!O(B)){var ae=B.clientX,H=B.clientY,te=ae-S.x,j=H-S.y;S.x=ae,S.y=H,ve=!0,d&&st.restart(!0),(te||j)&&Y(te,j)}},se=function(B){S.event=B,re(S)},fe=function(B){S.event=B,ge(S)},Te=function(B){return O(B)||Rr(B,c)&&Oe(S)};st=S._dc=ut.delayedCall(h||.25,L).pause(),S.deltaX=S.deltaY=0,S._vx=Es(0,50,!0),S._vy=Es(0,50,!0),S.scrollX=Me,S.scrollY=ti,S.isDragging=S.isGesturing=S.isPressed=!1,Ua(this),S.enable=function(K){return S.isEnabled||(St(m?T:a,"scroll",Cs),s.indexOf("scroll")>=0&&St(m?T:a,"scroll",U,si,Qe),s.indexOf("wheel")>=0&&St(a,"wheel",ee,si,Qe),(s.indexOf("touch")>=0&&Xa||s.indexOf("pointer")>=0)&&(St(a,ri[0],Q,si,Qe),St(T,ri[2],W),St(T,ri[3],W),De&&St(a,"click",A,!0,!0),Oe&&St(a,"click",Te),we&&St(T,"gesturestart",ne),x&&St(T,"gestureend",J),re&&St(a,Ui+"enter",se),ge&&St(a,Ui+"leave",fe),_e&&St(a,Ui+"move",ye)),S.isEnabled=!0,S.isDragging=S.isGesturing=S.isPressed=ve=Je=!1,S._vx.reset(),S._vy.reset(),Gt=Me(),oi=ti(),K&&K.type&&Q(K),rt&&rt(S)),S},S.disable=function(){S.isEnabled&&(pr.filter(function(K){return K!==S&&Vr(K.target)}).length||wt(m?T:a,"scroll",Cs),S.isPressed&&(S._vx.reset(),S._vy.reset(),wt(me?a:T,ri[1],V,!0)),wt(m?T:a,"scroll",U,Qe),wt(a,"wheel",ee,Qe),wt(a,ri[0],Q,Qe),wt(T,ri[2],W),wt(T,ri[3],W),wt(a,"click",A,!0),wt(a,"click",Te),wt(T,"gesturestart",ne),wt(T,"gestureend",J),wt(a,Ui+"enter",se),wt(a,Ui+"leave",fe),wt(a,Ui+"move",ye),S.isEnabled=S.isPressed=S.isDragging=!1,yt&&yt(S))},S.kill=S.revert=function(){S.disable();var K=pr.indexOf(S);K>=0&&pr.splice(K,1),yi===S&&(yi=0)},pr.push(S),me&&Vr(a)&&(yi=S),S.enable(p)},Nu(o,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),o}();Ve.version="3.15.0";Ve.create=function(o){return new Ve(o)};Ve.register=ja;Ve.getAll=function(){return pr.slice()};Ve.getById=function(o){return pr.filter(function(e){return e.vars.id===o})[0]};qa()&&ut.registerPlugin(Ve);/*! * ScrollTrigger 3.15.0 * https://gsap.com * * @license Copyright 2008-2026, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com -*/var re,cr,Me,ze,Wt,De,eo,Vn,ln,Ur,zr,mn,mt,Kn,Ms,Et,Mo,Oo,fr,tl,os,il,Ct,Os,rl,nl,Ei,As,to,xr,io,Gr,Rs,as,vn=1,vt=Date.now,ls=vt(),ti=0,Fr=0,Ao=function(e,i,t){var r=It(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+i+"Clamp"]=r,r?e.substr(6,e.length-7):e},Ro=function(e,i){return i&&(!It(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Ju=function o(){return Fr&&requestAnimationFrame(o)},Lo=function(){return Kn=1},Do=function(){return Kn=0},fi=function(e){return e},Nr=function(e){return Math.round(e*1e5)/1e5||0},sl=function(){return typeof window<"u"},ol=function(){return re||sl()&&(re=window.gsap)&&re.registerPlugin&&re},ir=function(e){return!!~eo.indexOf(e)},al=function(e){return(e==="Height"?io:Me["inner"+e])||Wt["client"+e]||De["client"+e]},ll=function(e){return zi(e,"getBoundingClientRect")||(ir(e)?function(){return zn.width=Me.innerWidth,zn.height=io,zn}:function(){return yi(e)})},ec=function(e,i,t){var r=t.d,n=t.d2,s=t.a;return(s=zi(e,"getBoundingClientRect"))?function(){return s()[r]}:function(){return(i?al(n):e["client"+n])||0}},tc=function(e,i){return!i||~gi.indexOf(e)?ll(e):function(){return zn}},pi=function(e,i){var t=i.s,r=i.d2,n=i.d,s=i.a;return Math.max(0,(t="scroll"+r)&&(s=zi(e,t))?s()-ll(e)()[n]:ir(e)?(Wt[t]||De[t])-al(r):e[t]-e["offset"+r])},yn=function(e,i){for(var t=0;t0){for(r-=s,a=0;a=r)return t[a];return t[a-1]}else for(a=t.length,r+=s;a--;)if(t[a]<=r)return t[a];return t[0]}:function(r,n,s){s===void 0&&(s=.001);var a=i(r);return!n||Math.abs(a-r)t&&(r*=i/100),e=e.substr(0,t-1)),e=r+(e in Un?Un[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0)}return e},Sn=function(e,i,t,r,n,s,a,l){var u=n.startColor,c=n.endColor,p=n.fontSize,h=n.indent,f=n.fontWeight,g=ze.createElement("div"),d=ir(t)||zi(t,"pinType")==="fixed",b=e.indexOf("scroller")!==-1,y=d?De:t.tagName==="IFRAME"?t.contentDocument.body:t,x=e.indexOf("start")!==-1,C=x?u:c,w="border-color:"+C+";font-size:"+p+";color:"+C+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return w+="position:"+((b||l)&&d?"fixed;":"absolute;"),(b||l||!d)&&(w+=(r===ot?ro:no)+":"+(s+parseFloat(h))+"px;"),a&&(w+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),g._isStart=x,g.setAttribute("class","gsap-marker-"+e+(i?" marker-"+i:"")),g.style.cssText=w,g.innerText=i||i===0?e+"-"+i:e,y.children[0]?y.insertBefore(g,y.children[0]):y.appendChild(g),g._offset=g["offset"+r.op.d2],Rn(g,0,r,x),g},Rn=function(e,i,t,r){var n={display:"block"},s=t[r?"os2":"p2"],a=t[r?"p2":"os2"];e._isFlipped=r,n[t.a+"Percent"]=r?-100:0,n[t.a]=r?"1px":0,n["border"+s+Pr]=1,n["border"+a+Pr]=0,n[t.p]=i+"px",re.set(e,n)},Ce=[],Ls={},un,No=function(){return vt()-ti>34&&(un||(un=requestAnimationFrame(bi)))},ur=function(){(!Ct||!Ct.isPressed||Ct.startX>De.clientWidth)&&(Oe.cache++,Ct?un||(un=requestAnimationFrame(bi)):bi(),ti||nr("scrollStart"),ti=vt())},us=function(){nl=Me.innerWidth,rl=Me.innerHeight},Hr=function(e){Oe.cache++,(e===!0||!mt&&!il&&!ze.fullscreenElement&&!ze.webkitFullscreenElement&&(!Os||nl!==Me.innerWidth||Math.abs(Me.innerHeight-rl)>Me.innerHeight*.25))&&Vn.restart(!0)},rr={},sc=[],hl=function o(){return at(Ee,"scrollEnd",o)||$i(!0)},nr=function(e){return rr[e]&&rr[e].map(function(i){return i()})||sc},Nt=[],dl=function(e){for(var i=0;in,a=r._startClamp&&r.start>=n;(s||a)&&r.setPositions(a?n-1:r.start,s?Math.max(a?n:r.start+1,n):r.end,!0)}),Ho(!1),Rs=0,t.forEach(function(r){return r&&r.render&&r.render(-1)}),Oe.forEach(function(r){xt(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),gl(to,1),Vn.pause(),tr++,Pt=2,bi(2),Ce.forEach(function(r){return xt(r.vars.onRefresh)&&r.vars.onRefresh(r)}),Pt=Ee.isRefreshing=!1,nr("refresh")},Ds=0,Ln=1,Zr,bi=function(e){if(e===2||!Pt&&!Gr){Ee.isUpdating=!0,Zr&&Zr.update(0);var i=Ce.length,t=vt(),r=t-ls>=50,n=i&&Ce[0].scroll();if(Ln=Ds>n?-1:1,Pt||(Ds=n),r&&(ti&&!Kn&&t-ti>200&&(ti=0,nr("scrollEnd")),zr=ls,ls=t),Ln<0){for(Et=i;Et-- >0;)Ce[Et]&&Ce[Et].update(0,r);Ln=1}else for(Et=0;Et20),t-=t-M}if(g&&(l[g]=e||-.001,e<0&&(e=0)),s){var z=e+t,A=s._isStart;b="scroll"+r.d2,Rn(s,z,r,A&&z>20||!A&&(p?Math.max(De[b],Wt[b]):s.parentNode[b])<=z+1),p&&(u=yi(a),p&&(s.style[r.op.p]=u[r.op.p]-r.op.m-s._offset+st))}return f&&x&&(b=yi(x),f.seek(h),y=yi(x),f._caScrollDist=b[r.p]-y[r.p],e=e/f._caScrollDist*h),f&&f.seek(d),f?e:Math.round(e)},cc=/(webkit|moz|length|cssText|inset)/i,Bo=function(e,i,t,r){if(e.parentNode!==i){var n=e.style,s,a;if(i===De){e._stOrig=n.cssText,a=Zt(e);for(s in a)!+s&&!cc.test(s)&&a[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=a[s]);n.top=t,n.left=r}else n.cssText=e._stOrig;re.core.getCache(e).uncache=1,i.appendChild(e)}},ml=function(e,i,t){var r=i,n=r;return function(s){var a=Math.round(e());return a!==r&&a!==n&&Math.abs(a-r)>3&&Math.abs(a-n)>3&&(s=a,t&&t()),n=r,r=Math.round(s),r}},Cn=function(e,i,t){var r={};r[i.p]="+="+t,re.set(e,r)},Yo=function(e,i){var t=Hi(e,i),r="_scroll"+i.p2,n=function s(a,l,u,c,p){var h=s.tween,f=l.onComplete,g={};u=u||t();var d=ml(t,u,function(){h.kill(),s.tween=0});return p=c&&p||0,c=c||a-u,h&&h.kill(),l[r]=a,l.inherit=!1,l.modifiers=g,g[r]=function(){return d(u+c*h.ratio+p*h.ratio*h.ratio)},l.onUpdate=function(){Oe.cache++,s.tween&&bi()},l.onComplete=function(){s.tween=0,f&&f.call(h)},h=s.tween=re.to(e,l),h};return e[r]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},lt(e,"wheel",t.wheelHandler),Ee.isTouch&<(e,"touchmove",t.wheelHandler),n},Ee=function(){function o(i,t){cr||o.register(re)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),As(this),this.init(i,t)}var e=o.prototype;return e.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Fr){this.update=this.refresh=this.kill=fi;return}t=zo(It(t)||Ir(t)||t.nodeType?{trigger:t}:t,wn);var n=t,s=n.onUpdate,a=n.toggleClass,l=n.id,u=n.onToggle,c=n.onRefresh,p=n.scrub,h=n.trigger,f=n.pin,g=n.pinSpacing,d=n.invalidateOnRefresh,b=n.anticipatePin,y=n.onScrubComplete,x=n.onSnapComplete,C=n.once,w=n.snap,T=n.pinReparent,M=n.pinSpacer,S=n.containerAnimation,z=n.fastScrollEnd,A=n.preventOverlaps,R=t.horizontal||t.containerAnimation&&t.horizontal!==!1?kt:ot,fe=!p&&p!==0,$=Mt(t.scroller||Me),xe=re.core.getCache($),W=ir($),q=("pinType"in t?t.pinType:zi($,"pinType")||W&&"fixed")==="fixed",Y=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],I=fe&&t.toggleActions.split(" "),G="markers"in t?t.markers:wn.markers,ne=W?0:parseFloat(Zt($)["border"+R.p2+Pr])||0,v=this,we=t.onRefreshInit&&function(){return t.onRefreshInit(v)},Re=ec($,W,R),O=tc($,W),N=0,V=0,ie=0,Z=Hi($,R),le,ce,Se,ge,ve,be,We,et,rt,E,wt,$t,si,Be,ii,jt,oi,_,m,k,P,D,X,H,L,B,te,F,Q,J,ue,j,me,he,ee,de,Le,ye,Pe;if(v._startClamp=v._endClamp=!1,v._dir=R,b*=45,v.scroller=$,v.scroll=S?S.time.bind(S):Z,ge=Z(),v.vars=t,r=r||t.animation,"refreshPriority"in t&&(tl=1,t.refreshPriority===-9999&&(Zr=v)),xe.tweenScroll=xe.tweenScroll||{top:Yo($,ot),left:Yo($,kt)},v.tweenTo=le=xe.tweenScroll[R.p],v.scrubDuration=function(U){me=Ir(U)&&U,me?j?j.duration(U):j=re.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:me,paused:!0,onComplete:function(){return y&&y(v)}}):(j&&j.progress(1).kill(),j=0)},r&&(r.vars.lazy=!1,r._initted&&!v.isReverted||r.vars.immediateRender!==!1&&t.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),v.animation=r.pause(),r.scrollTrigger=v,v.scrubDuration(p),J=0,l||(l=r.vars.id)),w&&((!Ui(w)||w.push)&&(w={snapTo:w}),"scrollBehavior"in De.style&&re.set(W?[De,Wt]:$,{scrollBehavior:"auto"}),Oe.forEach(function(U){return xt(U)&&U.target===(W?ze.scrollingElement||Wt:$)&&(U.smooth=!1)}),Se=xt(w.snapTo)?w.snapTo:w.snapTo==="labels"?rc(r):w.snapTo==="labelsDirectional"?nc(r):w.directional!==!1?function(U,pe){return oo(w.snapTo)(U,vt()-V<500?0:pe.direction)}:re.utils.snap(w.snapTo),he=w.duration||{min:.1,max:2},he=Ui(he)?Ur(he.min,he.max):Ur(he,he),ee=re.delayedCall(w.delay||me/2||.1,function(){var U=Z(),pe=vt()-V<500,oe=le.tween;if((pe||Math.abs(v.getVelocity())<10)&&!oe&&!Kn&&N!==U){var _e=(U-be)/Be,$e=r&&!fe?r.totalProgress():_e,ke=pe?0:($e-ue)/(vt()-zr)*1e3||0,Qe=re.utils.clamp(-_e,1-_e,lr(ke/2)*ke/.185),pt=_e+(w.inertia===!1?0:Qe),je,Ye,Ne=w,ri=Ne.onStart,Ve=Ne.onInterrupt,Ft=Ne.onComplete;if(je=Se(pt,v),Ir(je)||(je=pt),Ye=Math.max(0,Math.round(be+je*Be)),U<=We&&U>=be&&Ye!==U){if(oe&&!oe._initted&&oe.data<=lr(Ye-U))return;w.inertia===!1&&(Qe=je-_e),le(Ye,{duration:he(lr(Math.max(lr(pt-$e),lr(je-$e))*.185/ke/.05||0)),ease:w.ease||"power3",data:lr(Ye-U),onInterrupt:function(){return ee.restart(!0)&&Ve&&ar(v,Ve)},onComplete:function(){v.update(),N=Z(),r&&!fe&&(j?j.resetTo("totalProgress",je,r._tTime/r._tDur):r.progress(je)),J=ue=r&&!fe?r.totalProgress():v.progress,x&&x(v),Ft&&ar(v,Ft)}},U,Qe*Be,Ye-U-Qe*Be),ri&&ar(v,ri,le.tween)}}else v.isActive&&N!==U&&ee.restart(!0)}).pause()),l&&(Ls[l]=v),h=v.trigger=Mt(h||f!==!0&&f),Pe=h&&h._gsap&&h._gsap.stRevert,Pe&&(Pe=Pe(v)),f=f===!0?h:Mt(f),It(a)&&(a={targets:h,className:a}),f&&(g===!1||g===Qt||(g=!g&&f.parentNode&&f.parentNode.style&&Zt(f.parentNode).display==="flex"?!1:tt),v.pin=f,ce=re.core.getCache(f),ce.spacer?ii=ce.pinState:(M&&(M=Mt(M),M&&!M.nodeType&&(M=M.current||M.nativeElement),ce.spacerIsNative=!!M,M&&(ce.spacerState=Tn(M))),ce.spacer=_=M||ze.createElement("div"),_.classList.add("pin-spacer"),l&&_.classList.add("pin-spacer-"+l),ce.pinState=ii=Tn(f)),t.force3D!==!1&&re.set(f,{force3D:!0}),v.spacer=_=ce.spacer,Q=Zt(f),H=Q[g+R.os2],k=re.getProperty(f),P=re.quickSetter(f,R.a,st),cs(f,_,Q),oi=Tn(f)),G){$t=Ui(G)?zo(G,Fo):Fo,E=Sn("scroller-start",l,$,R,$t,0),wt=Sn("scroller-end",l,$,R,$t,0,E),m=E["offset"+R.op.d2];var Fe=Mt(zi($,"content")||$);et=this.markerStart=Sn("start",l,Fe,R,$t,m,0,S),rt=this.markerEnd=Sn("end",l,Fe,R,$t,m,0,S),S&&(ye=re.quickSetter([et,rt],R.a,st)),!q&&!(gi.length&&zi($,"fixedMarkers")===!0)&&(ic(W?De:$),re.set([E,wt],{force3D:!0}),B=re.quickSetter(E,R.a,st),F=re.quickSetter(wt,R.a,st))}if(S){var ae=S.vars.onUpdate,K=S.vars.onUpdateParams;S.eventCallback("onUpdate",function(){v.update(0,0,1),ae&&ae.apply(S,K||[])})}if(v.previous=function(){return Ce[Ce.indexOf(v)-1]},v.next=function(){return Ce[Ce.indexOf(v)+1]},v.revert=function(U,pe){if(!pe)return v.kill(!0);var oe=U!==!1||!v.enabled,_e=mt;oe!==v.isReverted&&(oe&&(de=Math.max(Z(),v.scroll.rec||0),ie=v.progress,Le=r&&r.progress()),et&&[et,rt,E,wt].forEach(function($e){return $e.style.display=oe?"none":"block"}),oe&&(mt=v,v.update(oe)),f&&(!T||!v.isActive)&&(oe?ac(f,_,ii):cs(f,_,Zt(f),L)),oe||v.update(oe),mt=_e,v.isReverted=oe)},v.refresh=function(U,pe,oe,_e){if(!((mt||!v.enabled)&&!pe)){if(f&&U&&ti){lt(o,"scrollEnd",hl);return}!Pt&&we&&we(v),mt=v,le.tween&&!oe&&(le.tween.kill(),le.tween=0),j&&j.pause(),d&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(Ti){return Ti.vars.immediateRender&&Ti.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),v.isReverted||v.revert(!0,!0),v._subPinOffset=!1;var $e=Re(),ke=O(),Qe=S?S.duration():pi($,R),pt=Be<=.01||!Be,je=0,Ye=_e||0,Ne=Ui(oe)?oe.end:t.end,ri=t.endTrigger||h,Ve=Ui(oe)?oe.start:t.start||(t.start===0||!h?0:f?"0 0":"0 100%"),Ft=v.pinnedContainer=t.pinnedContainer&&Mt(t.pinnedContainer,v),ai=h&&Math.max(0,Ce.indexOf(v))||0,ct=ai,ft,gt,Bi,fn,_t,nt,li,Qn,lo,kr,ui,Mr,hn;for(G&&Ui(oe)&&(Mr=re.getProperty(E,R.p),hn=re.getProperty(wt,R.p));ct-- >0;)nt=Ce[ct],nt.end||nt.refresh(0,1)||(mt=v),li=nt.pin,li&&(li===h||li===f||li===Ft)&&!nt.isReverted&&(kr||(kr=[]),kr.unshift(nt),nt.revert(!0,!0)),nt!==Ce[ct]&&(ai--,ct--);for(xt(Ve)&&(Ve=Ve(v)),Ve=Ao(Ve,"start",v),be=Wo(Ve,h,$e,R,Z(),et,E,v,ke,ne,q,Qe,S,v._startClamp&&"_startClamp")||(f?-.001:0),xt(Ne)&&(Ne=Ne(v)),It(Ne)&&!Ne.indexOf("+=")&&(~Ne.indexOf(" ")?Ne=(It(Ve)?Ve.split(" ")[0]:"")+Ne:(je=An(Ne.substr(2),$e),Ne=It(Ve)?Ve:(S?re.utils.mapRange(0,S.duration(),S.scrollTrigger.start,S.scrollTrigger.end,be):be)+je,ri=h)),Ne=Ao(Ne,"end",v),We=Math.max(be,Wo(Ne||(ri?"100% 0":Qe),ri,$e,R,Z()+je,rt,wt,v,ke,ne,q,Qe,S,v._endClamp&&"_endClamp"))||-.001,je=0,ct=ai;ct--;)nt=Ce[ct]||{},li=nt.pin,li&&nt.start-nt._pinPush<=be&&!S&&nt.end>0&&(ft=nt.end-(v._startClamp?Math.max(0,nt.start):nt.start),(li===h&&nt.start-nt._pinPush=pi($,R)))ft=Zt(f),fn=R===ot,Bi=Z(),D=parseFloat(k(R.a))+Ye,!Qe&&We>1&&(ui=(W?ze.scrollingElement||Wt:$).style,ui={style:ui,value:ui["overflow"+R.a.toUpperCase()]},W&&Zt(De)["overflow"+R.a.toUpperCase()]!=="scroll"&&(ui.style["overflow"+R.a.toUpperCase()]="scroll")),cs(f,_,ft),oi=Tn(f),gt=yi(f,!0),Qn=q&&Hi($,fn?kt:ot)(),g?(L=[g+R.os2,Be+Ye+st],L.t=_,ct=g===tt?qn(f,R)+Be+Ye:0,ct&&(L.push(R.d,ct+st),_.style.flexBasis!=="auto"&&(_.style.flexBasis=ct+st)),br(L),Ft&&Ce.forEach(function(Ti){Ti.pin===Ft&&Ti.vars.pinSpacing!==!1&&(Ti._subPinOffset=!0)}),q&&Z(de)):(ct=qn(f,R),ct&&_.style.flexBasis!=="auto"&&(_.style.flexBasis=ct+st)),q&&(_t={top:gt.top+(fn?Bi-be:Qn)+st,left:gt.left+(fn?Qn:Bi-be)+st,boxSizing:"border-box",position:"fixed"},_t[Ji]=_t["max"+Pr]=Math.ceil(gt.width)+st,_t[er]=_t["max"+so]=Math.ceil(gt.height)+st,_t[Qt]=_t[Qt+Kr]=_t[Qt+$r]=_t[Qt+Qr]=_t[Qt+jr]="0",_t[tt]=ft[tt],_t[tt+Kr]=ft[tt+Kr],_t[tt+$r]=ft[tt+$r],_t[tt+Qr]=ft[tt+Qr],_t[tt+jr]=ft[tt+jr],jt=uc(ii,_t,T),Pt&&Z(0)),r?(lo=r._initted,os(1),r.render(r.duration(),!0,!0),X=k(R.a)-D+Be+Ye,te=Math.abs(Be-X)>1,q&&te&&jt.splice(jt.length-2,2),r.render(0,!0,!0),lo||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),os(0)):X=Be,ui&&(ui.value?ui.style["overflow"+R.a.toUpperCase()]=ui.value:ui.style.removeProperty("overflow-"+R.a));else if(h&&Z()&&!S)for(gt=h.parentNode;gt&>!==De;)gt._pinOffset&&(be-=gt._pinOffset,We-=gt._pinOffset),gt=gt.parentNode;kr&&kr.forEach(function(Ti){return Ti.revert(!1,!0)}),v.start=be,v.end=We,ge=ve=Pt?de:Z(),!S&&!Pt&&(ge0?Ce.slice(0,pe).reverse():Ce.slice(pe+1);return(It(U)?oe.filter(function(_e){return _e.vars.preventOverlaps===U}):oe).filter(function(_e){return v.direction>0?_e.end<=be:_e.start>=We})},v.update=function(U,pe,oe){if(!(S&&!oe&&!U)){var _e=Pt===!0?de:v.scroll(),$e=U?0:(_e-be)/Be,ke=$e<0?0:$e>1?1:$e||0,Qe=v.progress,pt,je,Ye,Ne,ri,Ve,Ft,ai;if(pe&&(ve=ge,ge=S?Z():_e,w&&(ue=J,J=r&&!fe?r.totalProgress():ke)),b&&f&&!mt&&!vn&&ti&&(!ke&&be<_e+(_e-ve)/(vt()-zr)*b?ke=1e-4:ke===1&&We>_e+(_e-ve)/(vt()-zr)*b&&(ke=.9999)),ke!==Qe&&v.enabled){if(pt=v.isActive=!!ke&&ke<1,je=!!Qe&&Qe<1,Ve=pt!==je,ri=Ve||!!ke!=!!Qe,v.direction=ke>Qe?1:-1,v.progress=ke,ri&&!mt&&(Ye=ke&&!Qe?0:ke===1?1:Qe===1?2:3,fe&&(Ne=!Ve&&I[Ye+1]!=="none"&&I[Ye+1]||I[Ye],ai=r&&(Ne==="complete"||Ne==="reset"||Ne in r))),A&&(Ve||ai)&&(ai||p||!r)&&(xt(A)?A(v):v.getTrailing(A).forEach(function(Bi){return Bi.endAnimation()})),fe||(j&&!mt&&!vn?(j._dp._time-j._start!==j._time&&j.render(j._dp._time-j._start),j.resetTo?j.resetTo("totalProgress",ke,r._tTime/r._tDur):(j.vars.totalProgress=ke,j.invalidate().restart())):r&&r.totalProgress(ke,!!(mt&&(V||U)))),f){if(U&&g&&(_.style[g+R.os2]=H),!q)P(Nr(D+X*ke));else if(ri){if(Ft=!U&&ke>Qe&&We+1>_e&&_e+1>=pi($,R),T)if(!U&&(pt||Ft)){var ct=yi(f,!0),ft=_e-be;Bo(f,De,ct.top+(R===ot?ft:0)+st,ct.left+(R===ot?0:ft)+st)}else Bo(f,_);br(pt||Ft?jt:oi),te&&ke<1&&pt||P(D+(ke===1&&!Ft?X:0))}}w&&!le.tween&&!mt&&!vn&&ee.restart(!0),a&&(Ve||C&&ke&&(ke<1||!as))&&ln(a.targets).forEach(function(Bi){return Bi.classList[pt||C?"add":"remove"](a.className)}),s&&!fe&&!U&&s(v),ri&&!mt?(fe&&(ai&&(Ne==="complete"?r.pause().totalProgress(1):Ne==="reset"?r.restart(!0).pause():Ne==="restart"?r.restart(!0):r[Ne]()),s&&s(v)),(Ve||!as)&&(u&&Ve&&ar(v,u),Y[Ye]&&ar(v,Y[Ye]),C&&(ke===1?v.kill(!1,1):Y[Ye]=0),Ve||(Ye=ke===1?1:3,Y[Ye]&&ar(v,Y[Ye]))),z&&!pt&&Math.abs(v.getVelocity())>(Ir(z)?z:2500)&&(Rr(v.callbackAnimation),j?j.progress(1):Rr(r,Ne==="reverse"?1:!ke,1))):fe&&s&&!mt&&s(v)}if(F){var gt=S?_e/S.duration()*(S._caScrollDist||0):_e;B(gt+(E._isFlipped?1:0)),F(gt)}ye&&ye(-_e/S.duration()*(S._caScrollDist||0))}},v.enable=function(U,pe){v.enabled||(v.enabled=!0,lt($,"resize",Hr),W||lt($,"scroll",ur),we&<(o,"refreshInit",we),U!==!1&&(v.progress=ie=0,ge=ve=N=Z()),pe!==!1&&v.refresh())},v.getTween=function(U){return U&&le?le.tween:j},v.setPositions=function(U,pe,oe,_e){if(S){var $e=S.scrollTrigger,ke=S.duration(),Qe=$e.end-$e.start;U=$e.start+Qe*U/ke,pe=$e.start+Qe*pe/ke}v.refresh(!1,!1,{start:Ro(U,oe&&!!v._startClamp),end:Ro(pe,oe&&!!v._endClamp)},_e),v.update()},v.adjustPinSpacing=function(U){if(L&&U){var pe=L.indexOf(R.d)+1;L[pe]=parseFloat(L[pe])+U+st,L[1]=parseFloat(L[1])+U+st,br(L)}},v.disable=function(U,pe){if(U!==!1&&v.revert(!0,!0),v.enabled&&(v.enabled=v.isActive=!1,pe||j&&j.pause(),de=0,ce&&(ce.uncache=1),we&&at(o,"refreshInit",we),ee&&(ee.pause(),le.tween&&le.tween.kill()&&(le.tween=0)),!W)){for(var oe=Ce.length;oe--;)if(Ce[oe].scroller===$&&Ce[oe]!==v)return;at($,"resize",Hr),W||at($,"scroll",ur)}},v.kill=function(U,pe){v.disable(U,pe),j&&!pe&&j.kill(),l&&delete Ls[l];var oe=Ce.indexOf(v);oe>=0&&Ce.splice(oe,1),oe===Et&&Ln>0&&Et--,oe=0,Ce.forEach(function(_e){return _e.scroller===v.scroller&&(oe=1)}),oe||Pt||(v.scroll.rec=0),r&&(r.scrollTrigger=null,U&&r.revert({kill:!1}),pe||r.kill()),et&&[et,rt,E,wt].forEach(function(_e){return _e.parentNode&&_e.parentNode.removeChild(_e)}),Zr===v&&(Zr=0),f&&(ce&&(ce.uncache=1),oe=0,Ce.forEach(function(_e){return _e.pin===f&&oe++}),oe||(ce.spacer=0)),t.onKill&&t.onKill(v)},Ce.push(v),v.enable(!1,!1),Pe&&Pe(v),r&&r.add&&!Be){var Te=v.update;v.update=function(){v.update=Te,Oe.cache++,be||We||v.refresh()},re.delayedCall(.01,v.update),Be=.01,be=We=0}else v.refresh();f&&oc()},o.register=function(t){return cr||(re=t||ol(),sl()&&window.document&&o.enable(),cr=Fr),cr},o.defaults=function(t){if(t)for(var r in t)wn[r]=t[r];return wn},o.disable=function(t,r){Fr=0,Ce.forEach(function(s){return s[r?"kill":"disable"](t)}),at(Me,"wheel",ur),at(ze,"scroll",ur),clearInterval(mn),at(ze,"touchcancel",fi),at(De,"touchstart",fi),xn(at,ze,"pointerdown,touchstart,mousedown",Lo),xn(at,ze,"pointerup,touchend,mouseup",Do),Vn.kill(),yn(at);for(var n=0;n0&&s.left+a0&&s.top+a=0&&Nt.splice(i,5),Nt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),re.core.getCache(e),As())}}):Nt};Ee.revert=function(o,e){return ao(!o,e)};Ee.create=function(o,e){return new Ee(o,e)};Ee.refresh=function(o){return o?Hr(!0):(cr||Ee.register())&&$i(!0)};Ee.update=function(o){return++Oe.cache&&bi(o===!0?2:0)};Ee.clearScrollMemory=gl;Ee.maxScroll=function(o,e){return pi(o,e?kt:ot)};Ee.getScrollFunc=function(o,e){return Hi(Mt(o),e?kt:ot)};Ee.getById=function(o){return Ls[o]};Ee.getAll=function(){return Ce.filter(function(o){return o.vars.id!=="ScrollSmoother"})};Ee.isScrolling=function(){return!!ti};Ee.snapDirectional=oo;Ee.addEventListener=function(o,e){var i=rr[o]||(rr[o]=[]);~i.indexOf(e)||i.push(e)};Ee.removeEventListener=function(o,e){var i=rr[o],t=i&&i.indexOf(e);t>=0&&i.splice(t,1)};Ee.batch=function(o,e){var i=[],t={},r=e.interval||.016,n=e.batchMax||1e9,s=function(u,c){var p=[],h=[],f=re.delayedCall(r,function(){c(p,h),p=[],h=[]}).pause();return function(g){p.length||f.restart(!0),p.push(g.trigger),h.push(g),n<=p.length&&f.progress(1)}},a;for(a in e)t[a]=a.substr(0,2)==="on"&&xt(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return xt(n)&&(n=n(),lt(Ee,"refresh",function(){return n=e.batchMax()})),ln(o).forEach(function(l){var u={};for(a in t)u[a]=t[a];u.trigger=l,i.push(Ee.create(u))}),i};var Xo=function(e,i,t,r){return i>r?e(r):i<0&&e(0),t>r?(r-i)/(t-i):t<0?i/(i-t):1},fs=function o(e,i){i===!0?e.style.removeProperty("touch-action"):e.style.touchAction=i===!0?"auto":i?"pan-"+i+(Je.isTouch?" pinch-zoom":""):"none",e===Wt&&o(De,i)},En={auto:1,scroll:1},fc=function(e){var i=e.event,t=e.target,r=e.axis,n=(i.changedTouches?i.changedTouches[0]:i).target,s=n._gsap||re.core.getCache(n),a=vt(),l;if(!s._isScrollT||a-s._isScrollT>2e3){for(;n&&n!==De&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(En[(l=Zt(n)).overflowY]||En[l.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!ir(n)&&(En[(l=Zt(n)).overflowY]||En[l.overflowX]),s._isScrollT=a}(s._isScroll||r==="x")&&(i.stopPropagation(),i._gsapAllow=!0)},vl=function(e,i,t,r){return Je.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:i,onWheel:r=r&&fc,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return t&<(ze,Je.eventTypes[0],qo,!1,!0)},onDisable:function(){return at(ze,Je.eventTypes[0],qo,!0)}})},hc=/(input|label|select|textarea)/i,Vo,qo=function(e){var i=hc.test(e.target.tagName);(i||Vo)&&(e._gsapAllow=!0,Vo=i)},dc=function(e){Ui(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var i=e,t=i.normalizeScrollX,r=i.momentum,n=i.allowNestedScroll,s=i.onRelease,a,l,u=Mt(e.target)||Wt,c=re.core.globals().ScrollSmoother,p=c&&c.get(),h=Ei&&(e.content&&Mt(e.content)||p&&e.content!==!1&&!p.smooth()&&p.content()),f=Hi(u,ot),g=Hi(u,kt),d=1,b=(Je.isTouch&&Me.visualViewport?Me.visualViewport.scale*Me.visualViewport.width:Me.outerWidth)/Me.innerWidth,y=0,x=xt(r)?function(){return r(a)}:function(){return r||2.8},C,w,T=vl(u,e.type,!0,n),M=function(){return w=!1},S=fi,z=fi,A=function(){l=pi(u,ot),z=Ur(Ei?1:0,l),t&&(S=Ur(0,pi(u,kt))),C=tr},R=function(){h._gsap.y=Nr(parseFloat(h._gsap.y)+f.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",f.offset=f.cacheID=0},fe=function(){if(w){requestAnimationFrame(M);var G=Nr(a.deltaY/2),ne=z(f.v-G);if(h&&ne!==f.v+f.offset){f.offset=ne-f.v;var v=Nr((parseFloat(h&&h._gsap.y)||0)-f.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+v+", 0, 1)",h._gsap.y=v+"px",f.cacheID=Oe.cache,bi()}return!0}f.offset&&R(),w=!0},$,xe,W,q,Y=function(){A(),$.isActive()&&$.vars.scrollY>l&&(f()>l?$.progress(1)&&f(l):$.resetTo("scrollY",l))};return h&&re.set(h,{y:"+=0"}),e.ignoreCheck=function(I){return Ei&&I.type==="touchmove"&&fe()||d>1.05&&I.type!=="touchstart"||a.isGesturing||I.touches&&I.touches.length>1},e.onPress=function(){w=!1;var I=d;d=Nr((Me.visualViewport&&Me.visualViewport.scale||1)/b),$.pause(),I!==d&&fs(u,d>1.01?!0:t?!1:"x"),xe=g(),W=f(),A(),C=tr},e.onRelease=e.onGestureStart=function(I,G){if(f.offset&&R(),!G)q.restart(!0);else{Oe.cache++;var ne=x(),v,we;t&&(v=g(),we=v+ne*.05*-I.velocityX/.227,ne*=Xo(g,v,we,pi(u,kt)),$.vars.scrollX=S(we)),v=f(),we=v+ne*.05*-I.velocityY/.227,ne*=Xo(f,v,we,pi(u,ot)),$.vars.scrollY=z(we),$.invalidate().duration(ne).play(.01),(Ei&&$.vars.scrollY>=l||v>=l-1)&&re.to({},{onUpdate:Y,duration:ne})}s&&s(I)},e.onWheel=function(){$._ts&&$.pause(),vt()-y>1e3&&(C=0,y=vt())},e.onChange=function(I,G,ne,v,we){if(tr!==C&&A(),G&&t&&g(S(v[2]===G?xe+(I.startX-I.x):g()+G-v[1])),ne){f.offset&&R();var Re=we[2]===ne,O=Re?W+I.startY-I.y:f()+ne-we[1],N=z(O);Re&&O!==N&&(W+=N-O),f(N)}(ne||G)&&bi()},e.onEnable=function(){fs(u,t?!1:"x"),Ee.addEventListener("refresh",Y),lt(Me,"resize",Y),f.smooth&&(f.target.style.scrollBehavior="auto",f.smooth=g.smooth=!1),T.enable()},e.onDisable=function(){fs(u,!0),at(Me,"resize",Y),Ee.removeEventListener("refresh",Y),T.kill()},e.lockAxis=e.lockAxis!==!1,a=new Je(e),a.iOS=Ei,Ei&&!f()&&f(1),Ei&&re.ticker.add(fi),q=a._dc,$=re.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:ml(f,f(),function(){return $.pause()})},onUpdate:bi,onComplete:q.vars.onComplete}),a};Ee.sort=function(o){if(xt(o))return Ce.sort(o);var e=Me.pageYOffset||0;return Ee.getAll().forEach(function(i){return i._sortY=i.trigger?e+i.trigger.getBoundingClientRect().top:i.start+Me.innerHeight}),Ce.sort(o||function(i,t){return(i.vars.refreshPriority||0)*-1e6+(i.vars.containerAnimation?1e6:i._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};Ee.observe=function(o){return new Je(o)};Ee.normalizeScroll=function(o){if(typeof o>"u")return Ct;if(o===!0&&Ct)return Ct.enable();if(o===!1){Ct&&Ct.kill(),Ct=o;return}var e=o instanceof Je?o:dc(o);return Ct&&Ct.target===e.target&&Ct.kill(),ir(e.target)&&(Ct=e),e};Ee.core={_getVelocityProp:ks,_inputObserver:vl,_scrollers:Oe,_proxies:gi,bridge:{ss:function(){ti||nr("scrollStart"),ti=vt()},ref:function(){return mt}}};ol()&&re.registerPlugin(Ee);var Uo="1.3.26";function yl(o,e,i){return Math.max(o,Math.min(e,i))}function pc(o,e,i){return(1-i)*o+i*e}function gc(o,e,i,t){return pc(o,e,1-Math.exp(-i*t))}function _c(o,e){return(o%e+e)%e}var mc=class{constructor(){se(this,"isRunning",!1);se(this,"value",0);se(this,"from",0);se(this,"to",0);se(this,"currentTime",0);se(this,"lerp");se(this,"duration");se(this,"easing");se(this,"onUpdate")}advance(o){var i;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=o;const t=yl(0,this.currentTime/this.duration,1);e=t>=1;const r=e?1:this.easing(t);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=gc(this.value,this.to,this.lerp*60,o),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(i=this.onUpdate)==null||i.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(o,e,{lerp:i,duration:t,easing:r,onStart:n,onUpdate:s}){this.from=this.value=o,this.to=e,this.lerp=i,this.duration=t,this.easing=r,this.currentTime=0,this.isRunning=!0,n==null||n(),this.onUpdate=s}};function vc(o,e){let i;return function(...t){clearTimeout(i),i=setTimeout(()=>{i=void 0,o.apply(this,t)},e)}}var yc=class{constructor(o,e,{autoResize:i=!0,debounce:t=250}={}){se(this,"width",0);se(this,"height",0);se(this,"scrollHeight",0);se(this,"scrollWidth",0);se(this,"debouncedResize");se(this,"wrapperResizeObserver");se(this,"contentResizeObserver");se(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});se(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});se(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=o,this.content=e,i&&(this.debouncedResize=vc(this.resize,t),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var o,e;(o=this.wrapperResizeObserver)==null||o.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},xl=class{constructor(){se(this,"events",{})}emit(o,...e){var t;const i=this.events[o]||[];for(let r=0,n=i.length;r{var i;this.events[o]=(i=this.events[o])==null?void 0:i.filter(t=>e!==t)}}off(o,e){var i;this.events[o]=(i=this.events[o])==null?void 0:i.filter(t=>e!==t)}destroy(){this.events={}}};const xc=100/6,Ci={passive:!1};function Go(o,e){return o===1?xc:o===2?e:1}var bc=class{constructor(o,e={wheelMultiplier:1,touchMultiplier:1}){se(this,"touchStart",{x:0,y:0});se(this,"lastDelta",{x:0,y:0});se(this,"window",{width:0,height:0});se(this,"emitter",new xl);se(this,"onTouchStart",o=>{const{clientX:e,clientY:i}=o.targetTouches?o.targetTouches[0]:o;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:o})});se(this,"onTouchMove",o=>{const{clientX:e,clientY:i}=o.targetTouches?o.targetTouches[0]:o,t=-(e-this.touchStart.x)*this.options.touchMultiplier,r=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:t,y:r},this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:o})});se(this,"onTouchEnd",o=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:o})});se(this,"onWheel",o=>{let{deltaX:e,deltaY:i,deltaMode:t}=o;const r=Go(t,this.window.width),n=Go(t,this.window.height);e*=r,i*=n,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:o})});se(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=o,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Ci),this.element.addEventListener("touchstart",this.onTouchStart,Ci),this.element.addEventListener("touchmove",this.onTouchMove,Ci),this.element.addEventListener("touchend",this.onTouchEnd,Ci)}on(o,e){return this.emitter.on(o,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,Ci),this.element.removeEventListener("touchstart",this.onTouchStart,Ci),this.element.removeEventListener("touchmove",this.onTouchMove,Ci),this.element.removeEventListener("touchend",this.onTouchEnd,Ci)}};const $o=o=>Math.min(1,1.001-2**(-10*o));var wc=class{constructor({wrapper:o=window,content:e=document.documentElement,eventsTarget:i=o,smoothWheel:t=!0,syncTouch:r=!1,syncTouchLerp:n=.075,touchInertiaExponent:s=1.7,duration:a,easing:l,lerp:u=.1,infinite:c=!1,orientation:p="vertical",gestureOrientation:h=p==="horizontal"?"both":"vertical",touchMultiplier:f=1,wheelMultiplier:g=1,autoResize:d=!0,prevent:b,virtualScroll:y,overscroll:x=!0,autoRaf:C=!1,anchors:w=!1,autoToggle:T=!1,allowNestedScroll:M=!1,__experimental__naiveDimensions:S=!1,naiveDimensions:z=S,stopInertiaOnNavigate:A=!1,respectReducedMotion:R=!0}={}){se(this,"_isScrolling",!1);se(this,"_isStopped",!1);se(this,"_isLocked",!1);se(this,"_preventNextNativeScrollEvent",!1);se(this,"_resetVelocityTimeout",null);se(this,"_rafId",null);se(this,"_isDraggingSelection",!1);se(this,"reducedMotionMediaQuery",window.matchMedia("(prefers-reduced-motion: reduce)"));se(this,"isTouching");se(this,"isIos");se(this,"time",0);se(this,"userData",{});se(this,"lastVelocity",0);se(this,"velocity",0);se(this,"direction",0);se(this,"options");se(this,"targetScroll");se(this,"animatedScroll");se(this,"animate",new mc);se(this,"emitter",new xl);se(this,"dimensions");se(this,"virtualScroll");se(this,"onScrollEnd",o=>{o instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&o.stopPropagation()});se(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});se(this,"onTransitionEnd",o=>{var e;(e=o.propertyName)!=null&&e.includes("overflow")&&o.target===this.rootElement&&this.checkOverflow()});se(this,"onClick",o=>{const e=o.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),i=new URL(window.location.href);if(this.options.anchors){const t=e.find(r=>i.host===r.host&&i.pathname===r.pathname&&r.hash);if(t){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(t.hash);this.scrollTo(n,r);return}}if(this.options.stopInertiaOnNavigate&&e.some(t=>i.host===t.host&&i.pathname!==t.pathname)){this.reset();return}});se(this,"onPointerDown",o=>{o.button===1&&this.reset()});se(this,"onVirtualScroll",o=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(o)===!1)return;const{deltaX:e,deltaY:i,event:t}=o;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:t}),t.ctrlKey||t.lenisStopPropagation)return;const r=t.type.includes("touch"),n=t.type.includes("wheel");if(r&&this.isIos&&(t.type==="touchstart"&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(t)),this._isDraggingSelection)){t.type==="touchend"&&(this._isDraggingSelection=!1);return}this.isTouching=t.type==="touchstart"||t.type==="touchmove";const s=e===0&&i===0;if(this.options.syncTouch&&r&&t.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}const a=this.options.gestureOrientation==="vertical"&&i===0||this.options.gestureOrientation==="horizontal"&&e===0;if(s||a)return;let l=t.composedPath();l=l.slice(0,l.indexOf(this.rootElement));const u=this.options.prevent,c=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if(l.find(g=>{var d,b,y,x,C;return g instanceof HTMLElement&&(typeof u=="function"&&(u==null?void 0:u(g))||((d=g.hasAttribute)==null?void 0:d.call(g,"data-lenis-prevent"))||c==="vertical"&&((b=g.hasAttribute)==null?void 0:b.call(g,"data-lenis-prevent-vertical"))||c==="horizontal"&&((y=g.hasAttribute)==null?void 0:y.call(g,"data-lenis-prevent-horizontal"))||r&&((x=g.hasAttribute)==null?void 0:x.call(g,"data-lenis-prevent-touch"))||n&&((C=g.hasAttribute)==null?void 0:C.call(g,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.hasNestedScroll(g,{deltaX:e,deltaY:i}))}))return;if(this.isStopped||this.isLocked){t.cancelable&&t.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&n)){this.isScrolling="native",this.animate.stop(),t.lenisStopPropagation=!0;return}let p=i;this.options.gestureOrientation==="both"?p=Math.abs(i)>Math.abs(e)?i:e:this.options.gestureOrientation==="horizontal"&&(p=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&i<0))&&(t.lenisStopPropagation=!0),t.cancelable&&t.preventDefault();const h=r&&this.options.syncTouch,f=r&&t.type==="touchend";f&&(p=Math.sign(p)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+p,{programmatic:!1,...h?{lerp:f?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});se(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const o=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-o,this.direction=Math.sign(this.animatedScroll-o),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});se(this,"raf",o=>{const e=o-(this.time||o);this.time=o,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=Uo,window.lenis||(window.lenis={}),window.lenis.version=Uo,p==="horizontal"&&(window.lenis.horizontal=!0),r===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!o||o===document.documentElement)&&(o=window),typeof a=="number"&&typeof l!="function"?l=$o:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:o,content:e,eventsTarget:i,smoothWheel:t,syncTouch:r,syncTouchLerp:n,touchInertiaExponent:s,duration:a,easing:l,lerp:u,infinite:c,gestureOrientation:h,orientation:p,touchMultiplier:f,wheelMultiplier:g,autoResize:d,prevent:b,virtualScroll:y,overscroll:x,autoRaf:C,anchors:w,autoToggle:T,allowNestedScroll:M,naiveDimensions:z,stopInertiaOnNavigate:A,respectReducedMotion:R},this.dimensions=new yc(o,e,{autoResize:d}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new bc(i,{touchMultiplier:f,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(o,e){return this.emitter.on(o,e)}off(o,e){return this.emitter.off(o,e)}get overflow(){const o=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[o]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(o){this.isHorizontal?this.options.wrapper.scrollTo({left:o,behavior:"instant"}):this.options.wrapper.scrollTo({top:o,behavior:"instant"})}isTouchOnSelectionHandle(o){const e=window.getSelection();if(!e||e.isCollapsed||e.rangeCount===0)return!1;const i=o.targetTouches[0]??o.changedTouches[0];if(!i)return!1;const t=e.getRangeAt(0).getClientRects();if(t.length===0)return!1;const r=t[0],n=t[t.length-1],s=40,a=Math.hypot(i.clientX-r.left,i.clientY-r.top)<=s,l=Math.hypot(i.clientX-n.right,i.clientY-n.bottom)<=s;return a||l}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(o,{offset:e=0,immediate:i=!1,lock:t=!1,programmatic:r=!0,lerp:n=r?this.options.lerp:void 0,duration:s=r?this.options.duration:void 0,easing:a=r?this.options.easing:void 0,onStart:l,onComplete:u,force:c=!1,userData:p}={}){if(this.prefersReducedMotion&&(r?i=!0:(n=1,s=void 0,a=void 0)),(this.isStopped||this.isLocked)&&!c)return;let h=o,f=e;if(typeof h=="string"&&["top","left","start","#"].includes(h))h=0;else if(typeof h=="string"&&["bottom","right","end"].includes(h))h=this.limit;else{let g=null;if(typeof h=="string"?(g=h.startsWith("#")?document.getElementById(h.slice(1)):document.querySelector(h),g||(h==="#top"?h=0:console.warn("Lenis: Target not found",h))):h instanceof HTMLElement&&(h!=null&&h.nodeType)&&(g=h),g){if(this.options.wrapper!==window){const w=this.rootElement.getBoundingClientRect();f-=this.isHorizontal?w.left:w.top}const d=g.getBoundingClientRect(),b=getComputedStyle(g),y=this.isHorizontal?Number.parseFloat(b.scrollMarginLeft):Number.parseFloat(b.scrollMarginTop),x=getComputedStyle(this.rootElement),C=this.isHorizontal?Number.parseFloat(x.scrollPaddingLeft):Number.parseFloat(x.scrollPaddingTop);h=(this.isHorizontal?d.left:d.top)+this.animatedScroll-(Number.isNaN(y)?0:y)-(Number.isNaN(C)?0:C)}}if(typeof h=="number"){if(h+=f,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;const g=h-this.animatedScroll;g>this.limit/2?h-=this.limit:g<-this.limit/2&&(h+=this.limit)}}else h=yl(0,h,this.limit);if(h===this.targetScroll){l==null||l(this),u==null||u(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=h,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=h),typeof s=="number"&&typeof a!="function"?a=$o:typeof a=="function"&&typeof s!="number"&&(s=1),this.animate.fromTo(this.animatedScroll,h,{duration:s,easing:a,lerp:n,onStart:()=>{t&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(g,d)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=g-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=g,this.setScroll(this.scroll),r&&(this.targetScroll=g),d||this.emit(),d&&(this.reset(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(o,{deltaX:e,deltaY:i}){const t=Date.now();o._lenis||(o._lenis={});const r=o._lenis;let n,s,a,l,u,c,p,h,f,g;if(t-(r.time??0)>2e3){r.time=Date.now();const M=window.getComputedStyle(o);if(r.computedStyle=M,n=["auto","overlay","scroll"].includes(M.overflowX),s=["auto","overlay","scroll"].includes(M.overflowY),u=["auto"].includes(M.overscrollBehaviorX),c=["auto"].includes(M.overscrollBehaviorY),r.hasOverflowX=n,r.hasOverflowY=s,!(n||s))return!1;p=o.scrollWidth,h=o.scrollHeight,f=o.clientWidth,g=o.clientHeight,a=p>f,l=h>g,r.isScrollableX=a,r.isScrollableY=l,r.scrollWidth=p,r.scrollHeight=h,r.clientWidth=f,r.clientHeight=g,r.hasOverscrollBehaviorX=u,r.hasOverscrollBehaviorY=c}else a=r.isScrollableX,l=r.isScrollableY,n=r.hasOverflowX,s=r.hasOverflowY,p=r.scrollWidth,h=r.scrollHeight,f=r.clientWidth,g=r.clientHeight,u=r.hasOverscrollBehaviorX,c=r.hasOverscrollBehaviorY;if(!(n&&a||s&&l))return!1;const d=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";let b,y,x,C,w,T;if(d==="horizontal")b=Math.round(o.scrollLeft),y=p-f,x=e,C=n,w=a,T=u;else if(d==="vertical")b=Math.round(o.scrollTop),y=h-g,x=i,C=s,w=l,T=c;else return!1;return!T&&(b>=y||b<=0)?!0:(x>0?b0)&&C&&w}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const o=this.options.wrapper;return this.isHorizontal?o.scrollX??o.scrollLeft:o.scrollY??o.scrollTop}get scroll(){return this.options.infinite?_c(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(o){this._isScrolling!==o&&(this._isScrolling=o,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(o){this._isStopped!==o&&(this._isStopped=o,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(o){this._isLocked!==o&&(this._isLocked=o,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let o="lenis";return this.options.autoToggle&&(o+=" lenis-autoToggle"),this.isStopped&&(o+=" lenis-stopped"),this.isLocked&&(o+=" lenis-locked"),this.isScrolling&&(o+=" lenis-scrolling"),this.isScrolling==="smooth"&&(o+=" lenis-smooth"),o}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(o=>{this.rootElement.classList.add(o)})}cleanUpClassName(){for(const o of Array.from(this.rootElement.classList))(o==="lenis"||o.startsWith("lenis-"))&&this.rootElement.classList.remove(o)}},Sc={exports:{}};(function(o,e){(function(i,t){o.exports=t()})(window,function(){return function(i){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return i[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=i,r.c=t,r.d=function(n,s,a){r.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:a})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,s){if(1&s&&(n=r(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var l in n)r.d(a,l,(function(u){return n[u]}).bind(null,l));return a},r.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(s,"a",s),s},r.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},r.p="",r(r.s=0)}([function(i,t,r){r.r(t);var n,s="fslightbox-",a="".concat(s,"styles"),l="".concat(s,"cursor-grabbing"),u="".concat(s,"full-dimension"),c="".concat(s,"flex-centered"),p="".concat(s,"open"),h="".concat(s,"transform-transition"),f="".concat(s,"absoluted"),g="".concat(s,"slide-btn"),d="".concat(g,"-container"),b="".concat(s,"fade-in"),y="".concat(s,"fade-out"),x=b+"-strong",C=y+"-strong",w="".concat(s,"opacity-"),T="".concat(w,"1"),M="".concat(s,"source");function S(_){return(S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(_)}function z(_){var m=_.stageIndexes,k=_.core.stageManager,P=_.props.sources.length-1;k.getPreviousSlideIndex=function(){return m.current===0?P:m.current-1},k.getNextSlideIndex=function(){return m.current===P?0:m.current+1},k.updateStageIndexes=P===0?function(){}:P===1?function(){m.current===0?(m.next=1,delete m.previous):(m.previous=0,delete m.next)}:function(){m.previous=k.getPreviousSlideIndex(),m.next=k.getNextSlideIndex()},k.i=P<=2?function(){return!0}:function(D){var X=m.current;if(X===0&&D===P||X===P&&D===0)return!0;var H=X-D;return H===-1||H===0||H===1}}(typeof window>"u"?"undefined":S(window))==="object"&&((n=document.createElement("style")).className=a,n.appendChild(document.createTextNode(".fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container::backdrop{display:none}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;padding:0;border:0;max-width:none;max-height:none;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;overflow:hidden;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg{width:20px;height:20px}.fslightbox-svgp{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightboxsn{z-index:0;display:flex;align-items:center;margin:14px 0 0 11px;font-size:15px;color:#d7d7d7}.fslightboxsn span{display:inline;vertical-align:middle}.fslightboxsl{display:inline-block!important;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:white}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex}.fslightbox-toolbar-button{width:45px;height:100%}.fslightbox-fsx{width:24px;height:24px}.fslightboxb{border:0;background:rgba(35,35,35,.65);cursor:pointer}.fslightboxb:focus{outline:0}.fslightboxb:focus .fslightbox-svgp{fill:#fff}.fslightboxb:hover .fslightbox-svgp{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}.fslightbox-slide-btn-container-next{padding-right:6px!important;padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}.fslightbox-slide-btn-container-next{padding-left:30px}.fslightbox-slide-btn{padding:10px}}.fslightbox-slide-btn-container:hover .fslightbox-svgp{fill:#fff}.fslightbox-slide-btn{padding:9px}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightboxv{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}@media (min-width:1200px){.fslightboxsn{margin:15px 0 0 12px;font-size:16px;display:block}.fslightboxsl{margin:0 6px 1px 6px;height:14px}.fslightbox-slide-btn{padding:11px}.fslightbox-svg{width:22px;height:22px}.fslightbox-fsx{width:26px;height:26px}.fslightbox-fso{width:22px;height:22px}.fslightboxl div{width:60px;height:60px;border-width:6px;border-color:#999 transparent transparent transparent;border-radius:50%}}@media (min-width:1600px){.fslightbox-nav{height:50px}.fslightboxsn{display:flex;margin:19px 0 0 16px;font-size:20px}.fslightboxsl{margin:0 7px 1px 7px;height:16px;width:2px;background:#d7d7d7}.fslightbox-toolbar-button{width:50px}.fslightbox-slide-btn{padding:12px}.fslightbox-svg{width:24px;height:24px}.fslightbox-fsx{width:28px;height:28px}.fslightbox-fso{width:24px;height:24px}}")),document.head.appendChild(n));function A(_){var m,k=_.props,P=0,D={};this.getSourceTypeFromLocalStorageByUrl=function(H){return m[H]?m[H]:X(H)},this.handleReceivedSourceTypeForUrl=function(H,L){if(D[L]===!1&&(P--,H!=="invalid"?D[L]=H:delete D[L],P===0)){(function(B,te){for(var F in te)B[F]=te[F]})(m,D);try{localStorage.setItem("fslightbox-types",JSON.stringify(m))}catch{}}};var X=function(H){P++,D[H]=!1};if(k.disableLocalStorage)this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){};else{try{m=JSON.parse(localStorage.getItem("fslightbox-types"))}catch{}m||(m={},this.getSourceTypeFromLocalStorageByUrl=X)}}function R(_,m,k,P){_.data;var D=_.elements.sources,X=k/P,H=0;this.adjustSize=function(){if((H=_.mw/X)<_.mh)return k<_.mw&&(H=P),L();H=P>_.mh?_.mh:P,L()};var L=function(){D[m].style.width=H*X+"px",D[m].style.height=H+"px"}}function fe(_,m){var k=this,P=_.collections.sourceSizers,D=_.elements,X=D.sourceAnimationWrappers,H=D.sources,L=_.isl,B=_.props.onSourceLoad,te=_.resolve;function F(Q,J){P[m]=te(R,[m,Q,J]),P[m].adjustSize()}this.b=function(Q,J){H[m].classList.add(T),k.a(),F(Q,J),k.b=F},this.a=function(){L[m]=!0,X[m].classList.add(x),X[m].removeChild(X[m].firstChild),B&&B(_,H[m],m)}}function $(_,m){var k,P=this,D=_.elements.sources,X=_.props,H=(0,_.resolve)(fe,[m]);this.handleImageLoad=function(L){var B=L.target,te=B.naturalWidth,F=B.naturalHeight;H.b(te,F)},this.handleVideoLoad=function(L){var B=L.target,te=B.videoWidth,F=B.videoHeight;k=!0,H.b(te,F)},this.handleNotMetaDatedVideoLoad=function(){k||P.handleYoutubeLoad()},this.handleYoutubeLoad=function(L,B){L||(L=1920,B=1080),X.maxYoutubeDimensions&&(L=X.maxYoutubeDimensions.width,B=X.maxYoutubeDimensions.height),H.b(L,B)},this.handleCustomLoad=function(){var L=D[m],B=L.offsetWidth,te=L.offsetHeight;B&&te?H.b(B,te):setTimeout(P.handleCustomLoad)}}function xe(_,m,k){var P=_.elements.sources,D=_.props.customClasses,X=D[m]?D[m]:"";P[m].className=k+" "+X}function W(_,m){var k=_.elements.sources,P=_.props.customAttributes;for(var D in P[m])k[m].setAttribute(D,P[m][D])}function q(_,m){var k=_.collections.sourceLoadHandlers,P=_.elements,D=P.sources,X=P.sourceAnimationWrappers,H=_.props.sources;D[m]=document.createElement("img"),xe(_,m,M),D[m].src=H[m],D[m].onload=k[m].handleImageLoad,W(_,m),X[m].appendChild(D[m])}function Y(_,m){var k=_.ap,P=_.collections.sourceLoadHandlers,D=_.elements,X=D.sources,H=D.sourceAnimationWrappers,L=_.props,B=L.sources,te=L.videosPosters,F=document.createElement("video"),Q=document.createElement("source");X[m]=F,xe(_,m,"".concat(M," fslightboxv")),F.src=B[m],F.onloadedmetadata=function(J){return P[m].handleVideoLoad(J)},F.controls=!0,F.autoplay=k.i(m),W(_,m),te[m]&&(X[m].poster=te[m]),Q.src=B[m],F.appendChild(Q),setTimeout(P[m].handleNotMetaDatedVideoLoad,3e3),H[m].appendChild(X[m])}function I(_,m){var k=_.ap,P=_.collections.sourceLoadHandlers,D=_.elements,X=D.sources,H=D.sourceAnimationWrappers,L=_.props.sources[m],B=L.split("?")[1],te=document.createElement("iframe");X[m]=te,xe(_,m,"".concat(M," ").concat(s,"youtube-iframe")),te.src="https://www.youtube.com/embed/".concat(L.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2],"?").concat(B||"").concat(k.i(m)?"&mute=1&autoplay=1":"","&enablejsapi=1"),te.allowFullscreen=!0,W(_,m),H[m].appendChild(te),P[m].handleYoutubeLoad(parseInt(te.width),parseInt(te.height))}function G(_,m){var k=_.collections.sourceLoadHandlers,P=_.elements,D=P.sources,X=P.sourceAnimationWrappers,H=_.props.sources;D[m]=H[m],xe(_,m,"".concat(D[m].className," ").concat(M)),X[m].appendChild(D[m]),k[m].handleCustomLoad()}function ne(_,m){var k=_.elements,P=k.sources,D=k.sourceAnimationWrappers;_.props.sources,P[m]=document.createElement("div"),P[m].className="".concat(s,"invalid-file-wrapper ").concat(c),P[m].innerHTML="Invalid source",D[m].appendChild(P[m]),new fe(_,m).a()}function v(_){var m=_.collections,k=m.sourceLoadHandlers,P=m.sourcesRenderFunctions,D=_.core.sourceDisplayFacade,X=_.resolve;this.runActionsForSourceTypeAndIndex=function(H,L){var B;switch(H!=="invalid"&&(k[L]=X($,[L])),H){case"image":B=q;break;case"video":B=Y;break;case"youtube":B=I;break;case"custom":B=G;break;default:B=ne}P[L]=function(){return B(_,L)},D.displaySourcesWhichShouldBeDisplayed()}}function we(_,m,k){var P=_.props,D=P.types,X=P.type,H=P.sources;this.getTypeSetByClientForIndex=function(L){var B;return D&&D[L]?B=D[L]:X&&(B=X),B},this.retrieveTypeWithXhrForIndex=function(L){(function(B,te){var F=document.createElement("a");F.href=B;var Q=F.hostname;if(Q==="www.youtube.com"||Q==="youtu.be")return te("youtube");var J=new XMLHttpRequest;J.onreadystatechange=function(){if(J.readyState!==4){if(J.readyState===2){var ue,j=J.getResponseHeader("content-type");switch(j.slice(0,j.indexOf("/"))){case"image":ue="image";break;case"video":ue="video";break;default:ue="invalid"}J.onreadystatechange=null,J.abort(),te(ue)}}else te("invalid")},J.open("GET",B),J.send()})(H[L],function(B){m.handleReceivedSourceTypeForUrl(B,H[L]),k.runActionsForSourceTypeAndIndex(B,L)})}}function Re(_,m){var k=_.core.stageManager,P=_.elements,D=P.smw,X=P.sourceWrappersContainer,H=_.props,L=0,B=document.createElement("div");function te(Q){B.style.transform="translateX(".concat(Q+L,"px)"),L=0}function F(){return(1+H.slideDistance)*innerWidth}B.className="".concat(f," ").concat(u," ").concat(c),B.s=function(){B.style.display="flex"},B.h=function(){B.style.display="none"},B.a=function(){B.classList.add(h)},B.d=function(){B.classList.remove(h)},B.n=function(){B.style.removeProperty("transform")},B.v=function(Q){return L=Q,B},B.ne=function(){te(-F())},B.z=function(){te(0)},B.p=function(){te(F())},k.i(m)||B.h(),D[m]=B,X.appendChild(B),function(Q,J){var ue=Q.elements,j=ue.smw,me=ue.sourceAnimationWrappers,he=document.createElement("div"),ee=document.createElement("div");ee.className="fslightboxl";for(var de=0;de<3;de++){var Le=document.createElement("div");ee.appendChild(Le)}he.appendChild(ee),j[J].appendChild(he),me[J]=he}(_,m)}function O(_,m,k){var P=document.createElementNS("http://www.w3.org/2000/svg","svg"),D="".concat(s,"svg");P.setAttributeNS(null,"class","".concat(D)),P.setAttributeNS(null,"viewBox",m);var X=document.createElementNS("http://www.w3.org/2000/svg","path");return X.setAttributeNS(null,"class","".concat(D,"p")),X.setAttributeNS(null,"d",k),P.appendChild(X),_.appendChild(P),P}function N(_,m){var k=document.createElement("button");return k.className="fslightboxb ".concat(s,"toolbar-button ").concat(c),k.title=m,_.appendChild(k),k}function V(_,m){var k=document.createElement("div");k.className="".concat(s,"toolbar"),m.appendChild(k),function(P,D){if(!P.hfs){var X="M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",H=N(D);H.title="Enter fullscreen";var L=O(H,"0 0 18 18",X);P.fso=function(){P.ifs=1,H.title="Exit fullscreen",L.classList.add("".concat(s,"fsx")),L.setAttributeNS(null,"viewBox","0 0 950 1024"),L.firstChild.setAttributeNS(null,"d","M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z")},P.fsx=function(){P.ifs=0,H.title="Enter fullscreen",L.classList.remove("".concat(s,"fsx")),L.setAttributeNS(null,"viewBox","0 0 18 18"),L.firstChild.setAttributeNS(null,"d",X)},H.onclick=P.fs.t}}(_,k),function(P,D){var X=N(D,"Close");X.onclick=P.core.lightboxCloser.closeLightbox,O(X,"0 0 24 24","M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z")}(_,k)}function ie(_){var m=_.props.sources,k=_.elements.container,P=document.createElement("div");P.className="".concat(s,"nav"),k.appendChild(P),V(_,P),m.length>1&&function(D,X){var H=D.props.sources,L=(D.stageIndexes,document.createElement("div")),B=document.createElement("span"),te=document.createElement("span"),F=document.createElement("span");L.className="fslightboxsn",D.sn=function(Q){return B.innerHTML=Q},te.className="fslightboxsl",F.innerHTML=H.length,L.appendChild(B),L.appendChild(te),L.appendChild(F),X.appendChild(L)}(_,P)}function Z(_,m,k,P){var D=_.elements.container,X=k.charAt(0).toUpperCase()+k.slice(1),H=document.createElement("div");H.className="".concat(d," ").concat(d,"-").concat(k),H.title="".concat(X," slide"),H.onclick=m,function(L,B){var te=document.createElement("button");te.className="fslightboxb ".concat(g," ").concat(c),O(te,"0 0 20 20",B),L.appendChild(te)}(H,P),D.appendChild(H)}function le(_){var m=_.core,k=m.lightboxCloser,P=m.slideChangeFacade,D=_.fs;this.listener=function(X){switch(X.key){case"Escape":k.closeLightbox();break;case"ArrowLeft":P.changeToPrevious();break;case"ArrowRight":P.changeToNext();break;case"F11":X.preventDefault(),D.t()}}}function ce(_){var m=_.elements,k=_.sourcePointerProps,P=_.stageIndexes;function D(X,H){m.smw[X].v(k.swipedX)[H]()}this.runActionsForEvent=function(X){var H,L,B;m.container.contains(m.slideSwipingHoverer)||m.container.appendChild(m.slideSwipingHoverer),H=m.container,L=l,(B=H.classList).contains(L)||B.add(L),k.swipedX=X.screenX-k.downScreenX;var te=P.previous,F=P.next;D(P.current,"z"),te!==void 0&&k.swipedX>0?D(te,"ne"):F!==void 0&&k.swipedX<0&&D(F,"p")}}function Se(_){var m=_.dss,k=_.props.sources,P=_.resolve,D=_.sourcePointerProps,X=P(ce);k.length===1||m?this.listener=function(){D.swipedX=1}:this.listener=function(H){D.isPointering&&X.runActionsForEvent(H)}}function ge(_){var m=_.core.slideIndexChanger,k=_.elements.smw,P=_.stageIndexes,D=_.sws;function X(L){var B=k[P.current];B.a(),B[L]()}function H(L,B){L!==void 0&&(k[L].s(),k[L][B]())}this.runPositiveSwipedXActions=function(){var L=P.previous;if(L===void 0)X("z");else{X("p");var B=P.next;m.changeTo(L);var te=P.previous;D.d(te),D.b(B),X("z"),H(te,"ne")}},this.runNegativeSwipedXActions=function(){var L=P.next;if(L===void 0)X("z");else{X("ne");var B=P.previous;m.changeTo(L);var te=P.next;D.d(te),D.b(B),X("z"),H(te,"p")}}}function ve(_,m){_.contains(m)&&_.removeChild(m)}function be(_){var m=_.core.lightboxCloser,k=_.dss,P=_.elements,D=_.props,X=_.resolve,H=_.sourcePointerProps,L=X(ge);this.runNoSwipeActions=function(){ve(P.container,P.slideSwipingHoverer),H.isSourceDownEventTarget||D.disableBackgroundClose||m.closeLightbox(),H.isPointering=!1},this.runActions=function(){k||(H.swipedX>0?L.runPositiveSwipedXActions():L.runNegativeSwipedXActions()),ve(P.container,P.slideSwipingHoverer),P.container.classList.remove(l),H.isPointering=!1}}function We(_){var m=_.resolve,k=_.sourcePointerProps,P=m(be);this.listener=function(){k.isPointering&&(k.swipedX?P.runActions():P.runNoSwipeActions())}}function et(_){var m=this,k=_.core,P=k.globalEventsController,D=k.scrollbarRecompensor,X=(_.data,_.e),H=_.elements,L=_.fs,B=_.props,te=_.sourcePointerProps,F=_.ud;this.runActions=function(){m.i=1,H.container.classList.add(C),P.removeListeners(),B.exitFullscreenOnClose&&_.ifs&&L.x(),setTimeout(function(){m.i=0,te.isPointering=!1,H.container.classList.remove(C),document.documentElement.classList.remove(p),D.removeRecompense(),F&&H.container.close(),document.body.removeChild(H.container),X("onClose")},270)}}function rt(_,m){var k=_.classList;k.contains(m)&&k.remove(m)}function E(_){var m,k,P,D,X,H,L,B,te;(function(F){var Q=F.ap,J=F.elements.sources,ue=F.props,j=ue.autoplay,me=ue.autoplays;function he(ee,de){if(de!="play"||Q.i(ee)){var Le=J[ee];if(Le){var ye=Le.tagName;if(ye=="VIDEO")Le[de]();else if(ye=="IFRAME"){var Pe=Le.contentWindow;Pe&&Pe.postMessage('{"event":"command","func":"'.concat(de,'Video","args":""}'),"*")}}}}Q.i=function(ee){return me[ee]||j&&me[ee]!=0},Q.p=function(ee){he(ee,"play")},Q.c=function(ee,de){he(ee,"pause"),he(de,"play")}})(_),function(F){F.data;var Q=F.fs,J=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],ue=document.documentElement,j=ue.requestFullscreen;function me(ee){for(var de=0;deinnerHeight&&(document.body.style.marginRight=Q.scrollbarWidth+"px")}J.addRecompense=function(){document.readyState==="complete"?ue():addEventListener("load",function(){ue(),J.addRecompense=ue})},J.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(_),function(F){var Q=F.core,J=Q.slideChangeFacade,ue=Q.slideIndexChanger,j=Q.stageManager;F.props.sources.length>1?(J.changeToPrevious=function(){ue.jumpTo(j.getPreviousSlideIndex())},J.changeToNext=function(){ue.jumpTo(j.getNextSlideIndex())}):(J.changeToPrevious=function(){},J.changeToNext=function(){})}(_),function(F){var Q=F.ap,J=(F.componentsServices,F.core),ue=J.slideIndexChanger,j=J.sourceDisplayFacade,me=J.stageManager,he=F.elements,ee=he.smw,de=he.sourceAnimationWrappers,Le=F.isl,ye=F.stageIndexes,Pe=F.sws;ue.changeTo=function(Fe){Q.c(ye.current,Fe),ye.current=Fe,me.updateStageIndexes(),F.sn(Fe+1),j.displaySourcesWhichShouldBeDisplayed()},ue.jumpTo=function(Fe){var ae=ye.previous,K=ye.current,Te=ye.next,U=Le[K],pe=Le[Fe];ue.changeTo(Fe);for(var oe=0;oe992?F.mw=he*innerWidth:F.mw=innerWidth,F.mh=he*innerHeight;for(var ee=0;ee0)&&(_.loc=1),E(_),_.fs.i(),F.container=document.createElement(_.ud?"dialog":"div"),F.container.className="".concat(s,"container ").concat(u," ").concat(x),F.container.setAttribute("tabindex","0"),function(ye){var Pe=ye.elements;Pe.slideSwipingHoverer=document.createElement("div"),Pe.slideSwipingHoverer.className="".concat(s,"slide-swiping-hoverer ").concat(u," ").concat(f)}(_),ie(_),function(ye){var Pe=ye.core.sourcesPointerDown,Fe=ye.elements,ae=ye.props.sources,K=document.createElement("div");K.className="".concat(f," ").concat(u),Fe.container.appendChild(K),K.addEventListener("pointerdown",Pe.listener),Fe.sourceWrappersContainer=K;for(var Te=0;Te1&&(he=(me=_).core.slideChangeFacade,Z(me,he.changeToPrevious,"previous","M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"),Z(me,he.changeToNext,"next","M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z")),function(ye){for(var Pe=ye.props.sources,Fe=ye.resolve,ae=Fe(A),K=Fe(v),Te=Fe(we,[ae,K]),U=0;U0&&arguments[0]!==void 0?arguments[0]:0,he=Q.previous,ee=Q.current,de=Q.next;Q.current=me,ue||z(_),H.updateStageIndexes(),ue?(J.c(),J.a(),J.b(he),J.b(ee),J.b(de),te("onShow")):j(),X.displaySourcesWhichShouldBeDisplayed(),_.sn(me+1),document.body.appendChild(F.container),_.ud&&F.container.showModal(),F.container.focus(),document.documentElement.classList.add(p),D.addRecompense(),P.attachListeners(),L.runActions(),F.smw[me].n(),m.p(me),te("onOpen")}}function $t(_,m,k){return($t=si()?Reflect.construct.bind():function(P,D,X){var H=[null];H.push.apply(H,D);var L=new(Function.bind.apply(P,H));return X&&Be(L,X.prototype),L}).apply(null,arguments)}function si(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Be(_,m){return(Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,P){return k.__proto__=P,k})(_,m)}function ii(_){return function(m){if(Array.isArray(m))return jt(m)}(_)||function(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}(_)||function(m,k){if(m){if(typeof m=="string")return jt(m,k);var P=Object.prototype.toString.call(m).slice(8,-1);if(P==="Object"&&m.constructor&&(P=m.constructor.name),P==="Map"||P==="Set")return Array.from(m);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return jt(m,k)}}(_)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function jt(_,m){(m==null||m>_.length)&&(m=_.length);for(var k=0,P=new Array(m);k1&&arguments[1]!==void 0?arguments[1]:[];return k.unshift(_),$t(m,ii(k))},this.collections={sourceLoadHandlers:[],sourcesRenderFunctions:[],sourceSizers:[]},this.core={globalEventsController:{},lightboxCloser:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},sourcesPointerDown:{},sourceDisplayFacade:{},stageManager:{},windowResizeActioner:{}},this.ap={},this.fs={},this.sws={},this.e=function(m){_.props[m]&&_.props[m](_)},wt(this),this.close=function(){return _.core.lightboxCloser.closeLightbox()}},window.fsLightboxInstances={},oi(),window.refreshFsLightbox=function(){for(var _ in fsLightboxInstances){var m=fsLightboxInstances[_].props;fsLightboxInstances[_]=new FsLightbox,fsLightboxInstances[_].props=m,fsLightboxInstances[_].props.sources=[],fsLightboxInstances[_].elements.a=[]}oi()}}])})})(Sc);Pi.registerPlugin(Ee);(function(o,e){(function(){e.path.isFront,console.log("drupalSettings",e);const t=document.querySelector('main[role="main"]'),r=Pi.matchMedia();console.log("gsap_mm",r);function n(){console.log("LeShedTheme init()"),console.log("deploy test to delete"),l(),h(),f(),g(),b(),d()}function s(y,x){return Math.floor(Math.random()*(x-y))+y}const a={wghtThin:{min:100,max:200},wghtMedium:{min:200,max:400},wghtBold:{min:800,max:900},boldRatio:.28,mediumRatio:.12,italicOnBold:.6,italicOnMedium:.4,italicOnThin:.3};function l(){const y=document.querySelectorAll(" #block-leshed-identitedusite>a, article.node-type-projet>header>h2, article.node-type-projet>.cols>.left>h2, article.node-type-projet.view-mode-full h2.node-title, article.node-type-evenement>header>h2, article.node-type-evenement>header>.field_dates>time, article.node-type-evenement.view-mode-full h2.node-title, article.node-type-evenement.view-mode-full .field_dates.digit-dates span.date-part ");for(const x of y){x.classList.add("variable-title");const C=Cl({target:x,by:"chars"});for(const w of C[0].words){const T=Array.from(w.getElementsByClassName("char"));c(T),p(T)}}}function u(y,x,C=new Set){const w=new Set;for(let T=0;T{let A,R;return C.has(z)?(A=a.wghtBold,R=a.italicOnBold):w.has(z)?(A=a.wghtMedium,R=a.italicOnMedium):(A=a.wghtThin,R=a.italicOnThin),{char:S,wght:s(A.min,A.max+1),ital:Math.random()S.ital)){const S=[...C,...w],z=S.length?S[s(0,S.length)]:s(0,x);T[z].ital=!0}let M=0;for(const S of T)S.ital?(M+=1,M>2&&(S.ital=!1,M=0)):M=0;for(const{char:S,wght:z,ital:A}of T)S.style.fontVariationSettings=`'wght' ${z}`,S.style.fontStyle=A?"italic":"normal",S.classList.toggle("italic",A),S.classList.toggle("normal",!A)}function p(y){if(y.length<5)return;const x="­",C=y.map(M=>M.textContent).join(""),w=Ml.hyphenateSync(C);if(!w.includes(x))return;let T=0;for(const M of w)if(M===x){const S=y[T];T>0&&S&&S.parentNode&&S.parentNode.insertBefore(document.createTextNode(x),S)}else T++}function h(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(x){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}function f(){const y=document.querySelector('main[role="main"]'),x=y&&y.querySelector(".layout-content");if(!y||!x)return;const C=new wc({wrapper:y,content:x,duration:1.2,smoothWheel:!0});C.on("scroll",Ee.update),Pi.ticker.add(w=>C.raf(w*1e3)),Pi.ticker.lagSmoothing(0)}function g(){console.log("initHomeColumnScrollSync");const y=document.querySelector(".layout--twocol-section--50-50 .layout__region--first"),x=document.querySelector(".layout--twocol-section--50-50 .layout__region--second");console.log(t,y,x),!(!t||!y||!x)&&(r.add("(min-width: 768px)",()=>([y,x].forEach(C=>{Pi.to(C,{y:()=>{const w=t.clientHeight,T=t.scrollHeight-t.clientHeight,M=Math.max(0,C.offsetHeight-w);return T-M},ease:"none",scrollTrigger:{scroller:t,start:0,end:"max",scrub:!0,invalidateOnRefresh:!0}})}),()=>{})),window.addEventListener("load",()=>Ee.refresh()))}function d(){console.log("initPageFull");const y=document.querySelector("article.node-type-projet.view-mode-full .cols>.col.left>header, article.node-type-evenement.view-mode-full>.cols>.col.left>header");console.log("pageHeader",y),y&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{const w=y.offsetHeight,T=.4,M=w-w*T;r.add("(min-width: 768px)",()=>{Pi.to(y,{scale:T,y:M,ease:"none",scrollTrigger:{scroller:t,start:0,end:M,scrub:!0,invalidateOnRefresh:!0}})})})});const x=document.querySelector("article.node-type-projet.view-mode-full .cols"),C=x&&x.querySelector(".col.left");if(x&&C){const T=()=>{const M=C.offsetHeight-t.clientHeight;return M>0?M:pageTitle?pageTitle.offsetHeight*.6:0};r.add("(min-width: 768px)",()=>{Pi.fromTo(C,{y:0},{y:()=>t.scrollHeight-t.clientHeight-T(),ease:"none",scrollTrigger:{scroller:t,start:T,end:"max",scrub:!0,invalidateOnRefresh:!0}})})}}function b(){console.log("initFsLightbox");let y=document.querySelectorAll("article.node-type-projet.view-mode-full .field_images.multiple .field-item a");for(const x of y)x.setAttribute("data-fslightbox","gallery");window.refreshFsLightbox()}n()})()})(Drupal,drupalSettings); +*/var $,cr,de,Se,Ht,be,Zs,Yn,an,Ur,zr,_n,_t,Gn,ks,Ct,ko,Po,fr,Ka,ns,Qa,Tt,Ps,Za,Ja,Ei,Os,Js,yr,eo,qr,Ms,ss,gn=1,gt=Date.now,os=gt(),ei=0,Fr=0,Oo=function(e,i,t){var r=It(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+i+"Clamp"]=r,r?e.substr(6,e.length-7):e},Mo=function(e,i){return i&&(!It(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Bu=function o(){return Fr&&requestAnimationFrame(o)},Ro=function(){return Gn=1},Ao=function(){return Gn=0},fi=function(e){return e},Ir=function(e){return Math.round(e*1e5)/1e5||0},el=function(){return typeof window<"u"},tl=function(){return $||el()&&($=window.gsap)&&$.registerPlugin&&$},ir=function(e){return!!~Zs.indexOf(e)},il=function(e){return(e==="Height"?eo:de["inner"+e])||Ht["client"+e]||be["client"+e]},rl=function(e){return zi(e,"getBoundingClientRect")||(ir(e)?function(){return Dn.width=de.innerWidth,Dn.height=eo,Dn}:function(){return xi(e)})},Yu=function(e,i,t){var r=t.d,n=t.d2,s=t.a;return(s=zi(e,"getBoundingClientRect"))?function(){return s()[r]}:function(){return(i?il(n):e["client"+n])||0}},Xu=function(e,i){return!i||~_i.indexOf(e)?rl(e):function(){return Dn}},pi=function(e,i){var t=i.s,r=i.d2,n=i.d,s=i.a;return Math.max(0,(t="scroll"+r)&&(s=zi(e,t))?s()-rl(e)()[n]:ir(e)?(Ht[t]||be[t])-il(r):e[t]-e["offset"+r])},mn=function(e,i){for(var t=0;t0){for(r-=s,a=0;a=r)return t[a];return t[a-1]}else for(a=t.length,r+=s;a--;)if(t[a]<=r)return t[a];return t[0]}:function(r,n,s){s===void 0&&(s=.001);var a=i(r);return!n||Math.abs(a-r)t&&(r*=i/100),e=e.substr(0,t-1)),e=r+(e in Vn?Vn[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0)}return e},bn=function(e,i,t,r,n,s,a,l){var u=n.startColor,c=n.endColor,d=n.fontSize,h=n.indent,f=n.fontWeight,_=Se.createElement("div"),p=ir(t)||zi(t,"pinType")==="fixed",v=e.indexOf("scroller")!==-1,C=p?be:t.tagName==="IFRAME"?t.contentDocument.body:t,b=e.indexOf("start")!==-1,k=b?u:c,w="border-color:"+k+";font-size:"+d+";color:"+k+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return w+="position:"+((v||l)&&p?"fixed;":"absolute;"),(v||l||!p)&&(w+=(r===Ke?to:io)+":"+(s+parseFloat(h))+"px;"),a&&(w+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),_._isStart=b,_.setAttribute("class","gsap-marker-"+e+(i?" marker-"+i:"")),_.style.cssText=w,_.innerText=i||i===0?e+"-"+i:e,C.children[0]?C.insertBefore(_,C.children[0]):C.appendChild(_),_._offset=_["offset"+r.op.d2],Mn(_,0,r,b),_},Mn=function(e,i,t,r){var n={display:"block"},s=t[r?"os2":"p2"],a=t[r?"p2":"os2"];e._isFlipped=r,n[t.a+"Percent"]=r?-100:0,n[t.a]=r?"1px":0,n["border"+s+kr]=1,n["border"+a+kr]=0,n[t.p]=i+"px",$.set(e,n)},ue=[],Rs={},ln,zo=function(){return gt()-ei>34&&(ln||(ln=requestAnimationFrame(bi)))},ur=function(){(!Tt||!Tt.isPressed||Tt.startX>be.clientWidth)&&(pe.cache++,Tt?ln||(ln=requestAnimationFrame(bi)):bi(),ei||nr("scrollStart"),ei=gt())},as=function(){Ja=de.innerWidth,Za=de.innerHeight},Hr=function(e){pe.cache++,(e===!0||!_t&&!Qa&&!Se.fullscreenElement&&!Se.webkitFullscreenElement&&(!Ps||Ja!==de.innerWidth||Math.abs(de.innerHeight-Za)>de.innerHeight*.25))&&Yn.restart(!0)},rr={},$u=[],al=function o(){return et(ce,"scrollEnd",o)||Gi(!0)},nr=function(e){return rr[e]&&rr[e].map(function(i){return i()})||$u},Ft=[],ll=function(e){for(var i=0;in,a=r._startClamp&&r.start>=n;(s||a)&&r.setPositions(a?n-1:r.start,s?Math.max(a?n:r.start+1,n):r.end,!0)}),Io(!1),Ms=0,t.forEach(function(r){return r&&r.render&&r.render(-1)}),pe.forEach(function(r){vt(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),cl(Js,1),Yn.pause(),tr++,Et=2,bi(2),ue.forEach(function(r){return vt(r.vars.onRefresh)&&r.vars.onRefresh(r)}),Et=ce.isRefreshing=!1,nr("refresh")},As=0,Rn=1,Qr,bi=function(e){if(e===2||!Et&&!qr){ce.isUpdating=!0,Qr&&Qr.update(0);var i=ue.length,t=gt(),r=t-os>=50,n=i&&ue[0].scroll();if(Rn=As>n?-1:1,Et||(As=n),r&&(ei&&!Gn&&t-ei>200&&(ei=0,nr("scrollEnd")),zr=os,os=t),Rn<0){for(Ct=i;Ct-- >0;)ue[Ct]&&ue[Ct].update(0,r);Rn=1}else for(Ct=0;Ct20),t-=t-F}if(_&&(l[_]=e||-.001,e<0&&(e=0)),s){var N=e+t,z=s._isStart;v="scroll"+r.d2,Mn(s,N,r,z&&N>20||!z&&(d?Math.max(be[v],Ht[v]):s.parentNode[v])<=N+1),d&&(u=xi(a),d&&(s.style[r.op.p]=u[r.op.p]-r.op.m-s._offset+je))}return f&&b&&(v=xi(b),f.seek(h),C=xi(b),f._caScrollDist=v[r.p]-C[r.p],e=e/f._caScrollDist*h),f&&f.seek(p),f?e:Math.round(e)},Zu=/(webkit|moz|length|cssText|inset)/i,Ho=function(e,i,t,r){if(e.parentNode!==i){var n=e.style,s,a;if(i===be){e._stOrig=n.cssText,a=Qt(e);for(s in a)!+s&&!Zu.test(s)&&a[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=a[s]);n.top=t,n.left=r}else n.cssText=e._stOrig;$.core.getCache(e).uncache=1,i.appendChild(e)}},hl=function(e,i,t){var r=i,n=r;return function(s){var a=Math.round(e());return a!==r&&a!==n&&Math.abs(a-r)>3&&Math.abs(a-n)>3&&(s=a,t&&t()),n=r,r=Math.round(s),r}},Sn=function(e,i,t){var r={};r[i.p]="+="+t,$.set(e,r)},Wo=function(e,i){var t=Hi(e,i),r="_scroll"+i.p2,n=function s(a,l,u,c,d){var h=s.tween,f=l.onComplete,_={};u=u||t();var p=hl(t,u,function(){h.kill(),s.tween=0});return d=c&&d||0,c=c||a-u,h&&h.kill(),l[r]=a,l.inherit=!1,l.modifiers=_,_[r]=function(){return p(u+c*h.ratio+d*h.ratio*h.ratio)},l.onUpdate=function(){pe.cache++,s.tween&&bi()},l.onComplete=function(){s.tween=0,f&&f.call(h)},h=s.tween=$.to(e,l),h};return e[r]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},tt(e,"wheel",t.wheelHandler),ce.isTouch&&tt(e,"touchmove",t.wheelHandler),n},ce=function(){function o(i,t){cr||o.register($)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Os(this),this.init(i,t)}var e=o.prototype;return e.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Fr){this.update=this.refresh=this.kill=fi;return}t=Do(It(t)||Nr(t)||t.nodeType?{trigger:t}:t,yn);var n=t,s=n.onUpdate,a=n.toggleClass,l=n.id,u=n.onToggle,c=n.onRefresh,d=n.scrub,h=n.trigger,f=n.pin,_=n.pinSpacing,p=n.invalidateOnRefresh,v=n.anticipatePin,C=n.onScrubComplete,b=n.onSnapComplete,k=n.once,w=n.snap,P=n.pinReparent,F=n.pinSpacer,E=n.containerAnimation,N=n.fastScrollEnd,z=n.preventOverlaps,D=t.horizontal||t.containerAnimation&&t.horizontal!==!1?kt:Ke,oe=!d&&d!==0,X=Pt(t.scroller||de),le=$.core.getCache(X),re=ir(X),ge=("pinType"in t?t.pinType:zi(X,"pinType")||re&&"fixed")==="fixed",_e=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],Z=oe&&t.toggleActions.split(" "),me="markers"in t?t.markers:yn.markers,we=re?0:parseFloat(Qt(X)["border"+D.p2+kr])||0,x=this,Ce=t.onRefreshInit&&function(){return t.onRefreshInit(x)},rt=Yu(X,re,D),yt=Xu(X,re),Oe=0,$e=0,Qe=0,De=Hi(X,D),nt,Ze,ni,st,Je,ve,Le,ft,ot,S,bt,$t,si,Me,ti,Gt,oi,g,m,T,y,M,I,A,O,L,q,R,Y,V,Q,W,ne,J,U,ee,ye,se,fe;if(x._startClamp=x._endClamp=!1,x._dir=D,v*=45,x.scroller=X,x.scroll=E?E.time.bind(E):De,st=De(),x.vars=t,r=r||t.animation,"refreshPriority"in t&&(Ka=1,t.refreshPriority===-9999&&(Qr=x)),le.tweenScroll=le.tweenScroll||{top:Wo(X,Ke),left:Wo(X,kt)},x.tweenTo=nt=le.tweenScroll[D.p],x.scrubDuration=function(H){ne=Nr(H)&&H,ne?W?W.duration(H):W=$.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:ne,paused:!0,onComplete:function(){return C&&C(x)}}):(W&&W.progress(1).kill(),W=0)},r&&(r.vars.lazy=!1,r._initted&&!x.isReverted||r.vars.immediateRender!==!1&&t.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),x.animation=r.pause(),r.scrollTrigger=x,x.scrubDuration(d),V=0,l||(l=r.vars.id)),w&&((!qi(w)||w.push)&&(w={snapTo:w}),"scrollBehavior"in be.style&&$.set(re?[be,Ht]:X,{scrollBehavior:"auto"}),pe.forEach(function(H){return vt(H)&&H.target===(re?Se.scrollingElement||Ht:X)&&(H.smooth=!1)}),ni=vt(w.snapTo)?w.snapTo:w.snapTo==="labels"?Uu(r):w.snapTo==="labelsDirectional"?qu(r):w.directional!==!1?function(H,te){return no(w.snapTo)(H,gt()-$e<500?0:te.direction)}:$.utils.snap(w.snapTo),J=w.duration||{min:.1,max:2},J=qi(J)?Ur(J.min,J.max):Ur(J,J),U=$.delayedCall(w.delay||ne/2||.1,function(){var H=De(),te=gt()-$e<500,j=nt.tween;if((te||Math.abs(x.getVelocity())<10)&&!j&&!Gn&&Oe!==H){var ie=(H-ve)/Me,He=r&&!oe?r.totalProgress():ie,he=te?0:(He-Q)/(gt()-zr)*1e3||0,Ye=$.utils.clamp(-ie,1-ie,lr(he/2)*he/.185),ht=ie+(w.inertia===!1?0:Ye),We,Re,Ee=w,ii=Ee.onStart,ze=Ee.onInterrupt,zt=Ee.onComplete;if(We=ni(ht,x),Nr(We)||(We=ht),Re=Math.max(0,Math.round(ve+We*Me)),H<=Le&&H>=ve&&Re!==H){if(j&&!j._initted&&j.data<=lr(Re-H))return;w.inertia===!1&&(Ye=We-ie),nt(Re,{duration:J(lr(Math.max(lr(ht-He),lr(We-He))*.185/he/.05||0)),ease:w.ease||"power3",data:lr(Re-H),onInterrupt:function(){return U.restart(!0)&&ze&&ar(x,ze)},onComplete:function(){x.update(),Oe=De(),r&&!oe&&(W?W.resetTo("totalProgress",We,r._tTime/r._tDur):r.progress(We)),V=Q=r&&!oe?r.totalProgress():x.progress,b&&b(x),zt&&ar(x,zt)}},H,Ye*Me,Re-H-Ye*Me),ii&&ar(x,ii,nt.tween)}}else x.isActive&&Oe!==H&&U.restart(!0)}).pause()),l&&(Rs[l]=x),h=x.trigger=Pt(h||f!==!0&&f),fe=h&&h._gsap&&h._gsap.stRevert,fe&&(fe=fe(x)),f=f===!0?h:Pt(f),It(a)&&(a={targets:h,className:a}),f&&(_===!1||_===Kt||(_=!_&&f.parentNode&&f.parentNode.style&&Qt(f.parentNode).display==="flex"?!1:Ue),x.pin=f,Ze=$.core.getCache(f),Ze.spacer?ti=Ze.pinState:(F&&(F=Pt(F),F&&!F.nodeType&&(F=F.current||F.nativeElement),Ze.spacerIsNative=!!F,F&&(Ze.spacerState=wn(F))),Ze.spacer=g=F||Se.createElement("div"),g.classList.add("pin-spacer"),l&&g.classList.add("pin-spacer-"+l),Ze.pinState=ti=wn(f)),t.force3D!==!1&&$.set(f,{force3D:!0}),x.spacer=g=Ze.spacer,Y=Qt(f),A=Y[_+D.os2],T=$.getProperty(f),y=$.quickSetter(f,D.a,je),ls(f,g,Y),oi=wn(f)),me){$t=qi(me)?Do(me,Lo):Lo,S=bn("scroller-start",l,X,D,$t,0),bt=bn("scroller-end",l,X,D,$t,0,S),m=S["offset"+D.op.d2];var Te=Pt(zi(X,"content")||X);ft=this.markerStart=bn("start",l,Te,D,$t,m,0,E),ot=this.markerEnd=bn("end",l,Te,D,$t,m,0,E),E&&(se=$.quickSetter([ft,ot],D.a,je)),!ge&&!(_i.length&&zi(X,"fixedMarkers")===!0)&&(Vu(re?be:X),$.set([S,bt],{force3D:!0}),L=$.quickSetter(S,D.a,je),R=$.quickSetter(bt,D.a,je))}if(E){var K=E.vars.onUpdate,B=E.vars.onUpdateParams;E.eventCallback("onUpdate",function(){x.update(0,0,1),K&&K.apply(E,B||[])})}if(x.previous=function(){return ue[ue.indexOf(x)-1]},x.next=function(){return ue[ue.indexOf(x)+1]},x.revert=function(H,te){if(!te)return x.kill(!0);var j=H!==!1||!x.enabled,ie=_t;j!==x.isReverted&&(j&&(ee=Math.max(De(),x.scroll.rec||0),Qe=x.progress,ye=r&&r.progress()),ft&&[ft,ot,S,bt].forEach(function(He){return He.style.display=j?"none":"block"}),j&&(_t=x,x.update(j)),f&&(!P||!x.isActive)&&(j?ju(f,g,ti):ls(f,g,Qt(f),O)),j||x.update(j),_t=ie,x.isReverted=j)},x.refresh=function(H,te,j,ie){if(!((_t||!x.enabled)&&!te)){if(f&&H&&ei){tt(o,"scrollEnd",al);return}!Et&&Ce&&Ce(x),_t=x,nt.tween&&!j&&(nt.tween.kill(),nt.tween=0),W&&W.pause(),p&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(Ti){return Ti.vars.immediateRender&&Ti.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),x.isReverted||x.revert(!0,!0),x._subPinOffset=!1;var He=rt(),he=yt(),Ye=E?E.duration():pi(X,D),ht=Me<=.01||!Me,We=0,Re=ie||0,Ee=qi(j)?j.end:t.end,ii=t.endTrigger||h,ze=qi(j)?j.start:t.start||(t.start===0||!h?0:f?"0 0":"0 100%"),zt=x.pinnedContainer=t.pinnedContainer&&Pt(t.pinnedContainer,x),ai=h&&Math.max(0,ue.indexOf(x))||0,at=ai,lt,dt,Bi,cn,pt,Ge,li,jn,oo,Pr,ui,Or,fn;for(me&&qi(j)&&(Or=$.getProperty(S,D.p),fn=$.getProperty(bt,D.p));at-- >0;)Ge=ue[at],Ge.end||Ge.refresh(0,1)||(_t=x),li=Ge.pin,li&&(li===h||li===f||li===zt)&&!Ge.isReverted&&(Pr||(Pr=[]),Pr.unshift(Ge),Ge.revert(!0,!0)),Ge!==ue[at]&&(ai--,at--);for(vt(ze)&&(ze=ze(x)),ze=Oo(ze,"start",x),ve=No(ze,h,He,D,De(),ft,S,x,he,we,ge,Ye,E,x._startClamp&&"_startClamp")||(f?-.001:0),vt(Ee)&&(Ee=Ee(x)),It(Ee)&&!Ee.indexOf("+=")&&(~Ee.indexOf(" ")?Ee=(It(ze)?ze.split(" ")[0]:"")+Ee:(We=On(Ee.substr(2),He),Ee=It(ze)?ze:(E?$.utils.mapRange(0,E.duration(),E.scrollTrigger.start,E.scrollTrigger.end,ve):ve)+We,ii=h)),Ee=Oo(Ee,"end",x),Le=Math.max(ve,No(Ee||(ii?"100% 0":Ye),ii,He,D,De()+We,ot,bt,x,he,we,ge,Ye,E,x._endClamp&&"_endClamp"))||-.001,We=0,at=ai;at--;)Ge=ue[at]||{},li=Ge.pin,li&&Ge.start-Ge._pinPush<=ve&&!E&&Ge.end>0&&(lt=Ge.end-(x._startClamp?Math.max(0,Ge.start):Ge.start),(li===h&&Ge.start-Ge._pinPush=pi(X,D)))lt=Qt(f),cn=D===Ke,Bi=De(),M=parseFloat(T(D.a))+Re,!Ye&&Le>1&&(ui=(re?Se.scrollingElement||Ht:X).style,ui={style:ui,value:ui["overflow"+D.a.toUpperCase()]},re&&Qt(be)["overflow"+D.a.toUpperCase()]!=="scroll"&&(ui.style["overflow"+D.a.toUpperCase()]="scroll")),ls(f,g,lt),oi=wn(f),dt=xi(f,!0),jn=ge&&Hi(X,cn?kt:Ke)(),_?(O=[_+D.os2,Me+Re+je],O.t=g,at=_===Ue?Xn(f,D)+Me+Re:0,at&&(O.push(D.d,at+je),g.style.flexBasis!=="auto"&&(g.style.flexBasis=at+je)),br(O),zt&&ue.forEach(function(Ti){Ti.pin===zt&&Ti.vars.pinSpacing!==!1&&(Ti._subPinOffset=!0)}),ge&&De(ee)):(at=Xn(f,D),at&&g.style.flexBasis!=="auto"&&(g.style.flexBasis=at+je)),ge&&(pt={top:dt.top+(cn?Bi-ve:jn)+je,left:dt.left+(cn?jn:Bi-ve)+je,boxSizing:"border-box",position:"fixed"},pt[Ji]=pt["max"+kr]=Math.ceil(dt.width)+je,pt[er]=pt["max"+ro]=Math.ceil(dt.height)+je,pt[Kt]=pt[Kt+jr]=pt[Kt+$r]=pt[Kt+Kr]=pt[Kt+Gr]="0",pt[Ue]=lt[Ue],pt[Ue+jr]=lt[Ue+jr],pt[Ue+$r]=lt[Ue+$r],pt[Ue+Kr]=lt[Ue+Kr],pt[Ue+Gr]=lt[Ue+Gr],Gt=Qu(ti,pt,P),Et&&De(0)),r?(oo=r._initted,ns(1),r.render(r.duration(),!0,!0),I=T(D.a)-M+Me+Re,q=Math.abs(Me-I)>1,ge&&q&&Gt.splice(Gt.length-2,2),r.render(0,!0,!0),oo||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ns(0)):I=Me,ui&&(ui.value?ui.style["overflow"+D.a.toUpperCase()]=ui.value:ui.style.removeProperty("overflow-"+D.a));else if(h&&De()&&!E)for(dt=h.parentNode;dt&&dt!==be;)dt._pinOffset&&(ve-=dt._pinOffset,Le-=dt._pinOffset),dt=dt.parentNode;Pr&&Pr.forEach(function(Ti){return Ti.revert(!1,!0)}),x.start=ve,x.end=Le,st=Je=Et?ee:De(),!E&&!Et&&(st0?ue.slice(0,te).reverse():ue.slice(te+1);return(It(H)?j.filter(function(ie){return ie.vars.preventOverlaps===H}):j).filter(function(ie){return x.direction>0?ie.end<=ve:ie.start>=Le})},x.update=function(H,te,j){if(!(E&&!j&&!H)){var ie=Et===!0?ee:x.scroll(),He=H?0:(ie-ve)/Me,he=He<0?0:He>1?1:He||0,Ye=x.progress,ht,We,Re,Ee,ii,ze,zt,ai;if(te&&(Je=st,st=E?De():ie,w&&(Q=V,V=r&&!oe?r.totalProgress():he)),v&&f&&!_t&&!gn&&ei&&(!he&&veie+(ie-Je)/(gt()-zr)*v&&(he=.9999)),he!==Ye&&x.enabled){if(ht=x.isActive=!!he&&he<1,We=!!Ye&&Ye<1,ze=ht!==We,ii=ze||!!he!=!!Ye,x.direction=he>Ye?1:-1,x.progress=he,ii&&!_t&&(Re=he&&!Ye?0:he===1?1:Ye===1?2:3,oe&&(Ee=!ze&&Z[Re+1]!=="none"&&Z[Re+1]||Z[Re],ai=r&&(Ee==="complete"||Ee==="reset"||Ee in r))),z&&(ze||ai)&&(ai||d||!r)&&(vt(z)?z(x):x.getTrailing(z).forEach(function(Bi){return Bi.endAnimation()})),oe||(W&&!_t&&!gn?(W._dp._time-W._start!==W._time&&W.render(W._dp._time-W._start),W.resetTo?W.resetTo("totalProgress",he,r._tTime/r._tDur):(W.vars.totalProgress=he,W.invalidate().restart())):r&&r.totalProgress(he,!!(_t&&($e||H)))),f){if(H&&_&&(g.style[_+D.os2]=A),!ge)y(Ir(M+I*he));else if(ii){if(zt=!H&&he>Ye&&Le+1>ie&&ie+1>=pi(X,D),P)if(!H&&(ht||zt)){var at=xi(f,!0),lt=ie-ve;Ho(f,be,at.top+(D===Ke?lt:0)+je,at.left+(D===Ke?0:lt)+je)}else Ho(f,g);br(ht||zt?Gt:oi),q&&he<1&&ht||y(M+(he===1&&!zt?I:0))}}w&&!nt.tween&&!_t&&!gn&&U.restart(!0),a&&(ze||k&&he&&(he<1||!ss))&&an(a.targets).forEach(function(Bi){return Bi.classList[ht||k?"add":"remove"](a.className)}),s&&!oe&&!H&&s(x),ii&&!_t?(oe&&(ai&&(Ee==="complete"?r.pause().totalProgress(1):Ee==="reset"?r.restart(!0).pause():Ee==="restart"?r.restart(!0):r[Ee]()),s&&s(x)),(ze||!ss)&&(u&&ze&&ar(x,u),_e[Re]&&ar(x,_e[Re]),k&&(he===1?x.kill(!1,1):_e[Re]=0),ze||(Re=he===1?1:3,_e[Re]&&ar(x,_e[Re]))),N&&!ht&&Math.abs(x.getVelocity())>(Nr(N)?N:2500)&&(Ar(x.callbackAnimation),W?W.progress(1):Ar(r,Ee==="reverse"?1:!he,1))):oe&&s&&!_t&&s(x)}if(R){var dt=E?ie/E.duration()*(E._caScrollDist||0):ie;L(dt+(S._isFlipped?1:0)),R(dt)}se&&se(-ie/E.duration()*(E._caScrollDist||0))}},x.enable=function(H,te){x.enabled||(x.enabled=!0,tt(X,"resize",Hr),re||tt(X,"scroll",ur),Ce&&tt(o,"refreshInit",Ce),H!==!1&&(x.progress=Qe=0,st=Je=Oe=De()),te!==!1&&x.refresh())},x.getTween=function(H){return H&&nt?nt.tween:W},x.setPositions=function(H,te,j,ie){if(E){var He=E.scrollTrigger,he=E.duration(),Ye=He.end-He.start;H=He.start+Ye*H/he,te=He.start+Ye*te/he}x.refresh(!1,!1,{start:Mo(H,j&&!!x._startClamp),end:Mo(te,j&&!!x._endClamp)},ie),x.update()},x.adjustPinSpacing=function(H){if(O&&H){var te=O.indexOf(D.d)+1;O[te]=parseFloat(O[te])+H+je,O[1]=parseFloat(O[1])+H+je,br(O)}},x.disable=function(H,te){if(H!==!1&&x.revert(!0,!0),x.enabled&&(x.enabled=x.isActive=!1,te||W&&W.pause(),ee=0,Ze&&(Ze.uncache=1),Ce&&et(o,"refreshInit",Ce),U&&(U.pause(),nt.tween&&nt.tween.kill()&&(nt.tween=0)),!re)){for(var j=ue.length;j--;)if(ue[j].scroller===X&&ue[j]!==x)return;et(X,"resize",Hr),re||et(X,"scroll",ur)}},x.kill=function(H,te){x.disable(H,te),W&&!te&&W.kill(),l&&delete Rs[l];var j=ue.indexOf(x);j>=0&&ue.splice(j,1),j===Ct&&Rn>0&&Ct--,j=0,ue.forEach(function(ie){return ie.scroller===x.scroller&&(j=1)}),j||Et||(x.scroll.rec=0),r&&(r.scrollTrigger=null,H&&r.revert({kill:!1}),te||r.kill()),ft&&[ft,ot,S,bt].forEach(function(ie){return ie.parentNode&&ie.parentNode.removeChild(ie)}),Qr===x&&(Qr=0),f&&(Ze&&(Ze.uncache=1),j=0,ue.forEach(function(ie){return ie.pin===f&&j++}),j||(Ze.spacer=0)),t.onKill&&t.onKill(x)},ue.push(x),x.enable(!1,!1),fe&&fe(x),r&&r.add&&!Me){var ae=x.update;x.update=function(){x.update=ae,pe.cache++,ve||Le||x.refresh()},$.delayedCall(.01,x.update),Me=.01,ve=Le=0}else x.refresh();f&&Gu()},o.register=function(t){return cr||($=t||tl(),el()&&window.document&&o.enable(),cr=Fr),cr},o.defaults=function(t){if(t)for(var r in t)yn[r]=t[r];return yn},o.disable=function(t,r){Fr=0,ue.forEach(function(s){return s[r?"kill":"disable"](t)}),et(de,"wheel",ur),et(Se,"scroll",ur),clearInterval(_n),et(Se,"touchcancel",fi),et(be,"touchstart",fi),vn(et,Se,"pointerdown,touchstart,mousedown",Ro),vn(et,Se,"pointerup,touchend,mouseup",Ao),Yn.kill(),mn(et);for(var n=0;n0&&s.left+a0&&s.top+a=0&&Ft.splice(i,5),Ft.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),$.core.getCache(e),Os())}}):Ft};ce.revert=function(o,e){return so(!o,e)};ce.create=function(o,e){return new ce(o,e)};ce.refresh=function(o){return o?Hr(!0):(cr||ce.register())&&Gi(!0)};ce.update=function(o){return++pe.cache&&bi(o===!0?2:0)};ce.clearScrollMemory=cl;ce.maxScroll=function(o,e){return pi(o,e?kt:Ke)};ce.getScrollFunc=function(o,e){return Hi(Pt(o),e?kt:Ke)};ce.getById=function(o){return Rs[o]};ce.getAll=function(){return ue.filter(function(o){return o.vars.id!=="ScrollSmoother"})};ce.isScrolling=function(){return!!ei};ce.snapDirectional=no;ce.addEventListener=function(o,e){var i=rr[o]||(rr[o]=[]);~i.indexOf(e)||i.push(e)};ce.removeEventListener=function(o,e){var i=rr[o],t=i&&i.indexOf(e);t>=0&&i.splice(t,1)};ce.batch=function(o,e){var i=[],t={},r=e.interval||.016,n=e.batchMax||1e9,s=function(u,c){var d=[],h=[],f=$.delayedCall(r,function(){c(d,h),d=[],h=[]}).pause();return function(_){d.length||f.restart(!0),d.push(_.trigger),h.push(_),n<=d.length&&f.progress(1)}},a;for(a in e)t[a]=a.substr(0,2)==="on"&&vt(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return vt(n)&&(n=n(),tt(ce,"refresh",function(){return n=e.batchMax()})),an(o).forEach(function(l){var u={};for(a in t)u[a]=t[a];u.trigger=l,i.push(ce.create(u))}),i};var Bo=function(e,i,t,r){return i>r?e(r):i<0&&e(0),t>r?(r-i)/(t-i):t<0?i/(i-t):1},us=function o(e,i){i===!0?e.style.removeProperty("touch-action"):e.style.touchAction=i===!0?"auto":i?"pan-"+i+(Ve.isTouch?" pinch-zoom":""):"none",e===Ht&&o(be,i)},Tn={auto:1,scroll:1},Ju=function(e){var i=e.event,t=e.target,r=e.axis,n=(i.changedTouches?i.changedTouches[0]:i).target,s=n._gsap||$.core.getCache(n),a=gt(),l;if(!s._isScrollT||a-s._isScrollT>2e3){for(;n&&n!==be&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Tn[(l=Qt(n)).overflowY]||Tn[l.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!ir(n)&&(Tn[(l=Qt(n)).overflowY]||Tn[l.overflowX]),s._isScrollT=a}(s._isScroll||r==="x")&&(i.stopPropagation(),i._gsapAllow=!0)},dl=function(e,i,t,r){return Ve.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:i,onWheel:r=r&&Ju,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return t&&tt(Se,Ve.eventTypes[0],Xo,!1,!0)},onDisable:function(){return et(Se,Ve.eventTypes[0],Xo,!0)}})},ec=/(input|label|select|textarea)/i,Yo,Xo=function(e){var i=ec.test(e.target.tagName);(i||Yo)&&(e._gsapAllow=!0,Yo=i)},tc=function(e){qi(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var i=e,t=i.normalizeScrollX,r=i.momentum,n=i.allowNestedScroll,s=i.onRelease,a,l,u=Pt(e.target)||Ht,c=$.core.globals().ScrollSmoother,d=c&&c.get(),h=Ei&&(e.content&&Pt(e.content)||d&&e.content!==!1&&!d.smooth()&&d.content()),f=Hi(u,Ke),_=Hi(u,kt),p=1,v=(Ve.isTouch&&de.visualViewport?de.visualViewport.scale*de.visualViewport.width:de.outerWidth)/de.innerWidth,C=0,b=vt(r)?function(){return r(a)}:function(){return r||2.8},k,w,P=dl(u,e.type,!0,n),F=function(){return w=!1},E=fi,N=fi,z=function(){l=pi(u,Ke),N=Ur(Ei?1:0,l),t&&(E=Ur(0,pi(u,kt))),k=tr},D=function(){h._gsap.y=Ir(parseFloat(h._gsap.y)+f.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",f.offset=f.cacheID=0},oe=function(){if(w){requestAnimationFrame(F);var me=Ir(a.deltaY/2),we=N(f.v-me);if(h&&we!==f.v+f.offset){f.offset=we-f.v;var x=Ir((parseFloat(h&&h._gsap.y)||0)-f.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+x+", 0, 1)",h._gsap.y=x+"px",f.cacheID=pe.cache,bi()}return!0}f.offset&&D(),w=!0},X,le,re,ge,_e=function(){z(),X.isActive()&&X.vars.scrollY>l&&(f()>l?X.progress(1)&&f(l):X.resetTo("scrollY",l))};return h&&$.set(h,{y:"+=0"}),e.ignoreCheck=function(Z){return Ei&&Z.type==="touchmove"&&oe()||p>1.05&&Z.type!=="touchstart"||a.isGesturing||Z.touches&&Z.touches.length>1},e.onPress=function(){w=!1;var Z=p;p=Ir((de.visualViewport&&de.visualViewport.scale||1)/v),X.pause(),Z!==p&&us(u,p>1.01?!0:t?!1:"x"),le=_(),re=f(),z(),k=tr},e.onRelease=e.onGestureStart=function(Z,me){if(f.offset&&D(),!me)ge.restart(!0);else{pe.cache++;var we=b(),x,Ce;t&&(x=_(),Ce=x+we*.05*-Z.velocityX/.227,we*=Bo(_,x,Ce,pi(u,kt)),X.vars.scrollX=E(Ce)),x=f(),Ce=x+we*.05*-Z.velocityY/.227,we*=Bo(f,x,Ce,pi(u,Ke)),X.vars.scrollY=N(Ce),X.invalidate().duration(we).play(.01),(Ei&&X.vars.scrollY>=l||x>=l-1)&&$.to({},{onUpdate:_e,duration:we})}s&&s(Z)},e.onWheel=function(){X._ts&&X.pause(),gt()-C>1e3&&(k=0,C=gt())},e.onChange=function(Z,me,we,x,Ce){if(tr!==k&&z(),me&&t&&_(E(x[2]===me?le+(Z.startX-Z.x):_()+me-x[1])),we){f.offset&&D();var rt=Ce[2]===we,yt=rt?re+Z.startY-Z.y:f()+we-Ce[1],Oe=N(yt);rt&&yt!==Oe&&(re+=Oe-yt),f(Oe)}(we||me)&&bi()},e.onEnable=function(){us(u,t?!1:"x"),ce.addEventListener("refresh",_e),tt(de,"resize",_e),f.smooth&&(f.target.style.scrollBehavior="auto",f.smooth=_.smooth=!1),P.enable()},e.onDisable=function(){us(u,!0),et(de,"resize",_e),ce.removeEventListener("refresh",_e),P.kill()},e.lockAxis=e.lockAxis!==!1,a=new Ve(e),a.iOS=Ei,Ei&&!f()&&f(1),Ei&&$.ticker.add(fi),ge=a._dc,X=$.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:hl(f,f(),function(){return X.pause()})},onUpdate:bi,onComplete:ge.vars.onComplete}),a};ce.sort=function(o){if(vt(o))return ue.sort(o);var e=de.pageYOffset||0;return ce.getAll().forEach(function(i){return i._sortY=i.trigger?e+i.trigger.getBoundingClientRect().top:i.start+de.innerHeight}),ue.sort(o||function(i,t){return(i.vars.refreshPriority||0)*-1e6+(i.vars.containerAnimation?1e6:i._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};ce.observe=function(o){return new Ve(o)};ce.normalizeScroll=function(o){if(typeof o>"u")return Tt;if(o===!0&&Tt)return Tt.enable();if(o===!1){Tt&&Tt.kill(),Tt=o;return}var e=o instanceof Ve?o:tc(o);return Tt&&Tt.target===e.target&&Tt.kill(),ir(e.target)&&(Tt=e),e};ce.core={_getVelocityProp:Es,_inputObserver:dl,_scrollers:pe,_proxies:_i,bridge:{ss:function(){ei||nr("scrollStart"),ei=gt()},ref:function(){return _t}}};tl()&&$.registerPlugin(ce);var Vo="1.3.26";function pl(o,e,i){return Math.max(o,Math.min(e,i))}function ic(o,e,i){return(1-i)*o+i*e}function rc(o,e,i,t){return ic(o,e,1-Math.exp(-i*t))}function nc(o,e){return(o%e+e)%e}var sc=class{constructor(){G(this,"isRunning",!1);G(this,"value",0);G(this,"from",0);G(this,"to",0);G(this,"currentTime",0);G(this,"lerp");G(this,"duration");G(this,"easing");G(this,"onUpdate")}advance(o){var i;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=o;const t=pl(0,this.currentTime/this.duration,1);e=t>=1;const r=e?1:this.easing(t);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=rc(this.value,this.to,this.lerp*60,o),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(i=this.onUpdate)==null||i.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(o,e,{lerp:i,duration:t,easing:r,onStart:n,onUpdate:s}){this.from=this.value=o,this.to=e,this.lerp=i,this.duration=t,this.easing=r,this.currentTime=0,this.isRunning=!0,n==null||n(),this.onUpdate=s}};function oc(o,e){let i;return function(...t){clearTimeout(i),i=setTimeout(()=>{i=void 0,o.apply(this,t)},e)}}var ac=class{constructor(o,e,{autoResize:i=!0,debounce:t=250}={}){G(this,"width",0);G(this,"height",0);G(this,"scrollHeight",0);G(this,"scrollWidth",0);G(this,"debouncedResize");G(this,"wrapperResizeObserver");G(this,"contentResizeObserver");G(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});G(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});G(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=o,this.content=e,i&&(this.debouncedResize=oc(this.resize,t),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var o,e;(o=this.wrapperResizeObserver)==null||o.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},_l=class{constructor(){G(this,"events",{})}emit(o,...e){var t;const i=this.events[o]||[];for(let r=0,n=i.length;r{var i;this.events[o]=(i=this.events[o])==null?void 0:i.filter(t=>e!==t)}}off(o,e){var i;this.events[o]=(i=this.events[o])==null?void 0:i.filter(t=>e!==t)}destroy(){this.events={}}};const lc=100/6,Ci={passive:!1};function Uo(o,e){return o===1?lc:o===2?e:1}var uc=class{constructor(o,e={wheelMultiplier:1,touchMultiplier:1}){G(this,"touchStart",{x:0,y:0});G(this,"lastDelta",{x:0,y:0});G(this,"window",{width:0,height:0});G(this,"emitter",new _l);G(this,"onTouchStart",o=>{const{clientX:e,clientY:i}=o.targetTouches?o.targetTouches[0]:o;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:o})});G(this,"onTouchMove",o=>{const{clientX:e,clientY:i}=o.targetTouches?o.targetTouches[0]:o,t=-(e-this.touchStart.x)*this.options.touchMultiplier,r=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:t,y:r},this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:o})});G(this,"onTouchEnd",o=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:o})});G(this,"onWheel",o=>{let{deltaX:e,deltaY:i,deltaMode:t}=o;const r=Uo(t,this.window.width),n=Uo(t,this.window.height);e*=r,i*=n,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:o})});G(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=o,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Ci),this.element.addEventListener("touchstart",this.onTouchStart,Ci),this.element.addEventListener("touchmove",this.onTouchMove,Ci),this.element.addEventListener("touchend",this.onTouchEnd,Ci)}on(o,e){return this.emitter.on(o,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,Ci),this.element.removeEventListener("touchstart",this.onTouchStart,Ci),this.element.removeEventListener("touchmove",this.onTouchMove,Ci),this.element.removeEventListener("touchend",this.onTouchEnd,Ci)}};const qo=o=>Math.min(1,1.001-2**(-10*o));var cc=class{constructor({wrapper:o=window,content:e=document.documentElement,eventsTarget:i=o,smoothWheel:t=!0,syncTouch:r=!1,syncTouchLerp:n=.075,touchInertiaExponent:s=1.7,duration:a,easing:l,lerp:u=.1,infinite:c=!1,orientation:d="vertical",gestureOrientation:h=d==="horizontal"?"both":"vertical",touchMultiplier:f=1,wheelMultiplier:_=1,autoResize:p=!0,prevent:v,virtualScroll:C,overscroll:b=!0,autoRaf:k=!1,anchors:w=!1,autoToggle:P=!1,allowNestedScroll:F=!1,__experimental__naiveDimensions:E=!1,naiveDimensions:N=E,stopInertiaOnNavigate:z=!1,respectReducedMotion:D=!0}={}){G(this,"_isScrolling",!1);G(this,"_isStopped",!1);G(this,"_isLocked",!1);G(this,"_preventNextNativeScrollEvent",!1);G(this,"_resetVelocityTimeout",null);G(this,"_rafId",null);G(this,"_isDraggingSelection",!1);G(this,"reducedMotionMediaQuery",window.matchMedia("(prefers-reduced-motion: reduce)"));G(this,"isTouching");G(this,"isIos");G(this,"time",0);G(this,"userData",{});G(this,"lastVelocity",0);G(this,"velocity",0);G(this,"direction",0);G(this,"options");G(this,"targetScroll");G(this,"animatedScroll");G(this,"animate",new sc);G(this,"emitter",new _l);G(this,"dimensions");G(this,"virtualScroll");G(this,"onScrollEnd",o=>{o instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&o.stopPropagation()});G(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});G(this,"onTransitionEnd",o=>{var e;(e=o.propertyName)!=null&&e.includes("overflow")&&o.target===this.rootElement&&this.checkOverflow()});G(this,"onClick",o=>{const e=o.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),i=new URL(window.location.href);if(this.options.anchors){const t=e.find(r=>i.host===r.host&&i.pathname===r.pathname&&r.hash);if(t){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(t.hash);this.scrollTo(n,r);return}}if(this.options.stopInertiaOnNavigate&&e.some(t=>i.host===t.host&&i.pathname!==t.pathname)){this.reset();return}});G(this,"onPointerDown",o=>{o.button===1&&this.reset()});G(this,"onVirtualScroll",o=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(o)===!1)return;const{deltaX:e,deltaY:i,event:t}=o;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:t}),t.ctrlKey||t.lenisStopPropagation)return;const r=t.type.includes("touch"),n=t.type.includes("wheel");if(r&&this.isIos&&(t.type==="touchstart"&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(t)),this._isDraggingSelection)){t.type==="touchend"&&(this._isDraggingSelection=!1);return}this.isTouching=t.type==="touchstart"||t.type==="touchmove";const s=e===0&&i===0;if(this.options.syncTouch&&r&&t.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}const a=this.options.gestureOrientation==="vertical"&&i===0||this.options.gestureOrientation==="horizontal"&&e===0;if(s||a)return;let l=t.composedPath();l=l.slice(0,l.indexOf(this.rootElement));const u=this.options.prevent,c=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if(l.find(_=>{var p,v,C,b,k;return _ instanceof HTMLElement&&(typeof u=="function"&&(u==null?void 0:u(_))||((p=_.hasAttribute)==null?void 0:p.call(_,"data-lenis-prevent"))||c==="vertical"&&((v=_.hasAttribute)==null?void 0:v.call(_,"data-lenis-prevent-vertical"))||c==="horizontal"&&((C=_.hasAttribute)==null?void 0:C.call(_,"data-lenis-prevent-horizontal"))||r&&((b=_.hasAttribute)==null?void 0:b.call(_,"data-lenis-prevent-touch"))||n&&((k=_.hasAttribute)==null?void 0:k.call(_,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.hasNestedScroll(_,{deltaX:e,deltaY:i}))}))return;if(this.isStopped||this.isLocked){t.cancelable&&t.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&n)){this.isScrolling="native",this.animate.stop(),t.lenisStopPropagation=!0;return}let d=i;this.options.gestureOrientation==="both"?d=Math.abs(i)>Math.abs(e)?i:e:this.options.gestureOrientation==="horizontal"&&(d=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&i<0))&&(t.lenisStopPropagation=!0),t.cancelable&&t.preventDefault();const h=r&&this.options.syncTouch,f=r&&t.type==="touchend";f&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...h?{lerp:f?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});G(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const o=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-o,this.direction=Math.sign(this.animatedScroll-o),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});G(this,"raf",o=>{const e=o-(this.time||o);this.time=o,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=Vo,window.lenis||(window.lenis={}),window.lenis.version=Vo,d==="horizontal"&&(window.lenis.horizontal=!0),r===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!o||o===document.documentElement)&&(o=window),typeof a=="number"&&typeof l!="function"?l=qo:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:o,content:e,eventsTarget:i,smoothWheel:t,syncTouch:r,syncTouchLerp:n,touchInertiaExponent:s,duration:a,easing:l,lerp:u,infinite:c,gestureOrientation:h,orientation:d,touchMultiplier:f,wheelMultiplier:_,autoResize:p,prevent:v,virtualScroll:C,overscroll:b,autoRaf:k,anchors:w,autoToggle:P,allowNestedScroll:F,naiveDimensions:N,stopInertiaOnNavigate:z,respectReducedMotion:D},this.dimensions=new ac(o,e,{autoResize:p}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new uc(i,{touchMultiplier:f,wheelMultiplier:_}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(o,e){return this.emitter.on(o,e)}off(o,e){return this.emitter.off(o,e)}get overflow(){const o=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[o]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(o){this.isHorizontal?this.options.wrapper.scrollTo({left:o,behavior:"instant"}):this.options.wrapper.scrollTo({top:o,behavior:"instant"})}isTouchOnSelectionHandle(o){const e=window.getSelection();if(!e||e.isCollapsed||e.rangeCount===0)return!1;const i=o.targetTouches[0]??o.changedTouches[0];if(!i)return!1;const t=e.getRangeAt(0).getClientRects();if(t.length===0)return!1;const r=t[0],n=t[t.length-1],s=40,a=Math.hypot(i.clientX-r.left,i.clientY-r.top)<=s,l=Math.hypot(i.clientX-n.right,i.clientY-n.bottom)<=s;return a||l}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(o,{offset:e=0,immediate:i=!1,lock:t=!1,programmatic:r=!0,lerp:n=r?this.options.lerp:void 0,duration:s=r?this.options.duration:void 0,easing:a=r?this.options.easing:void 0,onStart:l,onComplete:u,force:c=!1,userData:d}={}){if(this.prefersReducedMotion&&(r?i=!0:(n=1,s=void 0,a=void 0)),(this.isStopped||this.isLocked)&&!c)return;let h=o,f=e;if(typeof h=="string"&&["top","left","start","#"].includes(h))h=0;else if(typeof h=="string"&&["bottom","right","end"].includes(h))h=this.limit;else{let _=null;if(typeof h=="string"?(_=h.startsWith("#")?document.getElementById(h.slice(1)):document.querySelector(h),_||(h==="#top"?h=0:console.warn("Lenis: Target not found",h))):h instanceof HTMLElement&&(h!=null&&h.nodeType)&&(_=h),_){if(this.options.wrapper!==window){const w=this.rootElement.getBoundingClientRect();f-=this.isHorizontal?w.left:w.top}const p=_.getBoundingClientRect(),v=getComputedStyle(_),C=this.isHorizontal?Number.parseFloat(v.scrollMarginLeft):Number.parseFloat(v.scrollMarginTop),b=getComputedStyle(this.rootElement),k=this.isHorizontal?Number.parseFloat(b.scrollPaddingLeft):Number.parseFloat(b.scrollPaddingTop);h=(this.isHorizontal?p.left:p.top)+this.animatedScroll-(Number.isNaN(C)?0:C)-(Number.isNaN(k)?0:k)}}if(typeof h=="number"){if(h+=f,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;const _=h-this.animatedScroll;_>this.limit/2?h-=this.limit:_<-this.limit/2&&(h+=this.limit)}}else h=pl(0,h,this.limit);if(h===this.targetScroll){l==null||l(this),u==null||u(this);return}if(this.userData=d??{},i){this.animatedScroll=this.targetScroll=h,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=h),typeof s=="number"&&typeof a!="function"?a=qo:typeof a=="function"&&typeof s!="number"&&(s=1),this.animate.fromTo(this.animatedScroll,h,{duration:s,easing:a,lerp:n,onStart:()=>{t&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(_,p)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=_-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=_,this.setScroll(this.scroll),r&&(this.targetScroll=_),p||this.emit(),p&&(this.reset(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(o,{deltaX:e,deltaY:i}){const t=Date.now();o._lenis||(o._lenis={});const r=o._lenis;let n,s,a,l,u,c,d,h,f,_;if(t-(r.time??0)>2e3){r.time=Date.now();const F=window.getComputedStyle(o);if(r.computedStyle=F,n=["auto","overlay","scroll"].includes(F.overflowX),s=["auto","overlay","scroll"].includes(F.overflowY),u=["auto"].includes(F.overscrollBehaviorX),c=["auto"].includes(F.overscrollBehaviorY),r.hasOverflowX=n,r.hasOverflowY=s,!(n||s))return!1;d=o.scrollWidth,h=o.scrollHeight,f=o.clientWidth,_=o.clientHeight,a=d>f,l=h>_,r.isScrollableX=a,r.isScrollableY=l,r.scrollWidth=d,r.scrollHeight=h,r.clientWidth=f,r.clientHeight=_,r.hasOverscrollBehaviorX=u,r.hasOverscrollBehaviorY=c}else a=r.isScrollableX,l=r.isScrollableY,n=r.hasOverflowX,s=r.hasOverflowY,d=r.scrollWidth,h=r.scrollHeight,f=r.clientWidth,_=r.clientHeight,u=r.hasOverscrollBehaviorX,c=r.hasOverscrollBehaviorY;if(!(n&&a||s&&l))return!1;const p=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";let v,C,b,k,w,P;if(p==="horizontal")v=Math.round(o.scrollLeft),C=d-f,b=e,k=n,w=a,P=u;else if(p==="vertical")v=Math.round(o.scrollTop),C=h-_,b=i,k=s,w=l,P=c;else return!1;return!P&&(v>=C||v<=0)?!0:(b>0?v0)&&k&&w}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const o=this.options.wrapper;return this.isHorizontal?o.scrollX??o.scrollLeft:o.scrollY??o.scrollTop}get scroll(){return this.options.infinite?nc(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(o){this._isScrolling!==o&&(this._isScrolling=o,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(o){this._isStopped!==o&&(this._isStopped=o,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(o){this._isLocked!==o&&(this._isLocked=o,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let o="lenis";return this.options.autoToggle&&(o+=" lenis-autoToggle"),this.isStopped&&(o+=" lenis-stopped"),this.isLocked&&(o+=" lenis-locked"),this.isScrolling&&(o+=" lenis-scrolling"),this.isScrolling==="smooth"&&(o+=" lenis-smooth"),o}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(o=>{this.rootElement.classList.add(o)})}cleanUpClassName(){for(const o of Array.from(this.rootElement.classList))(o==="lenis"||o.startsWith("lenis-"))&&this.rootElement.classList.remove(o)}},fc={exports:{}};(function(o,e){(function(i,t){o.exports=t()})(window,function(){return function(i){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return i[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=i,r.c=t,r.d=function(n,s,a){r.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:a})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,s){if(1&s&&(n=r(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var l in n)r.d(a,l,(function(u){return n[u]}).bind(null,l));return a},r.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(s,"a",s),s},r.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},r.p="",r(r.s=0)}([function(i,t,r){r.r(t);var n,s="fslightbox-",a="".concat(s,"styles"),l="".concat(s,"cursor-grabbing"),u="".concat(s,"full-dimension"),c="".concat(s,"flex-centered"),d="".concat(s,"open"),h="".concat(s,"transform-transition"),f="".concat(s,"absoluted"),_="".concat(s,"slide-btn"),p="".concat(_,"-container"),v="".concat(s,"fade-in"),C="".concat(s,"fade-out"),b=v+"-strong",k=C+"-strong",w="".concat(s,"opacity-"),P="".concat(w,"1"),F="".concat(s,"source");function E(g){return(E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(g)}function N(g){var m=g.stageIndexes,T=g.core.stageManager,y=g.props.sources.length-1;T.getPreviousSlideIndex=function(){return m.current===0?y:m.current-1},T.getNextSlideIndex=function(){return m.current===y?0:m.current+1},T.updateStageIndexes=y===0?function(){}:y===1?function(){m.current===0?(m.next=1,delete m.previous):(m.previous=0,delete m.next)}:function(){m.previous=T.getPreviousSlideIndex(),m.next=T.getNextSlideIndex()},T.i=y<=2?function(){return!0}:function(M){var I=m.current;if(I===0&&M===y||I===y&&M===0)return!0;var A=I-M;return A===-1||A===0||A===1}}(typeof window>"u"?"undefined":E(window))==="object"&&((n=document.createElement("style")).className=a,n.appendChild(document.createTextNode(".fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container::backdrop{display:none}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;padding:0;border:0;max-width:none;max-height:none;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;overflow:hidden;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg{width:20px;height:20px}.fslightbox-svgp{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightboxsn{z-index:0;display:flex;align-items:center;margin:14px 0 0 11px;font-size:15px;color:#d7d7d7}.fslightboxsn span{display:inline;vertical-align:middle}.fslightboxsl{display:inline-block!important;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:white}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex}.fslightbox-toolbar-button{width:45px;height:100%}.fslightbox-fsx{width:24px;height:24px}.fslightboxb{border:0;background:rgba(35,35,35,.65);cursor:pointer}.fslightboxb:focus{outline:0}.fslightboxb:focus .fslightbox-svgp{fill:#fff}.fslightboxb:hover .fslightbox-svgp{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}.fslightbox-slide-btn-container-next{padding-right:6px!important;padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}.fslightbox-slide-btn-container-next{padding-left:30px}.fslightbox-slide-btn{padding:10px}}.fslightbox-slide-btn-container:hover .fslightbox-svgp{fill:#fff}.fslightbox-slide-btn{padding:9px}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightboxv{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}@media (min-width:1200px){.fslightboxsn{margin:15px 0 0 12px;font-size:16px;display:block}.fslightboxsl{margin:0 6px 1px 6px;height:14px}.fslightbox-slide-btn{padding:11px}.fslightbox-svg{width:22px;height:22px}.fslightbox-fsx{width:26px;height:26px}.fslightbox-fso{width:22px;height:22px}.fslightboxl div{width:60px;height:60px;border-width:6px;border-color:#999 transparent transparent transparent;border-radius:50%}}@media (min-width:1600px){.fslightbox-nav{height:50px}.fslightboxsn{display:flex;margin:19px 0 0 16px;font-size:20px}.fslightboxsl{margin:0 7px 1px 7px;height:16px;width:2px;background:#d7d7d7}.fslightbox-toolbar-button{width:50px}.fslightbox-slide-btn{padding:12px}.fslightbox-svg{width:24px;height:24px}.fslightbox-fsx{width:28px;height:28px}.fslightbox-fso{width:24px;height:24px}}")),document.head.appendChild(n));function z(g){var m,T=g.props,y=0,M={};this.getSourceTypeFromLocalStorageByUrl=function(A){return m[A]?m[A]:I(A)},this.handleReceivedSourceTypeForUrl=function(A,O){if(M[O]===!1&&(y--,A!=="invalid"?M[O]=A:delete M[O],y===0)){(function(L,q){for(var R in q)L[R]=q[R]})(m,M);try{localStorage.setItem("fslightbox-types",JSON.stringify(m))}catch{}}};var I=function(A){y++,M[A]=!1};if(T.disableLocalStorage)this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){};else{try{m=JSON.parse(localStorage.getItem("fslightbox-types"))}catch{}m||(m={},this.getSourceTypeFromLocalStorageByUrl=I)}}function D(g,m,T,y){g.data;var M=g.elements.sources,I=T/y,A=0;this.adjustSize=function(){if((A=g.mw/I)g.mh?g.mh:y,O()};var O=function(){M[m].style.width=A*I+"px",M[m].style.height=A+"px"}}function oe(g,m){var T=this,y=g.collections.sourceSizers,M=g.elements,I=M.sourceAnimationWrappers,A=M.sources,O=g.isl,L=g.props.onSourceLoad,q=g.resolve;function R(Y,V){y[m]=q(D,[m,Y,V]),y[m].adjustSize()}this.b=function(Y,V){A[m].classList.add(P),T.a(),R(Y,V),T.b=R},this.a=function(){O[m]=!0,I[m].classList.add(b),I[m].removeChild(I[m].firstChild),L&&L(g,A[m],m)}}function X(g,m){var T,y=this,M=g.elements.sources,I=g.props,A=(0,g.resolve)(oe,[m]);this.handleImageLoad=function(O){var L=O.target,q=L.naturalWidth,R=L.naturalHeight;A.b(q,R)},this.handleVideoLoad=function(O){var L=O.target,q=L.videoWidth,R=L.videoHeight;T=!0,A.b(q,R)},this.handleNotMetaDatedVideoLoad=function(){T||y.handleYoutubeLoad()},this.handleYoutubeLoad=function(O,L){O||(O=1920,L=1080),I.maxYoutubeDimensions&&(O=I.maxYoutubeDimensions.width,L=I.maxYoutubeDimensions.height),A.b(O,L)},this.handleCustomLoad=function(){var O=M[m],L=O.offsetWidth,q=O.offsetHeight;L&&q?A.b(L,q):setTimeout(y.handleCustomLoad)}}function le(g,m,T){var y=g.elements.sources,M=g.props.customClasses,I=M[m]?M[m]:"";y[m].className=T+" "+I}function re(g,m){var T=g.elements.sources,y=g.props.customAttributes;for(var M in y[m])T[m].setAttribute(M,y[m][M])}function ge(g,m){var T=g.collections.sourceLoadHandlers,y=g.elements,M=y.sources,I=y.sourceAnimationWrappers,A=g.props.sources;M[m]=document.createElement("img"),le(g,m,F),M[m].src=A[m],M[m].onload=T[m].handleImageLoad,re(g,m),I[m].appendChild(M[m])}function _e(g,m){var T=g.ap,y=g.collections.sourceLoadHandlers,M=g.elements,I=M.sources,A=M.sourceAnimationWrappers,O=g.props,L=O.sources,q=O.videosPosters,R=document.createElement("video"),Y=document.createElement("source");I[m]=R,le(g,m,"".concat(F," fslightboxv")),R.src=L[m],R.onloadedmetadata=function(V){return y[m].handleVideoLoad(V)},R.controls=!0,R.autoplay=T.i(m),re(g,m),q[m]&&(I[m].poster=q[m]),Y.src=L[m],R.appendChild(Y),setTimeout(y[m].handleNotMetaDatedVideoLoad,3e3),A[m].appendChild(I[m])}function Z(g,m){var T=g.ap,y=g.collections.sourceLoadHandlers,M=g.elements,I=M.sources,A=M.sourceAnimationWrappers,O=g.props.sources[m],L=O.split("?")[1],q=document.createElement("iframe");I[m]=q,le(g,m,"".concat(F," ").concat(s,"youtube-iframe")),q.src="https://www.youtube.com/embed/".concat(O.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2],"?").concat(L||"").concat(T.i(m)?"&mute=1&autoplay=1":"","&enablejsapi=1"),q.allowFullscreen=!0,re(g,m),A[m].appendChild(q),y[m].handleYoutubeLoad(parseInt(q.width),parseInt(q.height))}function me(g,m){var T=g.collections.sourceLoadHandlers,y=g.elements,M=y.sources,I=y.sourceAnimationWrappers,A=g.props.sources;M[m]=A[m],le(g,m,"".concat(M[m].className," ").concat(F)),I[m].appendChild(M[m]),T[m].handleCustomLoad()}function we(g,m){var T=g.elements,y=T.sources,M=T.sourceAnimationWrappers;g.props.sources,y[m]=document.createElement("div"),y[m].className="".concat(s,"invalid-file-wrapper ").concat(c),y[m].innerHTML="Invalid source",M[m].appendChild(y[m]),new oe(g,m).a()}function x(g){var m=g.collections,T=m.sourceLoadHandlers,y=m.sourcesRenderFunctions,M=g.core.sourceDisplayFacade,I=g.resolve;this.runActionsForSourceTypeAndIndex=function(A,O){var L;switch(A!=="invalid"&&(T[O]=I(X,[O])),A){case"image":L=ge;break;case"video":L=_e;break;case"youtube":L=Z;break;case"custom":L=me;break;default:L=we}y[O]=function(){return L(g,O)},M.displaySourcesWhichShouldBeDisplayed()}}function Ce(g,m,T){var y=g.props,M=y.types,I=y.type,A=y.sources;this.getTypeSetByClientForIndex=function(O){var L;return M&&M[O]?L=M[O]:I&&(L=I),L},this.retrieveTypeWithXhrForIndex=function(O){(function(L,q){var R=document.createElement("a");R.href=L;var Y=R.hostname;if(Y==="www.youtube.com"||Y==="youtu.be")return q("youtube");var V=new XMLHttpRequest;V.onreadystatechange=function(){if(V.readyState!==4){if(V.readyState===2){var Q,W=V.getResponseHeader("content-type");switch(W.slice(0,W.indexOf("/"))){case"image":Q="image";break;case"video":Q="video";break;default:Q="invalid"}V.onreadystatechange=null,V.abort(),q(Q)}}else q("invalid")},V.open("GET",L),V.send()})(A[O],function(L){m.handleReceivedSourceTypeForUrl(L,A[O]),T.runActionsForSourceTypeAndIndex(L,O)})}}function rt(g,m){var T=g.core.stageManager,y=g.elements,M=y.smw,I=y.sourceWrappersContainer,A=g.props,O=0,L=document.createElement("div");function q(Y){L.style.transform="translateX(".concat(Y+O,"px)"),O=0}function R(){return(1+A.slideDistance)*innerWidth}L.className="".concat(f," ").concat(u," ").concat(c),L.s=function(){L.style.display="flex"},L.h=function(){L.style.display="none"},L.a=function(){L.classList.add(h)},L.d=function(){L.classList.remove(h)},L.n=function(){L.style.removeProperty("transform")},L.v=function(Y){return O=Y,L},L.ne=function(){q(-R())},L.z=function(){q(0)},L.p=function(){q(R())},T.i(m)||L.h(),M[m]=L,I.appendChild(L),function(Y,V){var Q=Y.elements,W=Q.smw,ne=Q.sourceAnimationWrappers,J=document.createElement("div"),U=document.createElement("div");U.className="fslightboxl";for(var ee=0;ee<3;ee++){var ye=document.createElement("div");U.appendChild(ye)}J.appendChild(U),W[V].appendChild(J),ne[V]=J}(g,m)}function yt(g,m,T){var y=document.createElementNS("http://www.w3.org/2000/svg","svg"),M="".concat(s,"svg");y.setAttributeNS(null,"class","".concat(M)),y.setAttributeNS(null,"viewBox",m);var I=document.createElementNS("http://www.w3.org/2000/svg","path");return I.setAttributeNS(null,"class","".concat(M,"p")),I.setAttributeNS(null,"d",T),y.appendChild(I),g.appendChild(y),y}function Oe(g,m){var T=document.createElement("button");return T.className="fslightboxb ".concat(s,"toolbar-button ").concat(c),T.title=m,g.appendChild(T),T}function $e(g,m){var T=document.createElement("div");T.className="".concat(s,"toolbar"),m.appendChild(T),function(y,M){if(!y.hfs){var I="M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",A=Oe(M);A.title="Enter fullscreen";var O=yt(A,"0 0 18 18",I);y.fso=function(){y.ifs=1,A.title="Exit fullscreen",O.classList.add("".concat(s,"fsx")),O.setAttributeNS(null,"viewBox","0 0 950 1024"),O.firstChild.setAttributeNS(null,"d","M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z")},y.fsx=function(){y.ifs=0,A.title="Enter fullscreen",O.classList.remove("".concat(s,"fsx")),O.setAttributeNS(null,"viewBox","0 0 18 18"),O.firstChild.setAttributeNS(null,"d",I)},A.onclick=y.fs.t}}(g,T),function(y,M){var I=Oe(M,"Close");I.onclick=y.core.lightboxCloser.closeLightbox,yt(I,"0 0 24 24","M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z")}(g,T)}function Qe(g){var m=g.props.sources,T=g.elements.container,y=document.createElement("div");y.className="".concat(s,"nav"),T.appendChild(y),$e(g,y),m.length>1&&function(M,I){var A=M.props.sources,O=(M.stageIndexes,document.createElement("div")),L=document.createElement("span"),q=document.createElement("span"),R=document.createElement("span");O.className="fslightboxsn",M.sn=function(Y){return L.innerHTML=Y},q.className="fslightboxsl",R.innerHTML=A.length,O.appendChild(L),O.appendChild(q),O.appendChild(R),I.appendChild(O)}(g,y)}function De(g,m,T,y){var M=g.elements.container,I=T.charAt(0).toUpperCase()+T.slice(1),A=document.createElement("div");A.className="".concat(p," ").concat(p,"-").concat(T),A.title="".concat(I," slide"),A.onclick=m,function(O,L){var q=document.createElement("button");q.className="fslightboxb ".concat(_," ").concat(c),yt(q,"0 0 20 20",L),O.appendChild(q)}(A,y),M.appendChild(A)}function nt(g){var m=g.core,T=m.lightboxCloser,y=m.slideChangeFacade,M=g.fs;this.listener=function(I){switch(I.key){case"Escape":T.closeLightbox();break;case"ArrowLeft":y.changeToPrevious();break;case"ArrowRight":y.changeToNext();break;case"F11":I.preventDefault(),M.t()}}}function Ze(g){var m=g.elements,T=g.sourcePointerProps,y=g.stageIndexes;function M(I,A){m.smw[I].v(T.swipedX)[A]()}this.runActionsForEvent=function(I){var A,O,L;m.container.contains(m.slideSwipingHoverer)||m.container.appendChild(m.slideSwipingHoverer),A=m.container,O=l,(L=A.classList).contains(O)||L.add(O),T.swipedX=I.screenX-T.downScreenX;var q=y.previous,R=y.next;M(y.current,"z"),q!==void 0&&T.swipedX>0?M(q,"ne"):R!==void 0&&T.swipedX<0&&M(R,"p")}}function ni(g){var m=g.dss,T=g.props.sources,y=g.resolve,M=g.sourcePointerProps,I=y(Ze);T.length===1||m?this.listener=function(){M.swipedX=1}:this.listener=function(A){M.isPointering&&I.runActionsForEvent(A)}}function st(g){var m=g.core.slideIndexChanger,T=g.elements.smw,y=g.stageIndexes,M=g.sws;function I(O){var L=T[y.current];L.a(),L[O]()}function A(O,L){O!==void 0&&(T[O].s(),T[O][L]())}this.runPositiveSwipedXActions=function(){var O=y.previous;if(O===void 0)I("z");else{I("p");var L=y.next;m.changeTo(O);var q=y.previous;M.d(q),M.b(L),I("z"),A(q,"ne")}},this.runNegativeSwipedXActions=function(){var O=y.next;if(O===void 0)I("z");else{I("ne");var L=y.previous;m.changeTo(O);var q=y.next;M.d(q),M.b(L),I("z"),A(q,"p")}}}function Je(g,m){g.contains(m)&&g.removeChild(m)}function ve(g){var m=g.core.lightboxCloser,T=g.dss,y=g.elements,M=g.props,I=g.resolve,A=g.sourcePointerProps,O=I(st);this.runNoSwipeActions=function(){Je(y.container,y.slideSwipingHoverer),A.isSourceDownEventTarget||M.disableBackgroundClose||m.closeLightbox(),A.isPointering=!1},this.runActions=function(){T||(A.swipedX>0?O.runPositiveSwipedXActions():O.runNegativeSwipedXActions()),Je(y.container,y.slideSwipingHoverer),y.container.classList.remove(l),A.isPointering=!1}}function Le(g){var m=g.resolve,T=g.sourcePointerProps,y=m(ve);this.listener=function(){T.isPointering&&(T.swipedX?y.runActions():y.runNoSwipeActions())}}function ft(g){var m=this,T=g.core,y=T.globalEventsController,M=T.scrollbarRecompensor,I=(g.data,g.e),A=g.elements,O=g.fs,L=g.props,q=g.sourcePointerProps,R=g.ud;this.runActions=function(){m.i=1,A.container.classList.add(k),y.removeListeners(),L.exitFullscreenOnClose&&g.ifs&&O.x(),setTimeout(function(){m.i=0,q.isPointering=!1,A.container.classList.remove(k),document.documentElement.classList.remove(d),M.removeRecompense(),R&&A.container.close(),document.body.removeChild(A.container),I("onClose")},270)}}function ot(g,m){var T=g.classList;T.contains(m)&&T.remove(m)}function S(g){var m,T,y,M,I,A,O,L,q;(function(R){var Y=R.ap,V=R.elements.sources,Q=R.props,W=Q.autoplay,ne=Q.autoplays;function J(U,ee){if(ee!="play"||Y.i(U)){var ye=V[U];if(ye){var se=ye.tagName;if(se=="VIDEO")ye[ee]();else if(se=="IFRAME"){var fe=ye.contentWindow;fe&&fe.postMessage('{"event":"command","func":"'.concat(ee,'Video","args":""}'),"*")}}}}Y.i=function(U){return ne[U]||W&&ne[U]!=0},Y.p=function(U){J(U,"play")},Y.c=function(U,ee){J(U,"pause"),J(ee,"play")}})(g),function(R){R.data;var Y=R.fs,V=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],Q=document.documentElement,W=Q.requestFullscreen;function ne(U){for(var ee=0;eeinnerHeight&&(document.body.style.marginRight=Y.scrollbarWidth+"px")}V.addRecompense=function(){document.readyState==="complete"?Q():addEventListener("load",function(){Q(),V.addRecompense=Q})},V.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(g),function(R){var Y=R.core,V=Y.slideChangeFacade,Q=Y.slideIndexChanger,W=Y.stageManager;R.props.sources.length>1?(V.changeToPrevious=function(){Q.jumpTo(W.getPreviousSlideIndex())},V.changeToNext=function(){Q.jumpTo(W.getNextSlideIndex())}):(V.changeToPrevious=function(){},V.changeToNext=function(){})}(g),function(R){var Y=R.ap,V=(R.componentsServices,R.core),Q=V.slideIndexChanger,W=V.sourceDisplayFacade,ne=V.stageManager,J=R.elements,U=J.smw,ee=J.sourceAnimationWrappers,ye=R.isl,se=R.stageIndexes,fe=R.sws;Q.changeTo=function(Te){Y.c(se.current,Te),se.current=Te,ne.updateStageIndexes(),R.sn(Te+1),W.displaySourcesWhichShouldBeDisplayed()},Q.jumpTo=function(Te){var K=se.previous,B=se.current,ae=se.next,H=ye[B],te=ye[Te];Q.changeTo(Te);for(var j=0;j992?R.mw=J*innerWidth:R.mw=innerWidth,R.mh=J*innerHeight;for(var U=0;U0)&&(g.loc=1),S(g),g.fs.i(),R.container=document.createElement(g.ud?"dialog":"div"),R.container.className="".concat(s,"container ").concat(u," ").concat(b),R.container.setAttribute("tabindex","0"),function(se){var fe=se.elements;fe.slideSwipingHoverer=document.createElement("div"),fe.slideSwipingHoverer.className="".concat(s,"slide-swiping-hoverer ").concat(u," ").concat(f)}(g),Qe(g),function(se){var fe=se.core.sourcesPointerDown,Te=se.elements,K=se.props.sources,B=document.createElement("div");B.className="".concat(f," ").concat(u),Te.container.appendChild(B),B.addEventListener("pointerdown",fe.listener),Te.sourceWrappersContainer=B;for(var ae=0;ae1&&(J=(ne=g).core.slideChangeFacade,De(ne,J.changeToPrevious,"previous","M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"),De(ne,J.changeToNext,"next","M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z")),function(se){for(var fe=se.props.sources,Te=se.resolve,K=Te(z),B=Te(x),ae=Te(Ce,[K,B]),H=0;H0&&arguments[0]!==void 0?arguments[0]:0,J=Y.previous,U=Y.current,ee=Y.next;Y.current=ne,Q||N(g),A.updateStageIndexes(),Q?(V.c(),V.a(),V.b(J),V.b(U),V.b(ee),q("onShow")):W(),I.displaySourcesWhichShouldBeDisplayed(),g.sn(ne+1),document.body.appendChild(R.container),g.ud&&R.container.showModal(),R.container.focus(),document.documentElement.classList.add(d),M.addRecompense(),y.attachListeners(),O.runActions(),R.smw[ne].n(),m.p(ne),q("onOpen")}}function $t(g,m,T){return($t=si()?Reflect.construct.bind():function(y,M,I){var A=[null];A.push.apply(A,M);var O=new(Function.bind.apply(y,A));return I&&Me(O,I.prototype),O}).apply(null,arguments)}function si(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Me(g,m){return(Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,y){return T.__proto__=y,T})(g,m)}function ti(g){return function(m){if(Array.isArray(m))return Gt(m)}(g)||function(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}(g)||function(m,T){if(m){if(typeof m=="string")return Gt(m,T);var y=Object.prototype.toString.call(m).slice(8,-1);if(y==="Object"&&m.constructor&&(y=m.constructor.name),y==="Map"||y==="Set")return Array.from(m);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return Gt(m,T)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Gt(g,m){(m==null||m>g.length)&&(m=g.length);for(var T=0,y=new Array(m);T1&&arguments[1]!==void 0?arguments[1]:[];return T.unshift(g),$t(m,ti(T))},this.collections={sourceLoadHandlers:[],sourcesRenderFunctions:[],sourceSizers:[]},this.core={globalEventsController:{},lightboxCloser:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},sourcesPointerDown:{},sourceDisplayFacade:{},stageManager:{},windowResizeActioner:{}},this.ap={},this.fs={},this.sws={},this.e=function(m){g.props[m]&&g.props[m](g)},bt(this),this.close=function(){return g.core.lightboxCloser.closeLightbox()}},window.fsLightboxInstances={},oi(),window.refreshFsLightbox=function(){for(var g in fsLightboxInstances){var m=fsLightboxInstances[g].props;fsLightboxInstances[g]=new FsLightbox,fsLightboxInstances[g].props=m,fsLightboxInstances[g].props.sources=[],fsLightboxInstances[g].elements.a=[]}oi()}}])})})(fc);ki.registerPlugin(ce);(function(o,e){(function(){e.path.isFront,console.log("drupalSettings",e);const t=document.querySelector('main[role="main"]'),r=ki.matchMedia();console.log("gsap_mm",r);function n(){console.log("LeShedTheme init()"),console.log("deploy test to delete"),s(),a(),l(),c(),u()}function s(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(h){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}function a(){const d=document.querySelector('main[role="main"]'),h=d&&d.querySelector(".layout-content");if(!d||!h)return;const f=new cc({wrapper:d,content:h,duration:1.2,smoothWheel:!0});f.on("scroll",ce.update),ki.ticker.add(_=>f.raf(_*1e3)),ki.ticker.lagSmoothing(0)}function l(){console.log("initHomeColumnScrollSync");const d=document.querySelector(".layout--twocol-section--50-50 .layout__region--first"),h=document.querySelector(".layout--twocol-section--50-50 .layout__region--second");console.log(t,d,h),!(!t||!d||!h)&&(r.add("(min-width: 768px)",()=>([d,h].forEach(f=>{ki.to(f,{y:()=>{const _=t.clientHeight,p=t.scrollHeight-t.clientHeight,v=Math.max(0,f.offsetHeight-_);return p-v},ease:"none",scrollTrigger:{scroller:t,start:0,end:"max",scrub:!0,invalidateOnRefresh:!0}})}),()=>{})),window.addEventListener("load",()=>ce.refresh()))}function u(){console.log("initPageFull");const d=document.querySelector("article.node-type-projet.view-mode-full .cols>.col.left>header, article.node-type-evenement.view-mode-full>.cols>.col.left>header");console.log("pageHeader",d),d&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{const _=d.offsetHeight,p=.4,v=_-_*p;r.add("(min-width: 768px)",()=>{ki.to(d,{scale:p,y:v,ease:"none",scrollTrigger:{scroller:t,start:0,end:v,scrub:!0,invalidateOnRefresh:!0}})})})});const h=document.querySelector("article.node-type-projet.view-mode-full .cols"),f=h&&h.querySelector(".col.left");if(h&&f){const p=()=>{const v=f.offsetHeight-t.clientHeight;return v>0?v:initheaderH?initheaderH.offsetHeight*.6:0};r.add("(min-width: 768px)",()=>{ki.fromTo(f,{y:0},{y:()=>t.scrollHeight-t.clientHeight-p(),ease:"none",scrollTrigger:{scroller:t,start:p,end:"max",scrub:!0,invalidateOnRefresh:!0}})})}}function c(){console.log("initFsLightbox");let d=document.querySelectorAll("article.node-type-projet.view-mode-full .field_images.multiple .field-item a");for(const h of d)h.setAttribute("data-fslightbox","gallery");window.refreshFsLightbox()}n()})()})(Drupal,drupalSettings); diff --git a/web/themes/custom/leshed/assets/dist/titles.js b/web/themes/custom/leshed/assets/dist/titles.js new file mode 100644 index 0000000..e06041c --- /dev/null +++ b/web/themes/custom/leshed/assets/dist/titles.js @@ -0,0 +1 @@ +var Y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ut(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var rt={exports:{}};(function(f,y){(function(p,N){f.exports=N()})(Y,function(){var p=document,N=p.createTextNode.bind(p);function b(t,e,n){t.style.setProperty(e,n)}function x(t,e){return t.appendChild(e)}function h(t,e,n,l){var u=p.createElement("span");return e&&(u.className=e),n&&(!l&&u.setAttribute("data-"+e,n),u.textContent=n),t&&x(t,u)||u}function S(t,e){return t.getAttribute("data-"+e)}function w(t,e){return!t||t.length==0?[]:t.nodeName?[t]:[].slice.call(t[0].nodeName?t:(e||p).querySelectorAll(t))}function A(t){for(var e=[];t--;)e[t]=[];return e}function P(t,e){t&&t.some(e)}function B(t){return function(e){return t[e]}}function J(t,e,n){var l="--"+e,u=l+"-index";P(n,function(c,m){Array.isArray(c)?P(c,function(g){b(g,u,m)}):b(c,u,m)}),b(t,l+"-total",n.length)}var D={};function U(t,e,n){var l=n.indexOf(t);if(l==-1){n.unshift(t);var u=D[t];if(!u)throw new Error("plugin not loaded: "+t);P(u.depends,function(m){U(m,t,n)})}else{var c=n.indexOf(e);n.splice(l,1),n.splice(c,0,t)}return n}function C(t,e,n,l){return{by:t,depends:e,key:n,split:l}}function K(t){return U(t,0,[]).map(B(D))}function M(t){D[t.by]=t}function k(t,e,n,l,u){t.normalize();var c=[],m=document.createDocumentFragment();l&&c.push(t.previousSibling);var g=[];return w(t.childNodes).some(function(v){if(v.tagName&&!v.hasChildNodes()){g.push(v);return}if(v.childNodes&&v.childNodes.length){g.push(v),c.push.apply(c,k(v,e,n,l,u));return}var T=v.wholeText||"",G=T.trim();if(G.length){T[0]===" "&&g.push(N(" "));var ot=n===""&&typeof Intl.Segmenter=="function";P(ot?Array.from(new Intl.Segmenter().segment(G)).map(function(tt){return tt.segment}):G.split(n),function(tt,lt){lt&&u&&g.push(h(m,"whitespace"," ",u));var et=h(m,e,tt);c.push(et),g.push(et)}),T[T.length-1]===" "&&g.push(N(" "))}}),P(g,function(v){x(m,v)}),t.innerHTML="",x(t,m),c}var O=0;function Q(t,e){for(var n in e)t[n]=e[n];return t}var j="words",V=C(j,O,"word",function(t){return k(t,"word",/\s+/,0,1)}),W="chars",I=C(W,[j],"char",function(t,e,n){var l=[];return P(n[j],function(u,c){l.push.apply(l,k(u,"char","",e.whitespace&&c))}),l});function R(t){t=t||{};var e=t.key;return w(t.target||"[data-splitting]").map(function(n){var l=n["🍌"];if(!t.force&&l)return l;l=n["🍌"]={el:n};var u=t.by||S(n,"splitting");(!u||u=="true")&&(u=W);var c=K(u),m=Q({},t);return P(c,function(g){if(g.split){var v=g.by,T=(e?"-"+e:"")+g.key,G=g.split(n,m,l);T&&J(n,T,G),l[v]=G,n.classList.add(v)}}),n.classList.add("splitting"),l})}function H(t){t=t||{};var e=t.target=h();return e.innerHTML=t.content,R(t),e.outerHTML}R.html=H,R.add=M;function q(t,e,n){var l=w(e.matching||t.children,t),u={};return P(l,function(c){var m=Math.round(c[n]);(u[m]||(u[m]=[])).push(c)}),Object.keys(u).map(Number).sort(z).map(B(u))}function z(t,e){return t-e}var Z=C("lines",[j],"line",function(t,e,n){return q(t,{matching:n[j]},"offsetTop")}),i=C("items",O,"item",function(t,e){return w(e.matching||t.children,t)}),o=C("rows",O,"row",function(t,e){return q(t,e,"offsetTop")}),r=C("cols",O,"col",function(t,e){return q(t,e,"offsetLeft")}),a=C("grid",["rows","cols"]),s="layout",d=C(s,O,O,function(t,e){var n=e.rows=+(e.rows||S(t,"rows")||1),l=e.columns=+(e.columns||S(t,"columns")||1);if(e.image=e.image||S(t,"image")||t.currentSrc||t.src,e.image){var u=w("img",t)[0];e.image=u&&(u.currentSrc||u.src)}e.image&&b(t,"background-image","url("+e.image+")");for(var c=n*l,m=[],g=h(O,"cell-grid");c--;){var v=h(g,"cell");h(v,"cell-inner"),m.push(v)}return x(t,g),m}),E=C("cellRows",[s],"row",function(t,e,n){var l=e.rows,u=A(l);return P(n[s],function(c,m,g){u[Math.floor(m/(g.length/l))].push(c)}),u}),_=C("cellColumns",[s],"col",function(t,e,n){var l=e.columns,u=A(l);return P(n[s],function(c,m){u[m%l].push(c)}),u}),L=C("cells",["cellRows","cellColumns"],"cell",function(t,e,n){return n[s]});return M(V),M(I),M(Z),M(i),M(o),M(r),M(a),M(d),M(E),M(_),M(L),R})})(rt);var st=rt.exports;const ct=ut(st);var it={exports:{}};(function(f){(function(y,p){f.exports?f.exports=p():y.createHyphenator=p()})(Y,function(){function y(i){var o="",r="",a=0,s=i();return function(d){for(;a"&&(o(),i=!1):r[0]==="<"&&(!p(r[1])||r[1]==="/")&&(i=!0),i}}function b(i){var o=!1;return function(r,a){return o?!p(a[0])&&p(a[1])&&(r(),o=!1):!p(a[0])&&a[1]===i&&(o=!0),o}}function x(i,o){return function(){var r="",a="";function s(){r+=a,a=""}function d(E){return r="",a="",E}return function(E,_){a+=E;var L=i.reduce(function(t,e){return t||e(s,[E,_])},!1);if(!L&&(p(E)&&!p(_)&&s(),!p(E)&&p(_))){if(a.length>=o)return d([r,a]);s()}if(_==="")return(a.length1)for(var s=0,d=1;d-1;)s.push(a);return o[r.toLocaleLowerCase().replace(/\-/g,"")]=s,o},{})}function A(i){var o=0;function r(){return i[o++]}return r}function P(i){var o=0,r=i;function a(){if(r=i.slice(o++),!(r.length<3))return r}function s(){return o===2}return[a,s]}function B(i,d,r,a){for(var s=new Array(i.length+1),d=("."+d+".").split(""),E,_,L,t,e,n,l=-1,u,c,m,g,v=s.length;v--;)s[v]=0;for(u=P(d),c=u[0],m=u[1];E=c();)for(l++,m()&&l--,L=a,g=A(E);(_=g())&&(t=L[_])!==void 0;){switch(L={},e=-1,Object.prototype.toString.call(t)){case"[object Array]":L=t[0],e=t[1];break;case"[object Object]":L=t;break;case"[object Number]":e=t;break}if(!(e<0)){n=r[e];for(var T=0;T>0,e=H(o,Q,C),n=H(o,O,U,R),l=E+t;if(d[l]={},i[2]&&(d[l]=q(i[2],E),s=i[2]),n&&n.length&&(d[l]=I(d[l],z(n,E)),s=I(s,w(n))),a[l]=I({},d[l]),r&&!("Promise"in W))throw new Error("Failed to create hyphenator: Could not find global Promise object, needed for hyphenator to work in async mode");return function(u,c){c=c||{};var m=H(c,j,E),g=H(c,V,t)>>0,v=H(c,O,U,R),T=m+g;return!d[T]&&i[2]&&(d[T]=q(i[2],m),a[T]=I(a[T],d[T])),v&&v.length&&(d[T]=I(d[T],z(v,m)),s=I(s,w(v)),a[T]=I(a[T],d[T])),J(u,_,L,a[T],s,m,e,g,r)}}return Z})})(it);var ft=it.exports,$=ft,mt=function(f){return{hyphenate:$(f,{async:!0}),hyphenateHTML:$(f,{async:!0,html:!0}),hyphenateHTMLSync:$(f,{html:!0}),hyphenateSync:$(f),patterns:f}},at={exports:{}};(function(f){(function(y,p){f.exports?f.exports=p:y.hyphenationPatternsFr=p})(Y,[[[2,2],[0,4],[0,0,4],[0,0,2],[0,0,3],[0,0,0,3],[0,1,2],[0,0,3,4],[0,0,0,3,4],[1],[0,2],[0,2,1],[0,0,0,0,0,1,2],[0,0,0,0,0,0,1,2],[0,0,0,0,3,4],[1,2],[0,2,2],[0,0,0,0,1,2],[0,0,0,0,2],[0,0,0,0,0,2],[0,0,0,2,3],[0,0,0,0,2,3],[0,0,0,2],[0,2,3],[0,0,0,2,0,3],[4],[2],[0,0,1,2],[0,0,1],[0,0,0,1,2],[0,0,2,1,2],[0,0,3,0,3,2],[0,3],[0,0,0,0,0,0,3],[0,0,0,0,3],[0,0,0,0,0,0,0,0,3],[0,0,0,0,0,0,0,4],[0,0,0,0,0,4],[0,0,0,2,0,0,3],[0,0,0,0,2,3,2],[0,0,2,1],[2,0,3],[0,0,0,4],[0,0,0,0,4],[0,0,2,3],[0,0,0,0,0,3],[0,0,3,2,3],[0,0,3,2],[3,2],[0,2,1,2],[0,0,0,2,1,2],[0,0,0,0,0,1],[0,0,0,0,0,0,0,3],[0,0,0,0,1],[0,0,0,0,0,0,2],[0,0,0,0,4,1],[0,1],[0,0,0,0,0,5],[0,0,0,0,0,0,4],[0,0,0,0,0,4,3],[0,0,0,0,0,0,0,2],[0,0,0,0,4,3],[0,0,0,0,0,0,0,0,2],[0,0,0,0,2,1,2],[0,3,2],[0,0,0,0,0,2,3],[0,0,0,1],[0,0,1,2,2],[0,0,0,0,0,0,3,2],[3,0,2],[0,0,0,2,1],[0,0,0,0,3,2],[0,0,4,5],[2,3],[0,0,0,0,0,3,2]],{"'":[{a:[{b:{r:{é:{a:5}}},e:{s:{c:{h:8}}},l:{c:{o:{o:{l:10}}}},m:{i:{n:{o:{a:{c:13}}}}},n:{a:{s:{t:{r:14}}},e:{s:{t:{h:{é:{s:{i:16}}}}}},t:{i:{a:12,e:[{n:{n:{e:19}}},12],é:12,s:12}}},p:{o:{s:{t:{a:21}}}},s:{t:{a:22}},r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},g:{n:{a:{t:44}}}},2],â:2,e:[{n:{a:29,o:29},u:{r:{a:50}}},2],ê:2,é:2,è:2,i:[{g:{n:{é:44,i:44}},n:{f:{o:{r:{m:{a:{t:10}}}}},a:[{n:{i:{t:20}},u:{g:{u:{r:22}}}},29],e:[{f:{f:{a:{b:22}}},p:{t:22},r:22,x:{o:{r:{a:22}}}},29],é:[{l:{u:{c:{t:{a:20}}}},n:{a:{r:{r:{a:20}}}}},29],i:[{m:{i:{t:{i:20}}},q:20,t:20},29],o:[{c:{u:{l:20}},n:{d:22}},29],s:{t:{a:{b:29}}},t:{e:{r:[{a:60,e:60,é:60,i:60,o:60,u:60,s:60},59]}},u:[{i:{t:22},l:20},29]}},2],o:[{n:{g:{u:{e:{n:{t:{".":5}}}}}},c:{t:{e:{t:10}}},u:{a:{o:{u:53}}},v:{i:{s:{c:17}}}},2],î:2,ô:2,u:2,û:2,y:2},0],".":{a:[{b:{r:{é:{a:4}}},e:{s:{c:{h:7}}},m:{i:{n:{o:{a:{c:12}}}}},n:{a:{s:{t:{r:8}}},t:{i:{a:17,e:[{n:{n:{e:18}}},17],é:17,s:17}}},p:{o:{s:{t:{a:20}}}},s:{t:{a:3}},r:{d:{e:{n:{t:{".":4}}}},g:{e:{n:{t:{".":4}}}},p:{e:{n:{t:{".":4}}}}},g:{n:{a:{t:23}}}},1],â:1,b:{a:{i:{s:{e:{m:{a:{i:{n:24}}}}}}},i:{a:{c:27,t:27,u:28},o:{a:29},s:{a:30},u:27}},c:{h:[{è:{v:{r:{e:{f:{e:{u:{i:{l:{l:{e:38}}}}}}}}}}},2],i:{s:{a:{l:{p:40}}}},o:{n:[{s:43,t:{r:{e:{s:{c:13},m:{a:{î:{t:{r:{e:33}}}}}}}}},42],o:[{l:{i:{e:44}}},27],m:{m:{e:{n:{t:{".":5}}}}}},u:{l:42}},d:{a:{c:{r:{y:{o:{a:13}}}}},é:{a:27,i:{o:28},o:27,s:[{a:{c:{r:46},m:20,t:{e:{l:{l:46}}},s:{t:{r:47}}},c:47,é:[{g:{r:46}},30],e:{n:{s:{i:{b:47}}},r:{t:47},x:{u:47}},i:[{d:46,g:{n:46},l:{i:46},n:{e:{n:46},v:{o:47}},r:46,s:{t:47}},30],o:{d:{é:46},l:46,p:{i:{l:46}},r:{m:47,p:47},u:{f:{r:47}}},œ:40,p:47,t:47,u:{n:30}},3]},i:{a:{c:{é:27,i:{d:27}},l:{d:28},m:{i:27},t:{o:{m:27}}},e:{n:27},s:{h:44}},y:{s:[{a:30,i:30,o:30,u:30},44]},o:{l:{e:{n:{t:{".":4}}}}}},e:[{n:{a:27,o:27},u:{r:{a:30}}},1],ê:1,é:[{m:{i:{n:{e:{n:{t:{".":5}}}}}}},1],è:1,i:[{g:{n:{é:23,i:23}},n:{a:[{n:{i:{t:44}},u:{g:{u:{r:3}}}},27],e:[{f:{f:{a:{b:3}}},p:{t:3},r:3,x:{o:{r:{a:3}}}},27],é:[{l:{u:{c:{t:{a:44}}}},n:{a:{r:{r:{a:44}}}}},27],i:[{m:{i:{t:{i:44}}},q:44,t:44},27],o:[{c:{u:{l:44}},n:{d:3}},27],s:{t:{a:{b:27}}},t:{e:{r:[{a:54,e:54,é:54,i:54,o:54,u:54,s:54},61]}},u:[{i:{t:3},l:44},27]}},1],m:{a:{g:{n:{i:{c:{i:{d:{e:44}}},f:{i:{c:{a:{t:44}}}}},u:{m:44}}},c:{k:44,r:{o:{s:{c:12}}}},l:{a:{d:{r:{e:{s:30},o:30}},i:{s:{é:40}},p:40,v:30},e:{n:40},i:{n:{t:40}},o:{c:40,d:30}},r:{x:40}},é:{g:{o:{h:40}},s:{a:[{n:4},3],e:{s:40},i:40,u:{s:30}},t:{a:{s:{t:{a:17}}}}},i:{l:{l:{i:{a:{m:51}}}}},o:{n:{o:{a:17,e:17,é:17,i:17,ï:{d:{é:17}},o:17,u:17,s:17}}}},p:{r:{o:{g:{n:{a:{t:{h:20}}}},é:29,s:{c:{é:29}},u:{d:{h:71}}},é:{a:[{l:{a:20},u:22},29],é:29,e:29,i:29,o:29,u:29,s:29}},a:{n:{a:{f:30,m:{é:30},r:{a:30}},i:{s:40},o:{p:{h:30,t:40}}},r:{a:{c:{h:{e:30,è:30}},s:17},h:{é:44},e:{n:{t:{".":4}}}},t:{e:{n:{t:{".":4}}}}},e:{n:{t:{a:22}},r:[{a:29,e:29,é:29,i:29,o:29,u:29},2]},é:{r:{i:{o:{s:53},s:[{s:21,t:{a:21}},17],u:17}}},h:[{a:{l:{a:{n:{s:{t:68}}}}}},2],l:{u:{r:{i:{a:51}}}},o:{n:{t:{e:{t:22}}},s:{t:{h:20,i:{n:70},o:50,r:20,s:17}}},s:{y:{c:{h:{o:{a:{n:13}}}}}},u:{d:{d:{l:29}}}},s:{t:{a:{g:{n:20}},i:{l:{l:34}}},y:{n:{g:{n:{a:{t:{h:20}}}}}},a:{r:{m:{e:{n:{t:{".":5}}}}}},e:{r:{m:{e:{n:{t:{".":5}}}}},u:{l:{e:22}}},c:{h:42},h:2,u:{b:{a:[{l:{t:47}},30],é:[{r:46},30],i:{n:40},l:{i:{m:{i:{n:44}},n:44},u:44},u:{r:40}},r:{a:[{t:46},30],e:[{a:{u:47},l:{l:47},t:47},30],é:30,h:44,i:{m:30,n:{f:40,t:40}},o:{f:40,x:40}}},o:{u:{v:{e:{n:{t:{".":5}}}}}}},o:[{n:{g:{u:{e:{n:{t:{".":4}}}}}},u:{a:{o:{u:66}}},v:{i:{s:{c:29}}}},1],î:1,k:{h:2},t:{a:{l:{e:{n:{t:{".":4}}}}},h:2,r:{i:{a:{c:29,n:29,t:29},o:{n:29}}}},g:{e:{m:{m:{e:{n:{t:{".":22}}}}}}},n:{o:{n:{o:{b:{s:40}}}}},ô:1,r:{é:{a:[{l:{e:44,i:{s:44,t:44}},u:{x:3}},27],é:27,e:[{l:3,r:3},27],è:{r:3},i:[{f:{i:44}},27],o:27,u:[{s:{s:3}},22],t:{r:{o:{a:12}}}},e:{s:[{c:{a:{p:44},i:{s:{i:44,o:44}},o:{u:44},r:{i:44}},p:{e:{c:{t:44}},i:{r:44},l:{e:{n:{d:44}}},o:{n:{s:44}}},q:{u:{i:{l:44}}},s:[{e:{n:{t:{".":5}}}},44],t:[{a:{b:7,g:7,n:{d:7},t:7},é:{n:7,r:7},i:{m:7,p:7},o:{c:7,p:7},r:[{e:{i:{n:72}},i:{c:{t:72},n:72}},7],u:7,y:7},44]},27]}},l:{a:{t:{e:{n:{t:{".":4}}}}}},u:1,û:1,y:1},a:{b:{h:3,î:{m:{e:{n:{t:{".":22}}}}},s:{t:{i:{n:{e:{n:{t:{".":45}}}}}},e:{n:{t:{".":4}}}}},d:{h:3},è:{d:{r:{e:6}}},l:{c:{o:{o:{l:9}}},a:{l:{g:{i:11}}}},n:{e:{s:{t:{h:{é:{s:{i:15}}}}}},i:{m:{e:{n:{t:{".":22}}}}},t:{i:{f:{e:{r:{m:{e:{n:{t:{".":52}}}}}}}}}},p:{o:{s:{t:{r:20}}},p:{a:{r:{e:{n:{t:{".":34}}}}}}},r:{c:{h:{i:{é:{p:{i:{s:12}}}}}},m:{i:{l:{l:57}},e:{n:{t:{".":3}}}}},s:{t:{r:{o:23}},m:{e:{n:{t:{".":3}}}}},c:{c:{e:{n:{t:{".":4}}}},q:{u:{i:{e:{s:{c:{e:{n:{t:{".":36}}}}}}}}}},g:{n:{o:{s:23}}},v:{i:{l:{l:43}}},m:{a:{l:{g:{a:{m:{e:{n:{t:{".":54}}}}}}}}},i:{m:{e:{n:{t:{".":3}}}}},u:{m:{e:{n:{t:{".":3}}}}}},b:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:[{u:{t:{i:{l:{l:33}}},m:{e:{n:{t:{".":22}}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},u:{m:{e:{n:{t:{".":22}}}}}},15],u:9,û:9,y:9},ç:9,c:{a:[{o:{u:{t:31}},p:{i:{l:{l:45}}},r:{ê:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}},v:{i:{l:{l:58}}}},g:26,l:[{e:{".":25,s:{".":25}},o:{r:{a:{c:39},é:{t:39}}}},3],m:26,n:26,p:26,r:[{e:{".":25,s:{".":25}},o:{m:{e:{n:{t:{".":18}}}}}},3],s:26,t:26,w:26,i:{e:{n:{d:{e:{n:{t:{".":45}}}}}}}},15],i:[{l:{l:5}},9],î:9,k:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}}},f:26,g:26,h:41,p:26,s:26,t:26},15],l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{e:{n:{t:{".":22}}}}}},15],o:[{a:{c:{c:28,q:28},d:27,p:28,r:28,s:{s:{o:{c:28},u:{r:28}}},u:28,x:28},é:27,e:{f:28,n:28,x:28},n:{u:{r:{b:3}},f:{i:{d:{e:{n:{t:{".":45}}}}}},t:{i:{n:{g:{e:{n:{t:{".":33}}}},e:{n:{t:{".":45}}}}}},n:{i:{v:{e:{n:{t:{".":45}}}}}}},g:{n:{i:{t:{i:44}}}},r:{p:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{p:{é:{t:{e:{n:{t:{".":45}}}}}}}},9],ô:9,œ:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{r:{r:{e:{n:{t:{".":5}}}}}},9],û:9,y:[{r:{i:{l:{l:45}}}},9],c:{i:{d:{e:{n:{t:{".":5}}}}}}},j:[{a:{c:{e:{n:{t:{".":4}}}}},k:26,e:{".":25,s:{".":25},n:{t:{".":26}}}},9],é:{c:{e:{n:{t:{".":32}}},i:{m:{e:{n:{t:{".":22}}}}},u:{m:{e:{n:{t:{".":22}}}}}},d:{e:{n:{t:{".":32}}},h:{i:3},r:{i:{e:15,q:{u:{e:15}}}}},l:{e:{c:{t:{r:15}}},é:{m:{e:{n:{t:15}}}},i:{m:{e:{n:{t:{".":22}}}}},o:{q:{u:{e:{n:{t:{".":5}}}}}}},n:{e:{r:{g:15}},i:{t:{e:{n:{t:{".":5}}}}}},p:{i:{s:{c:{o:{p:[{e:8},20]}}}}},m:{i:{l:{l:43}}},q:{u:{i:{v:{a:{l:{e:{n:{t:{".":58}}}}}},p:{o:{t:{e:{n:{t:{".":33}}}}}}},e:{n:{t:{".":32}}}}},r:{e:{n:{t:{".":32}}}}},m:{u:[{n:{i:{f:{i:{c:{e:{n:{t:{".":33}}}}}}}}},9],i:[{l:{l:[{e:{t:42}},5]},m:{e:{n:{t:{".":3}}}},t:{t:{e:{n:{t:{".":5}}}}}},9],o:[{n:{o:{v:{a:{l:{e:{n:{t:{".":33}}}}}}},t:{r:{é:{a:{l:20}}}}},y:{e:{n:{â:{g:63}}}}},9],a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{c:{o:{n:{t:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,î:9,n:{é:{m:{o:15},s:{i:15}},è:{s:15}},ô:9,œ:9,s:6,û:9,y:9},r:{é:[{t:{i:{c:{e:{n:{t:{".":34}}}}}},g:{e:{n:{t:{".":4}}}},s:{u:{r:{g:{e:{n:{t:{".":45}}}}}}},m:{a:{n:{e:{n:{t:{".":34}}}}}}},9],i:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}}},9],c:{i:{l:{l:43}}},m:{i:{l:{l:43}}},e:[{l:{e:{n:{t:{".":4}}},i:{m:{e:{n:{t:{".":18}}}}}},p:{e:{n:{t:{".":4}}}},".":25,s:{".":25},n:{t:{".":26}}},9],u:[{l:{e:{n:{t:{".":4}}}}},9],a:[{m:{e:{n:{t:{".":3}}}},i:{m:{e:{n:{t:{".":5}}}}},d:{i:{o:{a:12}}}},9],y:[{t:{h:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,è:9,ê:9,h:[{e:{".":25,s:{".":25},u:{r:73}},y:{d:{r:73}}},15],î:9,o:9,ô:9,û:9},p:{r:[{i:{v:{a:{t:{d:{o:{c:{e:{n:{t:{".":35}}}},z:{e:{n:{t:{".":35}}}}}}}}}},u:{d:{e:{n:{t:{".":5}}}}},é:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{e:{n:{t:{".":5}}}}},o:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{t:{a:{t:20}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{g:{n:{a:{b:{l:{e:44}},c:44}}},p:{i:{l:{l:45}}},s:{i:{l:{l:45}}}},9],a:[{p:{i:{l:{l:{a:45,e:45,i:45,o:{m:45}}}}},l:{é:{o:{é:12}}}},9],i:[{r:{i:{l:{l:45}}}},9],o:[{l:{y:{v:{a:{l:{e:{n:{t:{".":33}}}}}},a:17,e:17,é:17,è:17,i:17,o:17,s:17,u:17}},a:{s:{t:{r:{e:28}}}}},9],l:[{u:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],e:[{r:{m:{a:{n:{e:{n:{t:{".":45}}}}}},t:{i:{n:{e:{n:{t:{".":45}}}}}},h:5},".":25,s:{".":25},n:{t:{".":26}}},9],â:9,é:[{n:{u:{l:3}},r:{é:{q:67}}},9],è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},l:[{e:{".":25,s:{".":25}}},3],n:26,o:{t:{o:{s:12}}},r:[{e:{".":25,s:{".":25}}},3],s:26,t:[{a:{l:{é:69}},i:{s:69}},26]},15],î:9,n:{é:15,e:{u:15}},ô:9,s:{y:{c:{h:15}}},t:{è:{r:15},é:{r:15}},û:9,y:9},i:{n:{n:{o:{c:{e:{n:{t:{".":34}}}}}},c:{i:{d:{e:{n:{t:{".":34}}}}}},d:{i:{g:{e:{n:{t:{".":34}}}}},u:{l:{g:{e:{n:{t:{".":45}}}}}},o:{l:{e:{n:{t:{".":34}}}}}},t:{e:{l:{l:{i:{g:{e:{n:{t:{".":52}}}}}}}},i:{m:{e:{n:{t:{".":18}}}}}},s:{t:{i:{l:{l:33}}},o:{l:{e:{n:{t:{".":34}}}}}},f:{o:{r:{m:{a:{t:9}}}}}},s:{c:{e:{n:{t:{".":4}}},h:{é:23,i:{a:23,o:23}}},t:{a:{t:6}}},m:{m:{i:{s:{c:{e:{n:{t:{".":37}}}}},n:{e:{n:{t:{".":34}}}}},a:{n:{e:{n:{t:{".":34}}}}}},p:{u:{d:{e:{n:{t:{".":34}}}}},o:{t:{e:{n:{t:{".":34}}}}}}},a:{l:{g:{i:56}},r:{t:{h:{r:56}}}},è:{d:{r:{e:6}}},l:{l:3},b:{r:{i:{l:{l:45}}}},o:{a:{c:{t:27}},x:{y:56}},v:{a:{l:{e:{n:{t:{".":5}}}}}}},e:{s:{c:{e:{n:{t:{".":4}}},o:{p:23},h:23},t:{i:{m:{e:{n:{t:{".":18}}}}}}},n:{i:{v:{r:49}},t:{r:{e:{g:{e:{n:{t:{".":45}}}}}}}},u:{s:{t:{a:{t:27}}}},x:{t:{r:{a:[{c:19,i:19},51]}}},r:{m:{e:{n:{t:{".":3}}}}}},d:{"'":9,a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,d:{h:6},e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{a:{d:{e:{n:{t:{".":34}}}}}},t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,i:[{s:{s:{i:{d:{e:{n:{t:{".":45}}}}}},c:{o:{p:44}},t:{i:{l:{l:33}}}},l:{i:{g:{e:{n:{t:{".":34}}}}}},a:{p:{h:{r:{a:{g:{m:{e:{n:{t:{".":62}}}}}}}}}}},9],h:{a:{l:48},o:{u:{d:48}}},î:9,l:{e:{n:{t:{".":26}}}},o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],s:6,u:9,û:9,y:9},t:{r:[{i:{d:{e:{n:{t:{".":5}}}}},u:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},a:{n:{s:{p:[{a:{r:{e:{n:{t:{".":52}}}}}},21],a:[{c:{t:71},t:{s:71}},63],h:21,o:63,u:63}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],a:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}},c:{h:{y:{a:12}}}},9],e:[{r:{g:{e:{n:{t:{".":5}}}}},m:{p:{é:{r:{a:{m:{e:{n:{t:{".":52}}}}}}}}},s:{t:{a:{m:{e:{n:{t:{".":45}}}}}},".":25},".":25,n:{t:{".":26}}},9],h:[{r:[{i:{l:{l:45}},e:{".":25,s:{".":25}}},3],".":25,e:{".":25,s:{".":25},r:{m:{o:{s:13}}},u:{r:73}},l:26,m:26,n:26,s:26},15],u:[{r:{b:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{e:{n:{t:{".":3}}}},n:{g:{s:21}}},9],o:[{m:{e:{n:{t:{".":3}}}},r:{r:{e:{n:{t:{".":5}}}}}},9],â:9,à:9,c:{h:{i:{n:{t:74}}}},é:[{l:{é:{e:17,i:17,o:{b:17,p:17},s:17}}},9],è:9,ê:9,i:9,î:9,ô:9,t:{l:6},û:9,y:9},f:{a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{u:{l:{e:{n:{t:{".":34}}}}}}},9],è:9,ê:9,i:[{r:{m:{e:{n:{t:{".":22}}}}},c:{h:{u:{m:{e:{n:{t:{".":45}}}}}}}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},i:{t:{i:{l:{l:33}}}}},15],s:6,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:9},g:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:{a:15,e:15,i:15,o:15,y:15},i:[{l:{l:5}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],n:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}},n:{d:{i:{l:{o:{q:{u:{e:{n:{t:{".":35}}}}}}}}}}}},15],u:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},9],û:9,s:6,y:9},s:{e:[{r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},m:{i:{l:{l:37}}},s:{q:{u:{i:{a:13}}},".":25},".":25,n:{t:{".":26}}},9],u:[{c:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},b:{l:{i:{m:{e:{n:{t:{".":19}}}}}},s:29},m:{e:{n:{t:{".":3}}}},r:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},a:{h:47}},p:{e:{r:[{o:54,s:54},55]}}},9],p:{o:{r:[{u:{l:{e:{n:{t:{".":37}}}}}},15]},a:{t:{i:{a:15}}},e:{r:{m:15}},h:{è:{r:15},é:{r:15}},i:{e:{l:15},r:{o:{s:15}}}},l:{a:{l:{o:{m:{e:{n:{t:{".":19}}}}}},v:15},o:{v:15}},a:9,â:9,c:{a:{p:{h:15}},l:{é:{r:15}},o:{p:15},h:[{".":25,e:{".":25,s:{".":25}},s:26},15]},é:9,è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},m:26,o:{m:73},r:26,s:26},15],i:9,î:9,o:9,ô:9,œ:9,t:{a:{n:{d:{a:{r:{d:15}}}}},e:{i:{n:15}},é:{r:{é:{o:{s:13}}}},i:{g:{m:15}},o:{c:{k:15},m:{o:{s:15}}},r:{o:{p:{h:15}},u:{c:{t:{u:15}}}},y:{l:{e:15}}},û:9,y:9},o:{g:{n:{o:{m:{o:{n:{i:23}}},s:{i:23}}}},p:{u:{l:{e:{n:{t:{".":5}}}}}},m:{m:{e:{n:{t:{".":3}}}},b:{u:{d:{s:65}}},n:{i:{s:17,p:{o:{t:{e:{n:{t:{".":33}}}}}}}}},r:{m:{e:{n:{t:{".":3}}}}},b:{l:{o:{n:{g:23}}}},c:{t:{e:{t:9}}},d:{l:6},è:{d:{r:{e:6}}},i:{o:{n:{i:56}}},s:{t:{a:{s:6,t:6},é:{r:{o:6}},i:{m:6},o:{m:6},r:{a:{d:6,t:{u:6}},i:{c:{t:{i:{o:{n:6}}}}}}}},x:{y:{a:29}}},w:{a:[{g:{n:44}},9],e:[{".":25,s:{".":25},n:{t:{".":26}}},9],i:9,o:9,u:9,r:15},h:{a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{m:{i:{é:53},o:{p:{t:17}}}},9],è:9,ê:9,i:[{l:{l:5}},9],î:9,o:9,ô:9,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:[{p:{e:{r:[{a:54,e:54,é:54,i:54,o:54,s:54,u:54},55]},o:{a:17,e:17,é:17,i:17,o:17,s:17,u:17}}},9]},u:{c:{i:{l:{l:43}}},e:{v:{i:{l:{l:37}}}},v:{i:{l:{l:43}}},n:{i:{o:{v:29},a:{x:29}}},s:{t:{r:23}}},v:{a:[{c:{i:{l:{l:37}}},n:{i:{l:{l:{i:{n:45,s:45}}}}}},9],i:[{l:{l:5},d:{i:{m:{e:{n:{t:{".":18}}}}}}},9],e:[{n:{i:{m:{e:{n:{t:{".":18}}}}},t:{r:{i:{p:{o:{t:{e:{n:{t:{".":35}}}}}}}},".":26}},".":25,s:{".":25}},9],â:9,é:[{l:{o:{s:{k:{i:17}}}}},9],è:9,ê:9,î:9,o:[{l:{t:{a:{m:{p:70}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:9,û:9,y:9},l:{i:[{l:{l:5}},9],l:{i:{o:{n:32}},u:{m:{e:{n:{t:{".":22}}}}}},a:[{w:{r:{e:44}}},9],â:9,à:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,î:9,o:9,ô:9,s:{t:6},u:9,û:9,y:9,m:{e:{n:{t:{".":10}}}}},x:{i:{l:{l:5}},e:{n:{t:{".":26}}}},k:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25},15],i:9,î:9,o:9,ô:9,r:15,u:9,û:9,y:9},â:{m:{e:{n:{t:{".":10}}}}},q:[{u:{a:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}}},9],è:{m:{e:{n:{t:{".":10}}}}},n:{u:[{t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,o:9,ô:9,œ:9,û:9,s:{a:{t:{".":64,s:{".":64}}}},x:56,y:9},ô:{m:{e:{n:{t:{".":10}}}}},y:{a:{s:{t:{h:56}},l:{g:{i:56}}},s:{t:{o:{m:6}}}},z:{a:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,i:9,o:9,u:9,y:9}},{}])})(at);var ht=at.exports,dt=mt(ht);const pt=" #block-leshed-identitedusite>a, article.node-type-projet>header>h2, article.node-type-projet>.cols>.left>h2, article.node-type-projet.view-mode-full h2.node-title, article.node-type-evenement>header>h2, article.node-type-evenement>header>.field_dates>time, article.node-type-evenement.view-mode-full h2.node-title, article.node-type-evenement.view-mode-full .field_dates.digit-dates span.date-part ",F={wghtThin:{min:100,max:200},wghtMedium:{min:200,max:400},wghtBold:{min:800,max:900},boldRatio:.28,mediumRatio:.12,italicOnBold:.6,italicOnMedium:.4,italicOnThin:.3};function X(f,y){return Math.floor(Math.random()*(y-f))+f}function gt(){const f=document.querySelectorAll(pt);for(const y of f){y.classList.add("variable-title");const p=ct({target:y,by:"chars"});for(const N of p[0].words){const b=Array.from(N.getElementsByClassName("char"));vt(b),yt(b)}y.classList.add("is-ready")}}function nt(f,y,p=new Set){const N=new Set;for(let b=0;b{let w,A;return p.has(S)?(w=F.wghtBold,A=F.italicOnBold):N.has(S)?(w=F.wghtMedium,A=F.italicOnMedium):(w=F.wghtThin,A=F.italicOnThin),{char:h,wght:X(w.min,w.max+1),ital:Math.random()h.ital)){const h=[...p,...N],S=h.length?h[X(0,h.length)]:X(0,y);b[S].ital=!0}let x=0;for(const h of b)h.ital?(x+=1,x>2&&(h.ital=!1,x=0)):x=0;for(const{char:h,wght:S,ital:w}of b)h.style.fontVariationSettings=`'wght' ${S}`,h.style.fontStyle=w?"italic":"normal",h.classList.toggle("italic",w),h.classList.toggle("normal",!w)}function yt(f){if(f.length<5)return;const y="­",p=f.map(x=>x.textContent).join(""),N=dt.hyphenateSync(p);if(!N.includes(y))return;let b=0;for(const x of N)if(x===y){const h=f[b];b>0&&h&&h.parentNode&&h.parentNode.insertBefore(document.createTextNode(y),h)}else b++}gt(); diff --git a/web/themes/custom/leshed/assets/fonts/epilogue/stylesheet.css b/web/themes/custom/leshed/assets/fonts/epilogue/stylesheet.css index 6d9ed43..5e06135 100644 --- a/web/themes/custom/leshed/assets/fonts/epilogue/stylesheet.css +++ b/web/themes/custom/leshed/assets/fonts/epilogue/stylesheet.css @@ -2,17 +2,19 @@ @font-face { font-family: 'Epilogue'; - src: url('Epilogue-Italic-VariableFont_wght.ttf') format('woff2'); - src: url('Epilogue-Italic-VariableFont_wght.ttf') format('woff2') tech(variations); + src: url('Epilogue-Italic-VariableFont_wght.ttf') format('truetype'); + src: url('Epilogue-Italic-VariableFont_wght.ttf') format('truetype') tech(variations); font-weight: 100 900; font-style: italic; + font-display: block; } @font-face { font-family: 'Epilogue'; - src: url('Epilogue-VariableFont_wght.ttf') format('woff2'); - src: url('Epilogue-VariableFont_wght.ttf') format('woff2') tech(variations); + src: url('Epilogue-VariableFont_wght.ttf') format('truetype'); + src: url('Epilogue-VariableFont_wght.ttf') format('truetype') tech(variations); font-weight: 100 900; font-style: normal; + font-display: block; } diff --git a/web/themes/custom/leshed/assets/js/main.js b/web/themes/custom/leshed/assets/js/main.js index a7e490c..e1893fa 100644 --- a/web/themes/custom/leshed/assets/js/main.js +++ b/web/themes/custom/leshed/assets/js/main.js @@ -3,8 +3,6 @@ import '../scss/main.scss' import "splitting/dist/splitting.css"; import "splitting/dist/splitting-cells.css"; -import Splitting from "splitting"; -import { hyphenateSync } from "hyphen/fr"; import { gsap, Power1 } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; import Lenis from 'lenis'; @@ -53,7 +51,6 @@ gsap.registerPlugin(ScrollTrigger); console.log('LeShedTheme init()'); console.log('deploy test to delete'); - initTitles(); initBurgerMenu(); initSmoothScroll(); initHomeColumnScrollSync(); @@ -71,170 +68,6 @@ gsap.registerPlugin(ScrollTrigger); }) } - function randomInt(min, max) { - return Math.floor(Math.random() * (max - min)) + min; - } - - // Rendu typographique des titres. Police Epilogue = axe variable `wght` - // (100–900) uniquement ; l'italique est un fichier séparé (font-style). - const TITLE_STYLE = { - // 3 groupes de graisse : thin = majorité (défaut), medium = quelques, - // bold = les pics. Les fines ne sont pas comptées (c'est le reste). - wghtThin: { min: 100, max: 200 }, // majorité (défaut) - wghtMedium: { min: 200, max: 400 }, // quelques - wghtBold: { min: 800, max: 900 }, // pics - boldRatio: 0.28, // proportion de pics gras par mot - mediumRatio: 0.12, // proportion de medium par mot - italicOnBold: 0.6, // proba d'italique sur un pic - italicOnMedium: 0.4, // proba d'italique sur un medium - italicOnThin: 0.30, // proba d'italique sur une fine - }; - - function initTitles() { - const titles = document.querySelectorAll('\ - #block-leshed-identitedusite>a, \ - article.node-type-projet>header>h2,\ - article.node-type-projet>.cols>.left>h2,\ - article.node-type-projet.view-mode-full h2.node-title,\ - article.node-type-evenement>header>h2,\ - article.node-type-evenement>header>.field_dates>time,\ - article.node-type-evenement.view-mode-full h2.node-title,\ - article.node-type-evenement.view-mode-full .field_dates.digit-dates span.date-part\ - '); - for (const txt of titles) { - txt.classList.add("variable-title"); - const splitted = Splitting({ target: txt, by: 'chars' }); - for (const word of splitted[0].words) { - const chars = Array.from(word.getElementsByClassName('char')); - styleWordChars(chars); - hyphenateWord(chars); - } - } - - } - - /** - * Tire k positions réparties régulièrement dans [0, n[ : le mot est découpé - * en k cases contiguës, une position au hasard par case (aléa contrôlé, pas - * de paquets). Les positions déjà prises par un autre groupe sont évitées. - */ - function spreadPositions(n, k, exclude = new Set()) { - const set = new Set(); - for (let i = 0; i < k; i++) { - const start = Math.floor((i * n) / k); - const end = Math.floor(((i + 1) * n) / k); // borne exclue - const span = Math.max(1, end - start); - let pos = randomInt(start, start + span); - let guard = 0; - while ((exclude.has(pos) || set.has(pos)) && guard < span) { - pos = start + ((pos - start + 1) % span); - guard++; - } - set.add(pos); - } - return set; - } - - /** - * Applique graisse + italique caractère par caractère. - * - * Majorité de fines ; quelques medium et quelques pics gras, chacun réparti - * régulièrement dans le mot. L'italique est corrélé à la graisse. - */ - function styleWordChars(chars) { - const n = chars.length; - if (!n) return; - - // Accents répartis régulièrement : d'abord les pics gras, puis les medium - // (en évitant les positions déjà grasses). Le reste sera fin. - const bold = spreadPositions(n, Math.round(n * TITLE_STYLE.boldRatio)); - const medium = spreadPositions(n, Math.round(n * TITLE_STYLE.mediumRatio), bold); - - // 1) Décide graisse + italique pour chaque caractère. - const decisions = chars.map((char, i) => { - let range, pItal; - if (bold.has(i)) { - range = TITLE_STYLE.wghtBold; - pItal = TITLE_STYLE.italicOnBold; - } - else if (medium.has(i)) { - range = TITLE_STYLE.wghtMedium; - pItal = TITLE_STYLE.italicOnMedium; - } - else { - range = TITLE_STYLE.wghtThin; - pItal = TITLE_STYLE.italicOnThin; - } - return { - char, - wght: randomInt(range.min, range.max + 1), - ital: Math.random() < pItal, - }; - }); - - // 2) Au moins une italique par mot : si aucune, on en force une, de - // préférence sur un pic gras ou un medium, sinon sur une lettre au hasard. - if (!decisions.some((d) => d.ital)) { - const accents = [...bold, ...medium]; - const idx = accents.length ? accents[randomInt(0, accents.length)] : randomInt(0, n); - decisions[idx].ital = true; - } - - // 3) Pas plus de 2 italiques consécutives : on casse les séries de 3+. - let run = 0; - for (const d of decisions) { - if (d.ital) { - run += 1; - if (run > 2) { - d.ital = false; - run = 0; - } - } - else { - run = 0; - } - } - - // 4) Applique. - for (const { char, wght, ital } of decisions) { - char.style.fontVariationSettings = `'wght' ${wght}`; - char.style.fontStyle = ital ? 'italic' : 'normal'; - char.classList.toggle('italic', ital); - char.classList.toggle('normal', !ital); - } - } - - /** - * Insère des césures logicielles (U+00AD) aux points de coupure valides. - * - * Comme chaque lettre est un span (display:inline) sans « run » de texte - * continu, `hyphens: auto` est inopérant : on calcule donc les points de - * césure (motifs FR) et on insère un soft hyphen — en nœud texte, entre les - * lettres concernées — qui n'autorise une coupure (avec tiret) qu'à ces - * endroits. Les mots trop longs coupent proprement au lieu de casser - * n'importe où. - */ - function hyphenateWord(chars) { - if (chars.length < 5) return; - const SOFT = '\u00AD'; - const text = chars.map((c) => c.textContent).join(''); - const hyphenated = hyphenateSync(text); - if (!hyphenated.includes(SOFT)) return; - - let letter = 0; - for (const ch of hyphenated) { - if (ch === SOFT) { - const target = chars[letter]; - if (letter > 0 && target && target.parentNode) { - target.parentNode.insertBefore(document.createTextNode(SOFT), target); - } - } - else { - letter++; - } - } - } - function initBurgerMenu() { let header_right = document.getElementById('burger-btn'); header_right.parentElement.addEventListener('click', function(e){ @@ -373,7 +206,7 @@ gsap.registerPlugin(ScrollTrigger); const leftFreezeStart = () => { const overflow = leftColumn.offsetHeight - scroller.clientHeight; if (overflow > 0) return overflow; - return pageTitle ? pageTitle.offsetHeight * (1 - titleScaleTarget) : 0; + return initheaderH ? initheaderH.offsetHeight * (1 - titleScaleTarget) : 0; }; gsap_mm.add('(min-width: 768px)', () => { diff --git a/web/themes/custom/leshed/assets/js/titles.js b/web/themes/custom/leshed/assets/js/titles.js new file mode 100644 index 0000000..ec27d1a --- /dev/null +++ b/web/themes/custom/leshed/assets/js/titles.js @@ -0,0 +1,173 @@ +// Chargé en defer dans le : s'exécute avant main.js (defer, fin de body). +import Splitting from "splitting"; +import { hyphenateSync } from "hyphen/fr"; + +// À garder identique à $variable-title-selectors (main.scss), qui masque ces +// titres jusqu'à `is-ready`. +const TITLE_SELECTORS = '\ + #block-leshed-identitedusite>a, \ + article.node-type-projet>header>h2,\ + article.node-type-projet>.cols>.left>h2,\ + article.node-type-projet.view-mode-full h2.node-title,\ + article.node-type-evenement>header>h2,\ + article.node-type-evenement>header>.field_dates>time,\ + article.node-type-evenement.view-mode-full h2.node-title,\ + article.node-type-evenement.view-mode-full .field_dates.digit-dates span.date-part\ + '; + +// Police Epilogue = axe variable `wght` (100–900) uniquement ; l'italique est +// un fichier séparé (font-style). +const TITLE_STYLE = { + // 3 groupes de graisse : thin = majorité (défaut), medium = quelques, + // bold = les pics. Les fines ne sont pas comptées (c'est le reste). + wghtThin: { min: 100, max: 200 }, // majorité (défaut) + wghtMedium: { min: 200, max: 400 }, // quelques + wghtBold: { min: 800, max: 900 }, // pics + boldRatio: 0.28, // proportion de pics gras par mot + mediumRatio: 0.12, // proportion de medium par mot + italicOnBold: 0.6, // proba d'italique sur un pic + italicOnMedium: 0.4, // proba d'italique sur un medium + italicOnThin: 0.30, // proba d'italique sur une fine +}; + +function randomInt(min, max) { + return Math.floor(Math.random() * (max - min)) + min; +} + +function initTitles() { + const titles = document.querySelectorAll(TITLE_SELECTORS); + for (const txt of titles) { + txt.classList.add("variable-title"); + const splitted = Splitting({ target: txt, by: 'chars' }); + for (const word of splitted[0].words) { + const chars = Array.from(word.getElementsByClassName('char')); + styleWordChars(chars); + hyphenateWord(chars); + } + txt.classList.add("is-ready"); + } +} + +/** + * Tire k positions réparties régulièrement dans [0, n[ : le mot est découpé + * en k cases contiguës, une position au hasard par case (aléa contrôlé, pas + * de paquets). Les positions déjà prises par un autre groupe sont évitées. + */ +function spreadPositions(n, k, exclude = new Set()) { + const set = new Set(); + for (let i = 0; i < k; i++) { + const start = Math.floor((i * n) / k); + const end = Math.floor(((i + 1) * n) / k); // borne exclue + const span = Math.max(1, end - start); + let pos = randomInt(start, start + span); + let guard = 0; + while ((exclude.has(pos) || set.has(pos)) && guard < span) { + pos = start + ((pos - start + 1) % span); + guard++; + } + set.add(pos); + } + return set; +} + +/** + * Applique graisse + italique caractère par caractère. + * + * Majorité de fines ; quelques medium et quelques pics gras, chacun réparti + * régulièrement dans le mot. L'italique est corrélé à la graisse. + */ +function styleWordChars(chars) { + const n = chars.length; + if (!n) return; + + // Accents répartis régulièrement : d'abord les pics gras, puis les medium + // (en évitant les positions déjà grasses). Le reste sera fin. + const bold = spreadPositions(n, Math.round(n * TITLE_STYLE.boldRatio)); + const medium = spreadPositions(n, Math.round(n * TITLE_STYLE.mediumRatio), bold); + + // 1) Décide graisse + italique pour chaque caractère. + const decisions = chars.map((char, i) => { + let range, pItal; + if (bold.has(i)) { + range = TITLE_STYLE.wghtBold; + pItal = TITLE_STYLE.italicOnBold; + } + else if (medium.has(i)) { + range = TITLE_STYLE.wghtMedium; + pItal = TITLE_STYLE.italicOnMedium; + } + else { + range = TITLE_STYLE.wghtThin; + pItal = TITLE_STYLE.italicOnThin; + } + return { + char, + wght: randomInt(range.min, range.max + 1), + ital: Math.random() < pItal, + }; + }); + + // 2) Au moins une italique par mot : si aucune, on en force une, de + // préférence sur un pic gras ou un medium, sinon sur une lettre au hasard. + if (!decisions.some((d) => d.ital)) { + const accents = [...bold, ...medium]; + const idx = accents.length ? accents[randomInt(0, accents.length)] : randomInt(0, n); + decisions[idx].ital = true; + } + + // 3) Pas plus de 2 italiques consécutives : on casse les séries de 3+. + let run = 0; + for (const d of decisions) { + if (d.ital) { + run += 1; + if (run > 2) { + d.ital = false; + run = 0; + } + } + else { + run = 0; + } + } + + // 4) Applique. + for (const { char, wght, ital } of decisions) { + char.style.fontVariationSettings = `'wght' ${wght}`; + char.style.fontStyle = ital ? 'italic' : 'normal'; + char.classList.toggle('italic', ital); + char.classList.toggle('normal', !ital); + } +} + +/** + * Insère des césures logicielles (U+00AD) aux points de coupure valides. + * + * Comme chaque lettre est un span (display:inline) sans « run » de texte + * continu, `hyphens: auto` est inopérant : on calcule donc les points de + * césure (motifs FR) et on insère un soft hyphen — en nœud texte, entre les + * lettres concernées — qui n'autorise une coupure (avec tiret) qu'à ces + * endroits. Les mots trop longs coupent proprement au lieu de casser + * n'importe où. + */ +function hyphenateWord(chars) { + if (chars.length < 5) return; + const SOFT = '\u00AD'; + const text = chars.map((c) => c.textContent).join(''); + const hyphenated = hyphenateSync(text); + if (!hyphenated.includes(SOFT)) return; + + let letter = 0; + for (const ch of hyphenated) { + if (ch === SOFT) { + const target = chars[letter]; + if (letter > 0 && target && target.parentNode) { + target.parentNode.insertBefore(document.createTextNode(SOFT), target); + } + } + else { + letter++; + } + } +} + +initTitles(); diff --git a/web/themes/custom/leshed/assets/scss/main.scss b/web/themes/custom/leshed/assets/scss/main.scss index a7d78d2..81bdec4 100644 --- a/web/themes/custom/leshed/assets/scss/main.scss +++ b/web/themes/custom/leshed/assets/scss/main.scss @@ -237,6 +237,39 @@ header[role="banner"]{ // } } +// Titres traités par assets/js/titles.js : garder identique à TITLE_SELECTORS. +$variable-title-selectors: ( + '#block-leshed-identitedusite>a', + 'article.node-type-projet>header>h2', + 'article.node-type-projet>.cols>.left>h2', + 'article.node-type-projet.view-mode-full h2.node-title', + 'article.node-type-evenement>header>h2', + 'article.node-type-evenement>header>.field_dates>time', + 'article.node-type-evenement.view-mode-full h2.node-title', + 'article.node-type-evenement.view-mode-full .field_dates.digit-dates span.date-part', +); + +// Avant le split : même métrique qu'après, pour éviter un saut de mise en page. +:where(#{$variable-title-selectors}):not(.splitting){ + margin: 0; + font-weight: 200; + text-transform: lowercase; + line-height: 1; + letter-spacing: -0.1em; +} + +// Masqués (place conservée) jusqu'au split ; réaffichés après 3 s si le JS échoue. +@media (scripting: enabled){ + :where(#{$variable-title-selectors}):not(.is-ready){ + visibility: hidden; + animation: leshed-title-failsafe 0s 3s forwards; + } +} + +@keyframes leshed-title-failsafe{ + to{ visibility: visible; } +} + @mixin nodeListe{ >header{ diff --git a/web/themes/custom/leshed/leshed.libraries.yml b/web/themes/custom/leshed/leshed.libraries.yml index 677e9c5..15ebba4 100644 --- a/web/themes/custom/leshed/leshed.libraries.yml +++ b/web/themes/custom/leshed/leshed.libraries.yml @@ -1,13 +1,32 @@ # Main theme library. global: js: - assets/dist/main.js: {} + # defer : s'exécute après titles.js (defer dans le head), ordre du document. + assets/dist/main.js: + attributes: + defer: true # assets/js/main.js: {} css: theme: assets/dist/main.css: {} # assets/scss/main.css: {} +# Rendu typographique des titres, au plus tôt (voir assets/js/titles.js). +titles: + header: true + js: + assets/dist/titles.js: + attributes: + defer: true + +titles_hmr: + header: true + js: + http://localhost:5173/assets/js/titles.js: + type: external + attributes: + type: module + vitehmr: js: http://localhost:5173/@vite/client: diff --git a/web/themes/custom/leshed/leshed.theme b/web/themes/custom/leshed/leshed.theme index 363279a..0b825b8 100644 --- a/web/themes/custom/leshed/leshed.theme +++ b/web/themes/custom/leshed/leshed.theme @@ -12,8 +12,29 @@ function leshed_page_attachments_alter(&$page) { // $attachments['#attached']['html_head'][] = [['src' => 'http://localhost:5173/assets/js/main.js', 'type' => 'module'],'vite-main']; // $page['#attached']['library'][] = 'http://localhost:5173/assets/js/main.js'; $page['#attached']['library'][] = 'leshed/vitehmr'; + $page['#attached']['library'][] = 'leshed/titles_hmr'; }else{ $page['#attached']['library'][] = 'leshed/global'; + $page['#attached']['library'][] = 'leshed/titles'; + + // Must match exactly the url() resolved from assets/dist/main.css, or the + // font is downloaded twice. + $fonts_path = base_path() . \Drupal::service('extension.list.theme')->getPath('leshed') . '/assets/dist/fonts/'; + foreach (['Epilogue-VariableFont_wght.ttf', 'Epilogue-Italic-VariableFont_wght.ttf'] as $font) { + $page['#attached']['html_head'][] = [ + [ + '#tag' => 'link', + '#attributes' => [ + 'rel' => 'preload', + 'href' => $fonts_path . $font, + 'as' => 'font', + 'type' => 'font/ttf', + 'crossorigin' => 'anonymous', + ], + ], + 'leshed_preload_' . $font, + ]; + } } } /** diff --git a/web/themes/custom/leshed/vite.config.js b/web/themes/custom/leshed/vite.config.js index 4bb5122..fa011b3 100644 --- a/web/themes/custom/leshed/vite.config.js +++ b/web/themes/custom/leshed/vite.config.js @@ -31,9 +31,13 @@ export default defineConfig({ build: { outDir: 'assets/dist', rollupOptions: { - input: 'assets/js/main.js', + // titles.js est chargé à part dans le (librairie leshed/titles). + input: { + main: 'assets/js/main.js', + titles: 'assets/js/titles.js', + }, output: { - entryFileNames: 'main.js', + entryFileNames: '[name].js', // Sans distinction d'extension, tous les assets émis (CSS mais aussi // les polices référencées en url() dans fonts.scss) écrasaient le // même fichier main.css au hasard de l'ordre de build.