@zenpatient-org/healthspan-marketing-ui 0.2.75 → 0.2.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +1 -2
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +1 -2
- package/dist/components/AdvancedGallery/AdvancedGallery.d.ts +0 -1
- package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +1 -2
- package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.d.ts +0 -1
- package/dist/components/AnchorLinks/AnchorLinks.d.ts +0 -1
- package/dist/components/AnchorLinks/types.d.ts +0 -1
- package/dist/components/Benefit/Benefit.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Callback/Callback.d.ts +2 -3
- package/dist/components/Callback/constants.d.ts +2 -3
- package/dist/components/Checkbox/Checkbox.cjs.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.es.js +34 -42
- package/dist/components/Checkbox/checkbox.module.css +15 -4
- package/dist/components/ClaimBlock/ClaimBlock.d.ts +1 -2
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.d.ts +0 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +0 -1
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.d.ts +0 -1
- package/dist/components/ComplexImageCarousel/useComplexImageCarousel.d.ts +0 -1
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +3 -4
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts +1 -2
- package/dist/components/ComplexTooltip/types.d.ts +1 -2
- package/dist/components/ContentTabs/ContentTabs.d.ts +2 -3
- package/dist/components/Cursor/Cursor.d.ts +1 -2
- package/dist/components/Cursor/components/ClientCursor.d.ts +1 -2
- package/dist/components/Cursor/components/ServerCursor.d.ts +1 -2
- package/dist/components/FAQComponent/FAQComponent.d.ts +0 -1
- package/dist/components/FAQComponent/types.d.ts +0 -1
- package/dist/components/FAQComponentItem/FAQComponentItem.d.ts +0 -1
- package/dist/components/FAQComponentItem/types.d.ts +1 -2
- package/dist/components/FilterError/FilterError.d.ts +0 -1
- package/dist/components/FilterMenu/FilterMenu.d.ts +1 -2
- package/dist/components/HighlightCard/HighlightCard.d.ts +1 -2
- package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +3 -4
- package/dist/components/Icon/Icon.d.ts +0 -1
- package/dist/components/Icon/iconsMap.d.ts +0 -1
- package/dist/components/IconBracket/IconBracket.d.ts +0 -1
- package/dist/components/IconBracket/types.d.ts +0 -1
- package/dist/components/IconButton/IconButton.d.ts +2 -3
- package/dist/components/ImageGallery/ImageGallery.d.ts +0 -1
- package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +1 -2
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +1 -2
- package/dist/components/Label/Label.d.ts +1 -2
- package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.d.ts +0 -1
- package/dist/components/PlayButton/PlayButton.d.ts +1 -2
- package/dist/components/PriceDisplay/PriceDisplay.d.ts +1 -2
- package/dist/components/Pricing/Pricing.d.ts +0 -1
- package/dist/components/Pricing/components/BenefitItem/BenefitItem.d.ts +1 -2
- package/dist/components/Pricing/types.d.ts +3 -4
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -2
- package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +1 -2
- package/dist/components/ProductGalleryCard/types.d.ts +1 -2
- package/dist/components/ProductListing/ProductListing.d.ts +2 -3
- package/dist/components/ProductPairs/ProductPairs.d.ts +0 -1
- package/dist/components/ProgressButton/ProgressButton.d.ts +2 -3
- package/dist/components/Quote/Quote.d.ts +1 -2
- package/dist/components/StepsCarousel/StepsCarousel.d.ts +1 -2
- package/dist/components/StudyGridCard/StudyGridCard.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +1 -2
- package/dist/components/Tabs/TabsWithFade.d.ts +0 -1
- package/dist/components/Tabs/types.d.ts +1 -2
- package/dist/components/Tag/Tag.d.ts +2 -3
- package/dist/components/TextButton/TextButton.d.ts +2 -3
- package/dist/components/TextInput/TextInput.d.ts +0 -1
- package/dist/components/Typography/Typography.d.ts +2 -2
- package/dist/lib/useSwiper.d.ts +2 -3
- package/dist/modules/BasicImageText/BasicImageText.d.ts +1 -2
- package/dist/modules/Benefits/Benefits.d.ts +0 -1
- package/dist/modules/CallToAction/CallToAction.d.ts +0 -1
- package/dist/modules/Callback/Callback.d.ts +1 -2
- package/dist/modules/Claims/Claims.d.ts +0 -1
- package/dist/modules/Compare/Compare.d.ts +0 -1
- package/dist/modules/Compare/types.d.ts +2 -3
- package/dist/modules/Comparison/Comparison.d.ts +2 -3
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +1 -2
- package/dist/modules/ComparisonV2/ComparisonV2.d.ts +1 -2
- package/dist/modules/ContentHighlight/ContentHighlight.d.ts +1 -2
- package/dist/modules/Curiosity/Curiosity.d.ts +0 -1
- package/dist/modules/CursorImageBlock/CursorImageBlock.d.ts +1 -2
- package/dist/modules/ExpandingDetails/ExpandingDetails.d.ts +0 -1
- package/dist/modules/ExpandingDetails/types.d.ts +0 -1
- package/dist/modules/FAQModule/FAQModule.d.ts +0 -1
- package/dist/modules/FAQModule/types.d.ts +0 -1
- package/dist/modules/FeaturesGallery/FeaturesGallery.d.ts +2 -3
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.d.ts +1 -2
- package/dist/modules/FollowTheScience/FollowTheScience.d.ts +0 -1
- package/dist/modules/HSModal/HSModal.d.ts +0 -1
- package/dist/modules/HSModal/components/MailchimpModal/MailchimpModal.d.ts +0 -1
- package/dist/modules/HSModal/components/MailchimpModal/components/Newsletter/Newsletter.d.ts +0 -1
- package/dist/modules/HSModal/types.d.ts +0 -1
- package/dist/modules/HSModal/useHSModal.cjs.js +1 -1
- package/dist/modules/HSModal/useHSModal.es.js +1 -1
- package/dist/modules/HighestStandards/HighestStandards.d.ts +0 -1
- package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.d.ts +0 -1
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.d.ts +0 -1
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/types.d.ts +1 -2
- package/dist/modules/HighestStandards/types.d.ts +0 -1
- package/dist/modules/Highlight/Highlight.d.ts +1 -2
- package/dist/modules/HowItWorks/components/Content/Content.d.ts +0 -1
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.d.ts +0 -1
- package/dist/modules/ImageWithText/ImageWithText.d.ts +0 -1
- package/dist/modules/ImageWithText/components/ButtonWithColors/ButtonWithColors.d.ts +0 -1
- package/dist/modules/ImageWithText/types.d.ts +1 -2
- package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -3
- package/dist/modules/IndividualProductCard/components/Features/Features.d.ts +1 -2
- package/dist/modules/IndividualProductCard/components/PlanCard/PlanCard.d.ts +1 -2
- package/dist/modules/IndividualProductCard/types.d.ts +2 -3
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.d.ts +0 -1
- package/dist/modules/IndividualProductCardV2/types.d.ts +0 -1
- package/dist/modules/IngredientHighlight/IngredientHighlight.d.ts +0 -1
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.d.ts +0 -1
- package/dist/modules/LongevityPathways/LongevityPathways.d.ts +0 -1
- package/dist/modules/LongevityPathways/types.d.ts +0 -1
- package/dist/modules/OptimalHealth/OptimalHealth.d.ts +2 -3
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.d.ts +1 -2
- package/dist/modules/OurProcess/OurProcess.d.ts +3 -4
- package/dist/modules/PairedProducts/PairedProducts.d.ts +1 -2
- package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +1 -2
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -2
- package/dist/modules/ProductsDisplay/types.d.ts +1 -2
- package/dist/modules/ProductsDisplay/useProductsData.d.ts +3 -4
- package/dist/modules/ProgramDetails/ProgramDetails.d.ts +0 -1
- package/dist/modules/ProgramDetails/components/Features/Features.d.ts +1 -2
- package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.d.ts +0 -1
- package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.d.ts +1 -2
- package/dist/modules/ResearchFeatured/ResearchFeatured.d.ts +1 -2
- package/dist/modules/ResearchFeatured/components/FeaturedArticle/FeaturedArticle.d.ts +1 -2
- package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.d.ts +1 -2
- package/dist/modules/ResearchFilters/ResearchFilters.d.ts +1 -2
- package/dist/modules/ResearchStudies/ResearchStudies.d.ts +1 -2
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.d.ts +1 -2
- package/dist/modules/Reviews/Reviews.d.ts +0 -1
- package/dist/modules/Reviews/components/ReviewCard/ReviewCard.d.ts +0 -1
- package/dist/modules/Reviews/components/ReviewList/ReviewList.d.ts +1 -2
- package/dist/modules/ScienceHero/ScienceHeroCursor.d.ts +1 -2
- package/dist/modules/ScienceHero/components/ScienceClientCursor.d.ts +1 -2
- package/dist/modules/ScienceHero/components/ScienceServerCursor.d.ts +1 -2
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +2 -3
- package/dist/modules/StillHaveQuestions/StillHaveQuestions.d.ts +1 -2
- package/dist/modules/StillHaveQuestions/constants.d.ts +0 -1
- package/dist/modules/Studies/Studies.d.ts +2 -3
- package/dist/modules/TargetedPrograms/TargetedPrograms.d.ts +1 -2
- package/dist/modules/Testimonial/Testimonial.d.ts +1 -2
- package/dist/modules/Testimonial/components/TextCard/TextCard.d.ts +0 -1
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +0 -1
- package/dist/modules/TextTwoImages/TextTwoImages.d.ts +1 -2
- package/dist/modules/ThreeCardsWithHero/ThreeCardsWithHero.d.ts +1 -2
- package/dist/modules/TotalCare/TotalCare.d.ts +3 -4
- package/dist/modules/TrackProgress/TrackProgress.d.ts +0 -1
- package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.d.ts +0 -1
- package/dist/modules/TypesOfTests/TypesOfTests.d.ts +2 -3
- package/dist/modules/YourProtocol/YourProtocol.d.ts +3 -4
- package/dist/modules/YourProtocol/types.d.ts +0 -1
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.cjs.js +1 -1
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.es.js +2 -2
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.cjs.js +19 -19
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.es.js +270 -270
- package/dist/node_modules/gsap/CustomEase.cjs.js +1 -1
- package/dist/node_modules/gsap/CustomEase.es.js +2 -2
- package/dist/node_modules/gsap/Draggable.cjs.js +1 -1
- package/dist/node_modules/gsap/Draggable.es.js +6 -6
- package/dist/node_modules/gsap/Flip.cjs.js +1 -1
- package/dist/node_modules/gsap/Flip.es.js +6 -6
- package/dist/node_modules/gsap/Observer.cjs.js +1 -1
- package/dist/node_modules/gsap/Observer.es.js +2 -2
- package/dist/node_modules/gsap/ScrollTrigger.cjs.js +1 -1
- package/dist/node_modules/gsap/ScrollTrigger.es.js +2 -2
- package/dist/node_modules/gsap/utils/matrix.cjs.js +1 -1
- package/dist/node_modules/gsap/utils/matrix.es.js +2 -2
- package/dist/pageComponents/Banner/Banner.d.ts +1 -2
- package/dist/pageComponents/Footer/Footer.d.ts +0 -1
- package/dist/pageComponents/ScrollingFeatures/ScrollingFeatures.d.ts +0 -1
- package/dist/types/articles.d.ts +0 -1
- package/dist/utils/isHsIcon.d.ts +0 -1
- package/package.json +38 -38
- package/dist/components/Checkbox/assets/checkbox-checkmark.svg.cjs.js +0 -1
- package/dist/components/Checkbox/assets/checkbox-checkmark.svg.es.js +0 -5
- package/dist/components/Checkbox/assets/checkbox-dash.svg.cjs.js +0 -1
- package/dist/components/Checkbox/assets/checkbox-dash.svg.es.js +0 -5
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
6
|
* Subject to the terms at https://gsap.com/standard-license
|
|
7
7
|
* @author: Jack Doyle, jack@greensock.com
|
|
8
|
-
*/var d,O,q=function(){return d||typeof window!="undefined"&&(d=window.gsap)&&d.registerPlugin&&d},j=function(){d=q(),d?(d.registerEase("_CE",E.create),O=1):console.warn("Please gsap.registerPlugin(CustomEase)")},I=1e20,C=function(n){return~~(n*1e3+(n<0?-.5:.5))/1e3},R=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,k=/[cLlsSaAhHvVtTqQ]/g,v=function(n){var m=n.length,e=I,r;for(r=1;r<m;r+=6)+n[r]<e&&(e=+n[r]);return e},H=function(n,m,e){!e&&e!==0&&(e=Math.max(+n[n.length-1],+n[1]));var r=+n[0]*-1,o=-e,c=n.length,i=1/(+n[c-2]+r),s=-m||(Math.abs(+n[c-1]-+n[1])<.01*(+n[c-2]-+n[0])?v(n)+o:+n[c-1]+o),y;for(s?s=1/s:s=-i,y=0;y<c;y+=2)n[y]=(+n[y]+r)*i,n[y+1]=(+n[y+1]+o)*s},L=function g(n,m,e,r,o,c,i,s,y,u,a){var x=(n+e)/2,_=(m+r)/2,t=(e+o)/2,M=(r+c)/2,l=(o+i)/2,f=(c+s)/2,h=(x+t)/2,p=(_+M)/2,w=(t+l)/2,P=(M+f)/2,D=(h+w)/2,G=(p+P)/2,b=i-n,S=s-m,V=Math.abs((e-i)*S-(r-s)*b),A=Math.abs((o-i)*S-(c-s)*b),z;return u||(u=[{x:n,y:m},{x:i,y:s}],a=1),u.splice(a||u.length-1,0,{x:D,y:G}),(V+A)*(V+A)>y*(b*b+S*S)&&(z=u.length,g(n,m,x,_,h,p,D,G,y,u,a),g(D,G,w,P,l,f,i,s,y,u,a+1+(u.length-z))),u},E=function(){function g(m,e,r){O||j(),this.id=m,this.setData(e,r)}var n=g.prototype;return n.setData=function(e,r){r=r||{},e=e||"0,0,1,1";var o=e.match(R),c=1,i=[],s=[],y=r.precision||1,u=y<=1,a,x,_,t,M,l,f,h,p;if(this.data=e,(k.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(o=T.stringToRawPath(e)[0]),a=o.length,a===4)o.unshift(0,0),o.push(1,1),a=8;else if((a-2)%6)throw"Invalid CustomEase";for((+o[0]!=0||+o[a-2]!=1)&&H(o,r.height,r.originY),this.segment=o,t=2;t<a;t+=6)x={x:+o[t-2],y:+o[t-1]},_={x:+o[t+4],y:+o[t+5]},i.push(x,_),L(x.x,x.y,+o[t],+o[t+1],+o[t+2],+o[t+3],_.x,_.y,1/(y*2e5),i,i.length-1);for(a=i.length,t=0;t<a;t++)f=i[t],h=i[t-1]||f,(f.x>h.x||h.y!==f.y&&h.x===f.x||f===h)&&f.x<=1?(h.cx=f.x-h.x,h.cy=f.y-h.y,h.n=f,h.nx=f.x,u&&t>1&&Math.abs(h.cy/h.cx-i[t-2].cy/i[t-2].cx)>2&&(u=0),h.cx<c&&(h.cx?c=h.cx:(h.cx=.001,t===a-1&&(h.x-=.001,c=Math.min(c,.001),u=0)))):(i.splice(t--,1),a--);if(a=1/c+1|0,M=1/a,l=0,f=i[0],u){for(t=0;t<a;t++)p=t*M,f.nx<p&&(f=i[++l]),x=f.y+(p-f.x)/f.cx*f.cy,s[t]={x:p,cx:M,y:x,cy:0,nx:9},t&&(s[t-1].cy=x-s[t-1].y);l=i[i.length-1],s[a-1].cy=l.y-x,s[a-1].cx=l.x-s[s.length-1].x}else{for(t=0;t<a;t++)f.nx<t*M&&(f=i[++l]),s[t]=f;l<i.length-1&&(s[t-1]=i[i.length-2])}return this.ease=function(w){var P=s[w*a|0]||s[a-1];return P.nx<w&&(P=P.n),P.y+(w-P.x)/P.cx*P.cy},this.ease.custom=this,this.id&&d&&d.registerEase(this.id,this.ease),this},n.getSVGData=function(e){return g.getSVGData(this,e)},g.create=function(e,r,o){return new g(e,r,o).ease},g.register=function(e){d=e,j()},g.get=function(e){return d.parseEase(e)},g.getSVGData=function(e,r){r=r||{};var o=r.width||100,c=r.height||100,i=r.x||0,s=(r.y||0)+c,y=d.utils.toArray(r.path)[0],u,a,x,_,t,M,l,f,h,p;if(r.invert&&(c=-c,s=0),typeof e=="string"&&(e=d.parseEase(e)),e.custom&&(e=e.custom),e instanceof g)u=T.rawPathToString(T.transformRawPath([e.segment],o,0,0,-c,i,s));else{for(u=[i,s],l=Math.max(5,(r.precision||1)*200),_=1/l,l+=2,f=5/l,h=C(i+_*o),p=C(s+e(_)*-c),a=(p-s)/(h-i),x=2;x<l;x++)t=C(i+x*_*o),M=C(s+e(x*_)*-c),(Math.abs((M-p)/(t-h)-a)>f||x===l-1)&&(u.push(h,p),a=(M-p)/(t-h)),h=t,p=M;u="M"+u.join(",")}return y&&y.setAttribute("d",u),u},g}();E.version="3.13.0";E.headless=!0;q()&&d.registerPlugin(E);exports.CustomEase=E;exports.default=E;
|
|
8
|
+
*/var d,O,q=function(){return d||typeof window!="undefined"&&(d=window.gsap)&&d.registerPlugin&&d},j=function(){d=q(),d?(d.registerEase("_CE",E.create),O=1):console.warn("Please gsap.registerPlugin(CustomEase)")},I=1e20,C=function(n){return~~(n*1e3+(n<0?-.5:.5))/1e3},R=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,k=/[cLlsSaAhHvVtTqQ]/g,v=function(n){var m=n.length,e=I,r;for(r=1;r<m;r+=6)+n[r]<e&&(e=+n[r]);return e},H=function(n,m,e){!e&&e!==0&&(e=Math.max(+n[n.length-1],+n[1]));var r=+n[0]*-1,o=-e,c=n.length,i=1/(+n[c-2]+r),s=-m||(Math.abs(+n[c-1]-+n[1])<.01*(+n[c-2]-+n[0])?v(n)+o:+n[c-1]+o),y;for(s?s=1/s:s=-i,y=0;y<c;y+=2)n[y]=(+n[y]+r)*i,n[y+1]=(+n[y+1]+o)*s},L=function g(n,m,e,r,o,c,i,s,y,u,a){var x=(n+e)/2,_=(m+r)/2,t=(e+o)/2,M=(r+c)/2,l=(o+i)/2,f=(c+s)/2,h=(x+t)/2,p=(_+M)/2,w=(t+l)/2,P=(M+f)/2,D=(h+w)/2,G=(p+P)/2,b=i-n,S=s-m,V=Math.abs((e-i)*S-(r-s)*b),A=Math.abs((o-i)*S-(c-s)*b),z;return u||(u=[{x:n,y:m},{x:i,y:s}],a=1),u.splice(a||u.length-1,0,{x:D,y:G}),(V+A)*(V+A)>y*(b*b+S*S)&&(z=u.length,g(n,m,x,_,h,p,D,G,y,u,a),g(D,G,w,P,l,f,i,s,y,u,a+1+(u.length-z))),u},E=(function(){function g(m,e,r){O||j(),this.id=m,this.setData(e,r)}var n=g.prototype;return n.setData=function(e,r){r=r||{},e=e||"0,0,1,1";var o=e.match(R),c=1,i=[],s=[],y=r.precision||1,u=y<=1,a,x,_,t,M,l,f,h,p;if(this.data=e,(k.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(o=T.stringToRawPath(e)[0]),a=o.length,a===4)o.unshift(0,0),o.push(1,1),a=8;else if((a-2)%6)throw"Invalid CustomEase";for((+o[0]!=0||+o[a-2]!=1)&&H(o,r.height,r.originY),this.segment=o,t=2;t<a;t+=6)x={x:+o[t-2],y:+o[t-1]},_={x:+o[t+4],y:+o[t+5]},i.push(x,_),L(x.x,x.y,+o[t],+o[t+1],+o[t+2],+o[t+3],_.x,_.y,1/(y*2e5),i,i.length-1);for(a=i.length,t=0;t<a;t++)f=i[t],h=i[t-1]||f,(f.x>h.x||h.y!==f.y&&h.x===f.x||f===h)&&f.x<=1?(h.cx=f.x-h.x,h.cy=f.y-h.y,h.n=f,h.nx=f.x,u&&t>1&&Math.abs(h.cy/h.cx-i[t-2].cy/i[t-2].cx)>2&&(u=0),h.cx<c&&(h.cx?c=h.cx:(h.cx=.001,t===a-1&&(h.x-=.001,c=Math.min(c,.001),u=0)))):(i.splice(t--,1),a--);if(a=1/c+1|0,M=1/a,l=0,f=i[0],u){for(t=0;t<a;t++)p=t*M,f.nx<p&&(f=i[++l]),x=f.y+(p-f.x)/f.cx*f.cy,s[t]={x:p,cx:M,y:x,cy:0,nx:9},t&&(s[t-1].cy=x-s[t-1].y);l=i[i.length-1],s[a-1].cy=l.y-x,s[a-1].cx=l.x-s[s.length-1].x}else{for(t=0;t<a;t++)f.nx<t*M&&(f=i[++l]),s[t]=f;l<i.length-1&&(s[t-1]=i[i.length-2])}return this.ease=function(w){var P=s[w*a|0]||s[a-1];return P.nx<w&&(P=P.n),P.y+(w-P.x)/P.cx*P.cy},this.ease.custom=this,this.id&&d&&d.registerEase(this.id,this.ease),this},n.getSVGData=function(e){return g.getSVGData(this,e)},g.create=function(e,r,o){return new g(e,r,o).ease},g.register=function(e){d=e,j()},g.get=function(e){return d.parseEase(e)},g.getSVGData=function(e,r){r=r||{};var o=r.width||100,c=r.height||100,i=r.x||0,s=(r.y||0)+c,y=d.utils.toArray(r.path)[0],u,a,x,_,t,M,l,f,h,p;if(r.invert&&(c=-c,s=0),typeof e=="string"&&(e=d.parseEase(e)),e.custom&&(e=e.custom),e instanceof g)u=T.rawPathToString(T.transformRawPath([e.segment],o,0,0,-c,i,s));else{for(u=[i,s],l=Math.max(5,(r.precision||1)*200),_=1/l,l+=2,f=5/l,h=C(i+_*o),p=C(s+e(_)*-c),a=(p-s)/(h-i),x=2;x<l;x++)t=C(i+x*_*o),M=C(s+e(x*_)*-c),(Math.abs((M-p)/(t-h)-a)>f||x===l-1)&&(u.push(h,p),a=(M-p)/(t-h)),h=t,p=M;u="M"+u.join(",")}return y&&y.setAttribute("d",u),u},g})();E.version="3.13.0";E.headless=!0;q()&&d.registerPlugin(E);exports.CustomEase=E;exports.default=E;
|
|
@@ -35,7 +35,7 @@ var d, j, I = function() {
|
|
|
35
35
|
x: D,
|
|
36
36
|
y: G
|
|
37
37
|
}), (V + A) * (V + A) > y * (E * E + b * b) && (T = x.length, g(r, l, u, _, o, p, D, G, y, x, f), g(D, G, M, w, m, a, i, s, y, x, f + 1 + (x.length - T))), x;
|
|
38
|
-
}, C = /* @__PURE__ */ function() {
|
|
38
|
+
}, C = /* @__PURE__ */ (function() {
|
|
39
39
|
function g(l, e, n) {
|
|
40
40
|
j || z(), this.id = l, this.setData(e, n);
|
|
41
41
|
}
|
|
@@ -96,7 +96,7 @@ var d, j, I = function() {
|
|
|
96
96
|
}
|
|
97
97
|
return y && y.setAttribute("d", x), x;
|
|
98
98
|
}, g;
|
|
99
|
-
}();
|
|
99
|
+
})();
|
|
100
100
|
C.version = "3.13.0";
|
|
101
101
|
C.headless = !0;
|
|
102
102
|
I() && d.registerPlugin(C);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _e=require("./utils/matrix.cjs.js");function Gt(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function ui(h,t){h.prototype=Object.create(t.prototype),h.prototype.constructor=h,h.__proto__=t}var v,Y,te,de,be,Tt,ve,Pt,et,ke,ei,kt,rt,Yt,tt,ce,it,ht,ti,Lt,gt=0,ii=function(){return typeof window!="undefined"},oi=function(){return v||ii()&&(v=window.gsap)&&v.registerPlugin&&v},Pe=function(t){return typeof t=="function"},ot=function(t){return typeof t=="object"},ue=function(t){return typeof t=="undefined"},pt=function(){return!1},nt="transform",Ct="transformOrigin",Se=function(t){return Math.round(t*1e4)/1e4},je=Array.isArray,ut=function(t,n){var i=te.createElementNS?te.createElementNS("http://www.w3.org/1999/xhtml".replace(/^https/,"http"),t):te.createElement(t);return i.style?i:te.createElement(t)},zt=180/Math.PI,Ae=1e20,di=new _e.Matrix2D,Ee=Date.now||function(){return new Date().getTime()},Be=[],Ge={},hi=0,pi=/^(?:a|input|textarea|button|select)$/i,Qt=0,He={},we={},ni=function(t,n){var i={},l;for(l in t)i[l]=n?t[l]*n:t[l];return i},gi=function(t,n){for(var i in n)i in t||(t[i]=n[i]);return t},Vt=function h(t,n){for(var i=t.length,l;i--;)n?t[i].style.touchAction=n:t[i].style.removeProperty("touch-action"),l=t[i].children,l&&l.length&&h(l,n)},ri=function(){return Be.forEach(function(t){return t()})},xi=function(t){Be.push(t),Be.length===1&&v.ticker.add(ri)},Kt=function(){return!Be.length&&v.ticker.remove(ri)},Ut=function(t){for(var n=Be.length;n--;)Be[n]===t&&Be.splice(n,1);v.to(Kt,{overwrite:!0,delay:15,duration:0,onComplete:Kt,data:"_draggable"})},yi=function(t,n){for(var i in n)i in t||(t[i]=n[i]);return t},V=function(t,n,i,l){if(t.addEventListener){var f=rt[n];l=l||(ei?{passive:!1}:null),t.addEventListener(f||n,i,l),f&&n!==f&&t.addEventListener(n,i,l)}},G=function(t,n,i,l){if(t.removeEventListener){var f=rt[n];t.removeEventListener(f||n,i,l),f&&n!==f&&t.removeEventListener(n,i,l)}},re=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},mi=function(t,n){for(var i=t.length;i--;)if(t[i].identifier===n)return!0},wi=function h(t){Yt=t.touches&><t.touches.length,G(t.target,"touchend",h)},$t=function(t){Yt=t.touches&><t.touches.length,V(t.target,"touchend",wi)},ze=function(t){return Y.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},Qe=function(t){return Y.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},qt=function h(t,n){V(t,"scroll",n),Ve(t.parentNode)||h(t.parentNode,n)},Jt=function h(t,n){G(t,"scroll",n),Ve(t.parentNode)||h(t.parentNode,n)},Ve=function(t){return!t||t===de||t.nodeType===9||t===te.body||t===Y||!t.nodeType||!t.parentNode},Zt=function(t,n){var i=n==="x"?"Width":"Height",l="scroll"+i,f="client"+i;return Math.max(0,Ve(t)?Math.max(de[l],be[l])-(Y["inner"+i]||de[f]||be[f]):t[l]-t[f])},Mt=function h(t,n){var i=Zt(t,"x"),l=Zt(t,"y");Ve(t)?t=we:h(t.parentNode,n),t._gsMaxScrollX=i,t._gsMaxScrollY=l,n||(t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0)},Dt=function(t,n,i){var l=t.style;l&&(ue(l[n])&&(n=et(n,t)||n),i==null?l.removeProperty&&l.removeProperty(n.replace(/([A-Z])/g,"-$1").toLowerCase()):l[n]=i)},lt=function(t){return Y.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Ie={},We=function(t){if(t===Y)return Ie.left=Ie.top=0,Ie.width=Ie.right=de.clientWidth||t.innerWidth||be.clientWidth||0,Ie.height=Ie.bottom=(t.innerHeight||0)-20<de.clientHeight?de.clientHeight:t.innerHeight||be.clientHeight||0,Ie;var n=t.ownerDocument||te,i=ue(t.pageX)?!t.nodeType&&!ue(t.left)&&!ue(t.top)?t:ke(t)[0].getBoundingClientRect():{left:t.pageX-Qe(n),top:t.pageY-ze(n),right:t.pageX-Qe(n)+1,bottom:t.pageY-ze(n)+1};return ue(i.right)&&!ue(i.width)?(i.right=i.left+i.width,i.bottom=i.top+i.height):ue(i.width)&&(i={width:i.right-i.left,height:i.bottom-i.top,right:i.right,left:i.left,bottom:i.bottom,top:i.top}),i},F=function(t,n,i){var l=t.vars,f=l[i],x=t._listeners[n],c;return Pe(f)&&(c=f.apply(l.callbackScope||t,l[i+"Params"]||[t.pointerEvent])),x&&t.dispatchEvent(n)===!1&&(c=!1),c},jt=function(t,n){var i=ke(t)[0],l,f,x;return!i.nodeType&&i!==Y?ue(t.left)?(f=t.min||t.minX||t.minRotation||0,l=t.min||t.minY||0,{left:f,top:l,width:(t.max||t.maxX||t.maxRotation||0)-f,height:(t.max||t.maxY||0)-l}):(x={x:0,y:0},{left:t.left-x.x,top:t.top-x.y,width:t.width,height:t.height}):_i(i,n)},le={},_i=function(t,n){n=ke(n)[0];var i=t.getBBox&&t.ownerSVGElement,l=t.ownerDocument||te,f,x,c,L,T,_,M,S,e,y,R,J,N;if(t===Y)c=ze(l),f=Qe(l),x=f+(l.documentElement.clientWidth||t.innerWidth||l.body.clientWidth||0),L=c+((t.innerHeight||0)-20<l.documentElement.clientHeight?l.documentElement.clientHeight:t.innerHeight||l.body.clientHeight||0);else{if(n===Y||ue(n))return t.getBoundingClientRect();f=c=0,i?(y=t.getBBox(),R=y.width,J=y.height):(t.viewBox&&(y=t.viewBox.baseVal)&&(f=y.x||0,c=y.y||0,R=y.width,J=y.height),R||(N=lt(t),y=N.boxSizing==="border-box",R=(parseFloat(N.width)||t.clientWidth||0)+(y?0:parseFloat(N.borderLeftWidth)+parseFloat(N.borderRightWidth)),J=(parseFloat(N.height)||t.clientHeight||0)+(y?0:parseFloat(N.borderTopWidth)+parseFloat(N.borderBottomWidth)))),x=R,L=J}return t===n?{left:f,top:c,width:x-f,height:L-c}:(T=_e.getGlobalMatrix(n,!0).multiply(_e.getGlobalMatrix(t)),_=T.apply({x:f,y:c}),M=T.apply({x,y:c}),S=T.apply({x,y:L}),e=T.apply({x:f,y:L}),f=Math.min(_.x,M.x,S.x,e.x),c=Math.min(_.y,M.y,S.y,e.y),{left:f,top:c,width:Math.max(_.x,M.x,S.x,e.x)-f,height:Math.max(_.y,M.y,S.y,e.y)-c})},St=function(t,n,i,l,f,x){var c={},L,T,_;if(n)if(f!==1&&n instanceof Array){if(c.end=L=[],_=n.length,ot(n[0]))for(T=0;T<_;T++)L[T]=ni(n[T],f);else for(T=0;T<_;T++)L[T]=n[T]*f;i+=1.1,l-=1.1}else Pe(n)?c.end=function(M){var S=n.call(t,M),e,y;if(f!==1)if(ot(S)){e={};for(y in S)e[y]=S[y]*f;S=e}else S*=f;return S}:c.end=n;return(i||i===0)&&(c.max=i),(l||l===0)&&(c.min=l),x&&(c.velocity=0),c},vi=function h(t){var n;return!t||!t.getAttribute||t===be?!1:(n=t.getAttribute("data-clickable"))==="true"||n!=="false"&&(pi.test(t.nodeName+"")||t.getAttribute("contentEditable")==="true")?!0:h(t.parentNode)},dt=function(t,n){for(var i=t.length,l;i--;)l=t[i],l.ondragstart=l.onselectstart=n?null:pt,v.set(l,{lazy:!0,userSelect:n?"text":"none"})},bi=function h(t){if(lt(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return h(t)},li,Xt,Ti=function(t,n){t=v.utils.toArray(t)[0],n=n||{};var i=document.createElement("div"),l=i.style,f=t.firstChild,x=0,c=0,L=t.scrollTop,T=t.scrollLeft,_=t.scrollWidth,M=t.scrollHeight,S=0,e=0,y=0,R,J,N,Le,Ce,Xe;li&&n.force3D!==!1?(Ce="translate3d(",Xe="px,0px)"):nt&&(Ce="translate(",Xe="px)"),this.scrollTop=function(E,j){if(!arguments.length)return-this.top();this.top(-E,j)},this.scrollLeft=function(E,j){if(!arguments.length)return-this.left();this.left(-E,j)},this.left=function(E,j){if(!arguments.length)return-(t.scrollLeft+c);var I=t.scrollLeft-T,D=c;if((I>2||I<-2)&&!j){T=t.scrollLeft,v.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-T),n.onKill&&n.onKill();return}E=-E,E<0?(c=E-.5|0,E=0):E>e?(c=E-e|0,E=e):c=0,(c||D)&&(this._skip||(l[nt]=Ce+-c+"px,"+-x+Xe),c+S>=0&&(l.paddingRight=c+S+"px")),t.scrollLeft=E|0,T=t.scrollLeft},this.top=function(E,j){if(!arguments.length)return-(t.scrollTop+x);var I=t.scrollTop-L,D=x;if((I>2||I<-2)&&!j){L=t.scrollTop,v.killTweensOf(this,{top:1,scrollTop:1}),this.top(-L),n.onKill&&n.onKill();return}E=-E,E<0?(x=E-.5|0,E=0):E>y?(x=E-y|0,E=y):x=0,(x||D)&&(this._skip||(l[nt]=Ce+-c+"px,"+-x+Xe)),t.scrollTop=E|0,L=t.scrollTop},this.maxScrollTop=function(){return y},this.maxScrollLeft=function(){return e},this.disable=function(){for(f=i.firstChild;f;)Le=f.nextSibling,t.appendChild(f),f=Le;t===i.parentNode&&t.removeChild(i)},this.enable=function(){if(f=t.firstChild,f!==i){for(;f;)Le=f.nextSibling,i.appendChild(f),f=Le;t.appendChild(i),this.calibrate()}},this.calibrate=function(E){var j=t.clientWidth===R,I,D,xe;L=t.scrollTop,T=t.scrollLeft,!(j&&t.clientHeight===J&&i.offsetHeight===N&&_===t.scrollWidth&&M===t.scrollHeight&&!E)&&((x||c)&&(D=this.left(),xe=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),I=lt(t),(!j||E)&&(l.display="block",l.width="auto",l.paddingRight="0px",S=Math.max(0,t.scrollWidth-t.clientWidth),S&&(S+=parseFloat(I.paddingLeft)+(Xt?parseFloat(I.paddingRight):0))),l.display="inline-block",l.position="relative",l.overflow="visible",l.verticalAlign="top",l.boxSizing="content-box",l.width="100%",l.paddingRight=S+"px",Xt&&(l.paddingBottom=I.paddingBottom),R=t.clientWidth,J=t.clientHeight,_=t.scrollWidth,M=t.scrollHeight,e=t.scrollWidth-R,y=t.scrollHeight-J,N=i.offsetHeight,l.display="block",(D||xe)&&(this.left(D),this.top(xe)))},this.content=i,this.element=t,this._skip=!1,this.enable()},Et=function(t){if(ii()&&document.body){var n=window&&window.navigator;Y=window,te=document,de=te.documentElement,be=te.body,Tt=ut("div"),ht=!!window.PointerEvent,ve=ut("div"),ve.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",it=ve.style.cursor==="grab"?"grab":"move",tt=n&&n.userAgent.toLowerCase().indexOf("android")!==-1,kt="ontouchstart"in de&&"orientation"in Y||n&&(n.MaxTouchPoints>0||n.msMaxTouchPoints>0),Xt=function(){var i=ut("div"),l=ut("div"),f=l.style,x=be,c;return f.display="inline-block",f.position="relative",i.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",i.appendChild(l),x.appendChild(i),c=l.offsetHeight+18>i.scrollHeight,x.removeChild(i),c}(),rt=function(i){for(var l=i.split(","),f=("onpointerdown"in Tt?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Tt?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":i).split(","),x={},c=4;--c>-1;)x[l[c]]=f[c],x[f[c]]=l[c];try{de.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){ei=1}}))}catch{}return x}("touchstart,touchmove,touchend,touchcancel"),V(te,"touchcancel",pt),V(Y,"touchmove",pt),be&&be.addEventListener("touchstart",pt),V(te,"contextmenu",function(){for(var i in Ge)Ge[i].isPressed&&Ge[i].endDrag()}),v=Pt=oi()}v?(ce=v.plugins.inertia,ti=v.core.context||function(){},et=v.utils.checkPrefix,nt=et(nt),Ct=et(Ct),ke=v.utils.toArray,Lt=v.core.getStyleSaver,li=!!et("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},Mi=function(){function h(n){this._listeners={},this.target=n||this}var t=h.prototype;return t.addEventListener=function(i,l){var f=this._listeners[i]||(this._listeners[i]=[]);~f.indexOf(l)||f.push(l)},t.removeEventListener=function(i,l){var f=this._listeners[i],x=f&&f.indexOf(l);x>=0&&f.splice(x,1)},t.dispatchEvent=function(i){var l=this,f;return(this._listeners[i]||[]).forEach(function(x){return x.call(l,{type:i,target:l.target})===!1&&(f=!1)}),f},h}(),Ke=function(h){ui(t,h);function t(n,i){var l;l=h.call(this)||this,Pt||Et(1),n=ke(n)[0],l.styles=Lt&&Lt(n,"transform,left,top"),ce||(ce=v.plugins.inertia),l.vars=i=ni(i||{}),l.target=n,l.x=l.y=l.rotation=0,l.dragResistance=parseFloat(i.dragResistance)||0,l.edgeResistance=isNaN(i.edgeResistance)?1:parseFloat(i.edgeResistance)||0,l.lockAxis=i.lockAxis,l.autoScroll=i.autoScroll||0,l.lockedAxis=null,l.allowEventDefault=!!i.allowEventDefault,v.getProperty(n,"x");var f=(i.type||"x,y").toLowerCase(),x=~f.indexOf("x")||~f.indexOf("y"),c=f.indexOf("rotation")!==-1,L=c?"rotation":x?"x":"left",T=x?"y":"top",_=!!(~f.indexOf("x")||~f.indexOf("left")||f==="scroll"),M=!!(~f.indexOf("y")||~f.indexOf("top")||f==="scroll"),S=i.minimumMovement||2,e=Gt(l),y=ke(i.trigger||i.handle||n),R={},J=0,N=!1,Le=i.autoScrollMarginTop||40,Ce=i.autoScrollMarginRight||40,Xe=i.autoScrollMarginBottom||40,E=i.autoScrollMarginLeft||40,j=i.clickableTest||vi,I=0,D=n._gsap||v.core.getCache(n),xe=bi(n),Fe=function(o,s){return parseFloat(D.get(n,o,s))},P=n.ownerDocument||te,ye,m,he,pe,U,z,Ye,Rt,Nt,A,O,Q,H,st,ie,Ue,K,xt,Te,Me,Re,$e,$,k,Ot,oe,se,yt,mt,At,ee,It,at,Bt=function(o){return re(o),o.stopImmediatePropagation&&o.stopImmediatePropagation(),!1},ge=function g(o){if(e.autoScroll&&e.isDragging&&(N||K)){var s=n,r=e.autoScroll*15,a,u,d,w,p,C,b,X;for(N=!1,we.scrollTop=Y.pageYOffset!=null?Y.pageYOffset:P.documentElement.scrollTop!=null?P.documentElement.scrollTop:P.body.scrollTop,we.scrollLeft=Y.pageXOffset!=null?Y.pageXOffset:P.documentElement.scrollLeft!=null?P.documentElement.scrollLeft:P.body.scrollLeft,w=e.pointerX-we.scrollLeft,p=e.pointerY-we.scrollTop;s&&!u;)u=Ve(s.parentNode),a=u?we:s.parentNode,d=u?{bottom:Math.max(de.clientHeight,Y.innerHeight||0),right:Math.max(de.clientWidth,Y.innerWidth||0),left:0,top:0}:a.getBoundingClientRect(),C=b=0,M&&(X=a._gsMaxScrollY-a.scrollTop,X<0?b=X:p>d.bottom-Xe&&X?(N=!0,b=Math.min(X,r*(1-Math.max(0,d.bottom-p)/Xe)|0)):p<d.top+Le&&a.scrollTop&&(N=!0,b=-Math.min(a.scrollTop,r*(1-Math.max(0,p-d.top)/Le)|0)),b&&(a.scrollTop+=b)),_&&(X=a._gsMaxScrollX-a.scrollLeft,X<0?C=X:w>d.right-Ce&&X?(N=!0,C=Math.min(X,r*(1-Math.max(0,d.right-w)/Ce)|0)):w<d.left+E&&a.scrollLeft&&(N=!0,C=-Math.min(a.scrollLeft,r*(1-Math.max(0,w-d.left)/E)|0)),C&&(a.scrollLeft+=C)),u&&(C||b)&&(Y.scrollTo(a.scrollLeft,a.scrollTop),Ze(e.pointerX+C,e.pointerY+b)),s=a}if(K){var B=e.x,Z=e.y;c?(e.deltaX=B-parseFloat(D.rotation),e.rotation=B,D.rotation=B+"deg",D.renderTransform(1,D)):m?(M&&(e.deltaY=Z-m.top(),m.top(Z)),_&&(e.deltaX=B-m.left(),m.left(B))):x?(M&&(e.deltaY=Z-parseFloat(D.y),D.y=Z+"px"),_&&(e.deltaX=B-parseFloat(D.x),D.x=B+"px"),D.renderTransform(1,D)):(M&&(e.deltaY=Z-parseFloat(n.style.top||0),n.style.top=Z+"px"),_&&(e.deltaX=B-parseFloat(n.style.left||0),n.style.left=B+"px")),Rt&&!o&&!yt&&(yt=!0,F(e,"drag","onDrag")===!1&&(_&&(e.x-=e.deltaX),M&&(e.y-=e.deltaY),g(!0)),yt=!1)}K=!1},Ne=function(o,s){var r=e.x,a=e.y,u,d;n._gsap||(D=v.core.getCache(n)),D.uncache&&v.getProperty(n,"x"),x?(e.x=parseFloat(D.x),e.y=parseFloat(D.y)):c?e.x=e.rotation=parseFloat(D.rotation):m?(e.y=m.top(),e.x=m.left()):(e.y=parseFloat(n.style.top||(d=lt(n))&&d.top)||0,e.x=parseFloat(n.style.left||(d||{}).left)||0),(Te||Me||Re)&&!s&&(e.isDragging||e.isThrowing)&&(Re&&(He.x=e.x,He.y=e.y,u=Re(He),u.x!==e.x&&(e.x=u.x,K=!0),u.y!==e.y&&(e.y=u.y,K=!0)),Te&&(u=Te(e.x),u!==e.x&&(e.x=u,c&&(e.rotation=u),K=!0)),Me&&(u=Me(e.y),u!==e.y&&(e.y=u),K=!0)),K&&ge(!0),o||(e.deltaX=e.x-r,e.deltaY=e.y-a,F(e,"throwupdate","onThrowUpdate"))},wt=function(o,s,r,a){return s==null&&(s=-Ae),r==null&&(r=Ae),Pe(o)?function(u){var d=e.isPressed?1-e.edgeResistance:1;return o.call(e,(u>r?r+(u-r)*d:u<s?s+(u-s)*d:u)*a)*a}:je(o)?function(u){for(var d=o.length,w=0,p=Ae,C,b;--d>-1;)C=o[d],b=C-u,b<0&&(b=-b),b<p&&C>=s&&C<=r&&(w=d,p=b);return o[w]}:isNaN(o)?function(u){return u}:function(){return o*a}},si=function(o,s,r,a,u,d,w){return d=d&&d<Ae?d*d:Ae,Pe(o)?function(p){var C=e.isPressed?1-e.edgeResistance:1,b=p.x,X=p.y,B,Z,me;return p.x=b=b>r?r+(b-r)*C:b<s?s+(b-s)*C:b,p.y=X=X>u?u+(X-u)*C:X<a?a+(X-a)*C:X,B=o.call(e,p),B!==p&&(p.x=B.x,p.y=B.y),w!==1&&(p.x*=w,p.y*=w),d<Ae&&(Z=p.x-b,me=p.y-X,Z*Z+me*me>d&&(p.x=b,p.y=X)),p}:je(o)?function(p){for(var C=o.length,b=0,X=Ae,B,Z,me,ne;--C>-1;)me=o[C],B=me.x-p.x,Z=me.y-p.y,ne=B*B+Z*Z,ne<X&&(b=C,X=ne);return X<=d?o[b]:p}:function(p){return p}},_t=function(){var o,s,r,a;Ye=!1,m?(m.calibrate(),e.minX=O=-m.maxScrollLeft(),e.minY=H=-m.maxScrollTop(),e.maxX=A=e.maxY=Q=0,Ye=!0):i.bounds&&(o=jt(i.bounds,n.parentNode),c?(e.minX=O=o.left,e.maxX=A=o.left+o.width,e.minY=H=e.maxY=Q=0):!ue(i.bounds.maxX)||!ue(i.bounds.maxY)?(o=i.bounds,e.minX=O=o.minX,e.minY=H=o.minY,e.maxX=A=o.maxX,e.maxY=Q=o.maxY):(s=jt(n,n.parentNode),e.minX=O=Math.round(Fe(L,"px")+o.left-s.left),e.minY=H=Math.round(Fe(T,"px")+o.top-s.top),e.maxX=A=Math.round(O+(o.width-s.width)),e.maxY=Q=Math.round(H+(o.height-s.height))),O>A&&(e.minX=A,e.maxX=A=O,O=e.minX),H>Q&&(e.minY=Q,e.maxY=Q=H,H=e.minY),c&&(e.minRotation=O,e.maxRotation=A),Ye=!0),i.liveSnap&&(r=i.liveSnap===!0?i.snap||{}:i.liveSnap,a=je(r)||Pe(r),c?(Te=wt(a?r:r.rotation,O,A,1),Me=null):r.points?Re=si(a?r:r.points,O,A,H,Q,r.radius,m?-1:1):(_&&(Te=wt(a?r:r.x||r.left||r.scrollLeft,O,A,m?-1:1)),M&&(Me=wt(a?r:r.y||r.top||r.scrollTop,H,Q,m?-1:1))))},ai=function(){e.isThrowing=!1,F(e,"throwcomplete","onThrowComplete")},fi=function(){e.isThrowing=!1},vt=function(o,s){var r,a,u,d;o&&ce?(o===!0&&(r=i.snap||i.liveSnap||{},a=je(r)||Pe(r),o={resistance:(i.throwResistance||i.resistance||1e3)/(c?10:1)},c?o.rotation=St(e,a?r:r.rotation,A,O,1,s):(_&&(o[L]=St(e,a?r:r.points||r.x||r.left,A,O,m?-1:1,s||e.lockedAxis==="x")),M&&(o[T]=St(e,a?r:r.points||r.y||r.top,Q,H,m?-1:1,s||e.lockedAxis==="y")),(r.points||je(r)&&ot(r[0]))&&(o.linkedProps=L+","+T,o.radius=r.radius))),e.isThrowing=!0,d=isNaN(i.overshootTolerance)?i.edgeResistance===1?0:1-e.edgeResistance+.2:i.overshootTolerance,o.duration||(o.duration={max:Math.max(i.minDuration||0,"maxDuration"in i?i.maxDuration:2),min:isNaN(i.minDuration)?d===0||ot(o)&&o.resistance>1e3?0:.5:i.minDuration,overshoot:d}),e.tween=u=v.to(m||n,{inertia:o,data:"_draggable",inherit:!1,onComplete:ai,onInterrupt:fi,onUpdate:i.fastMode?F:Ne,onUpdateParams:i.fastMode?[e,"onthrowupdate","onThrowUpdate"]:r&&r.radius?[!1,!0]:[]}),i.fastMode||(m&&(m._skip=!0),u.render(1e9,!0,!0),Ne(!0,!0),e.endX=e.x,e.endY=e.y,c&&(e.endRotation=e.x),u.play(0),Ne(!0,!0),m&&(m._skip=!1))):Ye&&e.applyBounds()},Ft=function(o){var s=k,r;k=_e.getGlobalMatrix(n.parentNode,!0),o&&e.isPressed&&!k.equals(s||new _e.Matrix2D)&&(r=s.inverse().apply({x:he,y:pe}),k.apply(r,r),he=r.x,pe=r.y),k.equals(di)&&(k=null)},ft=function(){var o=1-e.edgeResistance,s=xe?Qe(P):0,r=xe?ze(P):0,a,u,d;x&&(D.x=Fe(L,"px")+"px",D.y=Fe(T,"px")+"px",D.renderTransform()),Ft(!1),le.x=e.pointerX-s,le.y=e.pointerY-r,k&&k.apply(le,le),he=le.x,pe=le.y,K&&(Ze(e.pointerX,e.pointerY),ge(!0)),It=_e.getGlobalMatrix(n),m?(_t(),z=m.top(),U=m.left()):(qe()?(Ne(!0,!0),_t()):e.applyBounds(),c?(a=n.ownerSVGElement?[D.xOrigin-n.getBBox().x,D.yOrigin-n.getBBox().y]:(lt(n)[Ct]||"0 0").split(" "),Ue=e.rotationOrigin=_e.getGlobalMatrix(n).apply({x:parseFloat(a[0])||0,y:parseFloat(a[1])||0}),Ne(!0,!0),u=e.pointerX-Ue.x-s,d=Ue.y-e.pointerY+r,U=e.x,z=e.y=Math.atan2(d,u)*zt):(z=Fe(T,"px"),U=Fe(L,"px"))),Ye&&o&&(U>A?U=A+(U-A)/o:U<O&&(U=O-(O-U)/o),c||(z>Q?z=Q+(z-Q)/o:z<H&&(z=H-(H-z)/o))),e.startX=U=Se(U),e.startY=z=Se(z)},qe=function(){return e.tween&&e.tween.isActive()},ci=function(){ve.parentNode&&!qe()&&!e.isDragging&&ve.parentNode.removeChild(ve)},Je=function(o,s){var r;if(!ye||e.isPressed||!o||(o.type==="mousedown"||o.type==="pointerdown")&&!s&&Ee()-I<30&&rt[e.pointerEvent.type]){ee&&o&&ye&&re(o);return}if(Ot=qe(),at=!1,e.pointerEvent=o,rt[o.type]?($=~o.type.indexOf("touch")?o.currentTarget||o.target:P,V($,"touchend",ae),V($,"touchmove",Oe),V($,"touchcancel",ae),V(P,"touchstart",$t)):($=null,V(P,"mousemove",Oe)),se=null,(!ht||!$)&&(V(P,"mouseup",ae),o&&o.target&&V(o.target,"mouseup",ae)),$e=j.call(e,o.target)&&i.dragClickables===!1&&!s,$e){V(o.target,"change",ae),F(e,"pressInit","onPressInit"),F(e,"press","onPress"),dt(y,!0),ee=!1;return}if(oe=!$||_===M||e.vars.allowNativeTouchScrolling===!1||e.vars.allowContextMenu&&o&&(o.ctrlKey||o.which>2)?!1:_?"y":"x",ee=!oe&&!e.allowEventDefault,ee&&(re(o),V(Y,"touchforcechange",re)),o.changedTouches?(o=st=o.changedTouches[0],ie=o.identifier):o.pointerId?ie=o.pointerId:st=ie=null,gt++,xi(ge),pe=e.pointerY=o.pageY,he=e.pointerX=o.pageX,F(e,"pressInit","onPressInit"),(oe||e.autoScroll)&&Mt(n.parentNode),n.parentNode&&e.autoScroll&&!m&&!c&&n.parentNode._gsMaxScrollX&&!ve.parentNode&&!n.getBBox&&(ve.style.width=n.parentNode.scrollWidth+"px",n.parentNode.appendChild(ve)),ft(),e.tween&&e.tween.kill(),e.isThrowing=!1,v.killTweensOf(m||n,R,!0),m&&v.killTweensOf(n,{scrollTo:1},!0),e.tween=e.lockedAxis=null,(i.zIndexBoost||!c&&!m&&i.zIndexBoost!==!1)&&(n.style.zIndex=t.zIndex++),e.isPressed=!0,Rt=!!(i.onDrag||e._listeners.drag),Nt=!!(i.onMove||e._listeners.move),i.cursor!==!1||i.activeCursor)for(r=y.length;--r>-1;)v.set(y[r],{cursor:i.activeCursor||i.cursor||(it==="grab"?"grabbing":it)});F(e,"press","onPress")},Oe=function(o){var s=o,r,a,u,d,w,p;if(!ye||Yt||!e.isPressed||!o){ee&&o&&ye&&re(o);return}if(e.pointerEvent=o,r=o.changedTouches,r){if(o=r[0],o!==st&&o.identifier!==ie){for(d=r.length;--d>-1&&(o=r[d]).identifier!==ie&&o.target!==n;);if(d<0)return}}else if(o.pointerId&&ie&&o.pointerId!==ie)return;if($&&oe&&!se&&(le.x=o.pageX-(xe?Qe(P):0),le.y=o.pageY-(xe?ze(P):0),k&&k.apply(le,le),a=le.x,u=le.y,w=Math.abs(a-he),p=Math.abs(u-pe),(w!==p&&(w>S||p>S)||tt&&oe===se)&&(se=w>p&&_?"x":"y",oe&&se!==oe&&V(Y,"touchforcechange",re),e.vars.lockAxisOnTouchScroll!==!1&&_&&M&&(e.lockedAxis=se==="x"?"y":"x",Pe(e.vars.onLockAxis)&&e.vars.onLockAxis.call(e,s)),tt&&oe===se))){ae(s);return}!e.allowEventDefault&&(!oe||se&&oe!==se)&&s.cancelable!==!1?(re(s),ee=!0):ee&&(ee=!1),e.autoScroll&&(N=!0),Ze(o.pageX,o.pageY,Nt)},Ze=function(o,s,r){var a=1-e.dragResistance,u=1-e.edgeResistance,d=e.pointerX,w=e.pointerY,p=z,C=e.x,b=e.y,X=e.endX,B=e.endY,Z=e.endRotation,me=K,ne,De,q,W,bt,fe;e.pointerX=o,e.pointerY=s,xe&&(o-=Qe(P),s-=ze(P)),c?(W=Math.atan2(Ue.y-s,o-Ue.x)*zt,bt=e.y-W,bt>180?(z-=360,e.y=W):bt<-180&&(z+=360,e.y=W),e.x!==U||Math.max(Math.abs(he-o),Math.abs(pe-s))>S?(e.y=W,q=U+(z-W)*a):q=U):(k&&(fe=o*k.a+s*k.c+k.e,s=o*k.b+s*k.d+k.f,o=fe),De=s-pe,ne=o-he,De<S&&De>-S&&(De=0),ne<S&&ne>-S&&(ne=0),(e.lockAxis||e.lockedAxis)&&(ne||De)&&(fe=e.lockedAxis,fe||(e.lockedAxis=fe=_&&Math.abs(ne)>Math.abs(De)?"y":M?"x":null,fe&&Pe(e.vars.onLockAxis)&&e.vars.onLockAxis.call(e,e.pointerEvent)),fe==="y"?De=0:fe==="x"&&(ne=0)),q=Se(U+ne*a),W=Se(z+De*a)),(Te||Me||Re)&&(e.x!==q||e.y!==W&&!c)&&(Re&&(He.x=q,He.y=W,fe=Re(He),q=Se(fe.x),W=Se(fe.y)),Te&&(q=Se(Te(q))),Me&&(W=Se(Me(W)))),Ye&&(q>A?q=A+Math.round((q-A)*u):q<O&&(q=O+Math.round((q-O)*u)),c||(W>Q?W=Math.round(Q+(W-Q)*u):W<H&&(W=Math.round(H+(W-H)*u)))),(e.x!==q||e.y!==W&&!c)&&(c?(e.endRotation=e.x=e.endX=q,K=!0):(M&&(e.y=e.endY=W,K=!0),_&&(e.x=e.endX=q,K=!0)),!r||F(e,"move","onMove")!==!1?!e.isDragging&&e.isPressed&&(e.isDragging=at=!0,F(e,"dragstart","onDragStart")):(e.pointerX=d,e.pointerY=w,z=p,e.x=C,e.y=b,e.endX=X,e.endY=B,e.endRotation=Z,K=me))},ae=function g(o,s){if(!ye||!e.isPressed||o&&ie!=null&&!s&&(o.pointerId&&o.pointerId!==ie&&o.target!==n||o.changedTouches&&!mi(o.changedTouches,ie))){ee&&o&&ye&&re(o);return}e.isPressed=!1;var r=o,a=e.isDragging,u=e.vars.allowContextMenu&&o&&(o.ctrlKey||o.which>2),d=v.delayedCall(.001,ci),w,p,C,b,X;if($?(G($,"touchend",g),G($,"touchmove",Oe),G($,"touchcancel",g),G(P,"touchstart",$t)):G(P,"mousemove",Oe),G(Y,"touchforcechange",re),(!ht||!$)&&(G(P,"mouseup",g),o&&o.target&&G(o.target,"mouseup",g)),K=!1,a&&(J=Qt=Ee(),e.isDragging=!1),Ut(ge),$e&&!u){o&&(G(o.target,"change",g),e.pointerEvent=r),dt(y,!1),F(e,"release","onRelease"),F(e,"click","onClick"),$e=!1;return}for(p=y.length;--p>-1;)Dt(y[p],"cursor",i.cursor||(i.cursor!==!1?it:null));if(gt--,o){if(w=o.changedTouches,w&&(o=w[0],o!==st&&o.identifier!==ie)){for(p=w.length;--p>-1&&(o=w[p]).identifier!==ie&&o.target!==n;);if(p<0&&!s)return}e.pointerEvent=r,e.pointerX=o.pageX,e.pointerY=o.pageY}return u&&r?(re(r),ee=!0,F(e,"release","onRelease")):r&&!a?(ee=!1,Ot&&(i.snap||i.bounds)&&vt(i.inertia||i.throwProps),F(e,"release","onRelease"),(!tt||r.type!=="touchmove")&&r.type.indexOf("cancel")===-1&&(F(e,"click","onClick"),Ee()-I<300&&F(e,"doubleclick","onDoubleClick"),b=r.target||n,I=Ee(),X=function(){I!==mt&&e.enabled()&&!e.isPressed&&!r.defaultPrevented&&(b.click?b.click():P.createEvent&&(C=P.createEvent("MouseEvents"),C.initMouseEvent("click",!0,!0,Y,1,e.pointerEvent.screenX,e.pointerEvent.screenY,e.pointerX,e.pointerY,!1,!1,!1,!1,0,null),b.dispatchEvent(C)))},!tt&&!r.defaultPrevented&&v.delayedCall(.05,X))):(vt(i.inertia||i.throwProps),!e.allowEventDefault&&r&&(i.dragClickables!==!1||!j.call(e,r.target))&&a&&(!oe||se&&oe===se)&&r.cancelable!==!1?(ee=!0,re(r)):ee=!1,F(e,"release","onRelease")),qe()&&d.duration(e.tween.duration()),a&&F(e,"dragend","onDragEnd"),!0},ct=function(o){if(o&&e.isDragging&&!m){var s=o.target||n.parentNode,r=s.scrollLeft-s._gsScrollX,a=s.scrollTop-s._gsScrollY;(r||a)&&(k?(he-=r*k.a+a*k.c,pe-=a*k.d+r*k.b):(he-=r,pe-=a),s._gsScrollX+=r,s._gsScrollY+=a,Ze(e.pointerX,e.pointerY))}},Ht=function(o){var s=Ee(),r=s-I<100,a=s-J<50,u=r&&mt===I,d=e.pointerEvent&&e.pointerEvent.defaultPrevented,w=r&&At===I,p=o.isTrusted||o.isTrusted==null&&r&&u;if((u||a&&e.vars.suppressClickOnDrag!==!1)&&o.stopImmediatePropagation&&o.stopImmediatePropagation(),r&&!(e.pointerEvent&&e.pointerEvent.defaultPrevented)&&(!u||p&&!w)){p&&u&&(At=I),mt=I;return}(e.isPressed||a||r)&&(!p||!o.detail||!r||d)&&re(o),!r&&!a&&!at&&(o&&o.target&&(e.pointerEvent=o),F(e,"click","onClick"))},Wt=function(o){return k?{x:o.x*k.a+o.y*k.c+k.e,y:o.x*k.b+o.y*k.d+k.f}:{x:o.x,y:o.y}};return xt=t.get(n),xt&&xt.kill(),l.startDrag=function(g,o){var s,r,a,u;Je(g||e.pointerEvent,!0),o&&!e.hitTest(g||e.pointerEvent)&&(s=We(g||e.pointerEvent),r=We(n),a=Wt({x:s.left+s.width/2,y:s.top+s.height/2}),u=Wt({x:r.left+r.width/2,y:r.top+r.height/2}),he-=a.x-u.x,pe-=a.y-u.y),e.isDragging||(e.isDragging=at=!0,F(e,"dragstart","onDragStart"))},l.drag=Oe,l.endDrag=function(g){return ae(g||e.pointerEvent,!0)},l.timeSinceDrag=function(){return e.isDragging?0:(Ee()-J)/1e3},l.timeSinceClick=function(){return(Ee()-I)/1e3},l.hitTest=function(g,o){return t.hitTest(e.target,g,o)},l.getDirection=function(g,o){var s=g==="velocity"&&ce?g:ot(g)&&!c?"element":"start",r,a,u,d,w,p;return s==="element"&&(w=We(e.target),p=We(g)),r=s==="start"?e.x-U:s==="velocity"?ce.getVelocity(n,L):w.left+w.width/2-(p.left+p.width/2),c?r<0?"counter-clockwise":"clockwise":(o=o||2,a=s==="start"?e.y-z:s==="velocity"?ce.getVelocity(n,T):w.top+w.height/2-(p.top+p.height/2),u=Math.abs(r/a),d=u<1/o?"":r<0?"left":"right",u<o&&(d!==""&&(d+="-"),d+=a<0?"up":"down"),d)},l.applyBounds=function(g,o){var s,r,a,u,d,w;if(g&&i.bounds!==g)return i.bounds=g,e.update(!0,o);if(Ne(!0),_t(),Ye&&!qe()){if(s=e.x,r=e.y,s>A?s=A:s<O&&(s=O),r>Q?r=Q:r<H&&(r=H),(e.x!==s||e.y!==r)&&(a=!0,e.x=e.endX=s,c?e.endRotation=s:e.y=e.endY=r,K=!0,ge(!0),e.autoScroll&&!e.isDragging))for(Mt(n.parentNode),u=n,we.scrollTop=Y.pageYOffset!=null?Y.pageYOffset:P.documentElement.scrollTop!=null?P.documentElement.scrollTop:P.body.scrollTop,we.scrollLeft=Y.pageXOffset!=null?Y.pageXOffset:P.documentElement.scrollLeft!=null?P.documentElement.scrollLeft:P.body.scrollLeft;u&&!w;)w=Ve(u.parentNode),d=w?we:u.parentNode,M&&d.scrollTop>d._gsMaxScrollY&&(d.scrollTop=d._gsMaxScrollY),_&&d.scrollLeft>d._gsMaxScrollX&&(d.scrollLeft=d._gsMaxScrollX),u=d;e.isThrowing&&(a||e.endX>A||e.endX<O||e.endY>Q||e.endY<H)&&vt(i.inertia||i.throwProps,a)}return e},l.update=function(g,o,s){if(o&&e.isPressed){var r=_e.getGlobalMatrix(n),a=It.apply({x:e.x-U,y:e.y-z}),u=_e.getGlobalMatrix(n.parentNode,!0);u.apply({x:r.e-a.x,y:r.f-a.y},a),e.x-=a.x-u.e,e.y-=a.y-u.f,ge(!0),ft()}var d=e.x,w=e.y;return Ft(!o),g?e.applyBounds():(K&&s&&ge(!0),Ne(!0)),o&&(Ze(e.pointerX,e.pointerY),K&&ge(!0)),e.isPressed&&!o&&(_&&Math.abs(d-e.x)>.01||M&&Math.abs(w-e.y)>.01&&!c)&&ft(),e.autoScroll&&(Mt(n.parentNode,e.isDragging),N=e.isDragging,ge(!0),Jt(n,ct),qt(n,ct)),e},l.enable=function(g){var o={lazy:!0},s,r,a;if(i.cursor!==!1&&(o.cursor=i.cursor||it),v.utils.checkPrefix("touchCallout")&&(o.touchCallout="none"),g!=="soft"){for(Vt(y,_===M?"none":i.allowNativeTouchScrolling&&n.scrollHeight===n.clientHeight==(n.scrollWidth===n.clientHeight)||i.allowEventDefault?"manipulation":_?"pan-y":"pan-x"),r=y.length;--r>-1;)a=y[r],ht||V(a,"mousedown",Je),V(a,"touchstart",Je),V(a,"click",Ht,!0),v.set(a,o),a.getBBox&&a.ownerSVGElement&&_!==M&&v.set(a.ownerSVGElement,{touchAction:i.allowNativeTouchScrolling||i.allowEventDefault?"manipulation":_?"pan-y":"pan-x"}),i.allowContextMenu||V(a,"contextmenu",Bt);dt(y,!1)}return qt(n,ct),ye=!0,ce&&g!=="soft"&&ce.track(m||n,x?"x,y":c?"rotation":"top,left"),n._gsDragID=s=n._gsDragID||"d"+hi++,Ge[s]=e,m&&(m.enable(),m.element._gsDragID=s),(i.bounds||c)&&ft(),i.bounds&&e.applyBounds(),e},l.disable=function(g){for(var o=e.isDragging,s=y.length,r;--s>-1;)Dt(y[s],"cursor",null);if(g!=="soft"){for(Vt(y,null),s=y.length;--s>-1;)r=y[s],Dt(r,"touchCallout",null),G(r,"mousedown",Je),G(r,"touchstart",Je),G(r,"click",Ht,!0),G(r,"contextmenu",Bt);dt(y,!0),$&&(G($,"touchcancel",ae),G($,"touchend",ae),G($,"touchmove",Oe)),G(P,"mouseup",ae),G(P,"mousemove",Oe)}return Jt(n,ct),ye=!1,ce&&g!=="soft"&&(ce.untrack(m||n,x?"x,y":c?"rotation":"top,left"),e.tween&&e.tween.kill()),m&&m.disable(),Ut(ge),e.isDragging=e.isPressed=$e=!1,o&&F(e,"dragend","onDragEnd"),e},l.enabled=function(g,o){return arguments.length?g?e.enable(o):e.disable(o):ye},l.kill=function(){return e.isThrowing=!1,e.tween&&e.tween.kill(),e.disable(),v.set(y,{clearProps:"userSelect"}),delete Ge[n._gsDragID],e},l.revert=function(){this.kill(),this.styles&&this.styles.revert()},~f.indexOf("scroll")&&(m=l.scrollProxy=new Ti(n,gi({onKill:function(){e.isPressed&&ae(null)}},i)),n.style.overflowY=M&&!kt?"auto":"hidden",n.style.overflowX=_&&!kt?"auto":"hidden",n=m.content),c?R.rotation=1:(_&&(R[L]=1),M&&(R[T]=1)),D.force3D="force3D"in i?i.force3D:!0,ti(Gt(l)),l.enable(),l}return t.register=function(i){v=i,Et()},t.create=function(i,l){return Pt||Et(!0),ke(i).map(function(f){return new t(f,l)})},t.get=function(i){return Ge[(ke(i)[0]||{})._gsDragID]},t.timeSinceDrag=function(){return(Ee()-Qt)/1e3},t.hitTest=function(i,l,f){if(i===l)return!1;var x=We(i),c=We(l),L=x.top,T=x.left,_=x.right,M=x.bottom,S=x.width,e=x.height,y=c.left>_||c.right<T||c.top>M||c.bottom<L,R,J,N;return y||!f?!y:(N=(f+"").indexOf("%")!==-1,f=parseFloat(f)||0,R={left:Math.max(T,c.left),top:Math.max(L,c.top)},R.width=Math.min(_,c.right)-R.left,R.height=Math.min(M,c.bottom)-R.top,R.width<0||R.height<0?!1:N?(f*=.01,J=R.width*R.height,J>=S*e*f||J>=c.width*c.height*f):R.width>f&&R.height>f)},t}(Mi);yi(Ke.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1});Ke.zIndex=1e3;Ke.version="3.13.0";oi()&&v.registerPlugin(Ke);exports.Draggable=Ke;exports.default=Ke;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _e=require("./utils/matrix.cjs.js");function Gt(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function ui(h,t){h.prototype=Object.create(t.prototype),h.prototype.constructor=h,h.__proto__=t}var v,Y,te,de,be,Tt,ve,Pt,et,ke,ei,kt,rt,Yt,tt,ce,it,ht,ti,Lt,gt=0,ii=function(){return typeof window!="undefined"},oi=function(){return v||ii()&&(v=window.gsap)&&v.registerPlugin&&v},Pe=function(t){return typeof t=="function"},ot=function(t){return typeof t=="object"},ue=function(t){return typeof t=="undefined"},pt=function(){return!1},nt="transform",Ct="transformOrigin",Se=function(t){return Math.round(t*1e4)/1e4},je=Array.isArray,ut=function(t,n){var i=te.createElementNS?te.createElementNS("http://www.w3.org/1999/xhtml".replace(/^https/,"http"),t):te.createElement(t);return i.style?i:te.createElement(t)},zt=180/Math.PI,Ae=1e20,di=new _e.Matrix2D,Ee=Date.now||function(){return new Date().getTime()},Be=[],Ge={},hi=0,pi=/^(?:a|input|textarea|button|select)$/i,Qt=0,He={},we={},ni=function(t,n){var i={},l;for(l in t)i[l]=n?t[l]*n:t[l];return i},gi=function(t,n){for(var i in n)i in t||(t[i]=n[i]);return t},Vt=function h(t,n){for(var i=t.length,l;i--;)n?t[i].style.touchAction=n:t[i].style.removeProperty("touch-action"),l=t[i].children,l&&l.length&&h(l,n)},ri=function(){return Be.forEach(function(t){return t()})},xi=function(t){Be.push(t),Be.length===1&&v.ticker.add(ri)},Kt=function(){return!Be.length&&v.ticker.remove(ri)},Ut=function(t){for(var n=Be.length;n--;)Be[n]===t&&Be.splice(n,1);v.to(Kt,{overwrite:!0,delay:15,duration:0,onComplete:Kt,data:"_draggable"})},yi=function(t,n){for(var i in n)i in t||(t[i]=n[i]);return t},V=function(t,n,i,l){if(t.addEventListener){var f=rt[n];l=l||(ei?{passive:!1}:null),t.addEventListener(f||n,i,l),f&&n!==f&&t.addEventListener(n,i,l)}},G=function(t,n,i,l){if(t.removeEventListener){var f=rt[n];t.removeEventListener(f||n,i,l),f&&n!==f&&t.removeEventListener(n,i,l)}},re=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},mi=function(t,n){for(var i=t.length;i--;)if(t[i].identifier===n)return!0},wi=function h(t){Yt=t.touches&><t.touches.length,G(t.target,"touchend",h)},$t=function(t){Yt=t.touches&><t.touches.length,V(t.target,"touchend",wi)},ze=function(t){return Y.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},Qe=function(t){return Y.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},qt=function h(t,n){V(t,"scroll",n),Ve(t.parentNode)||h(t.parentNode,n)},Jt=function h(t,n){G(t,"scroll",n),Ve(t.parentNode)||h(t.parentNode,n)},Ve=function(t){return!t||t===de||t.nodeType===9||t===te.body||t===Y||!t.nodeType||!t.parentNode},Zt=function(t,n){var i=n==="x"?"Width":"Height",l="scroll"+i,f="client"+i;return Math.max(0,Ve(t)?Math.max(de[l],be[l])-(Y["inner"+i]||de[f]||be[f]):t[l]-t[f])},Mt=function h(t,n){var i=Zt(t,"x"),l=Zt(t,"y");Ve(t)?t=we:h(t.parentNode,n),t._gsMaxScrollX=i,t._gsMaxScrollY=l,n||(t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0)},Dt=function(t,n,i){var l=t.style;l&&(ue(l[n])&&(n=et(n,t)||n),i==null?l.removeProperty&&l.removeProperty(n.replace(/([A-Z])/g,"-$1").toLowerCase()):l[n]=i)},lt=function(t){return Y.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Ie={},We=function(t){if(t===Y)return Ie.left=Ie.top=0,Ie.width=Ie.right=de.clientWidth||t.innerWidth||be.clientWidth||0,Ie.height=Ie.bottom=(t.innerHeight||0)-20<de.clientHeight?de.clientHeight:t.innerHeight||be.clientHeight||0,Ie;var n=t.ownerDocument||te,i=ue(t.pageX)?!t.nodeType&&!ue(t.left)&&!ue(t.top)?t:ke(t)[0].getBoundingClientRect():{left:t.pageX-Qe(n),top:t.pageY-ze(n),right:t.pageX-Qe(n)+1,bottom:t.pageY-ze(n)+1};return ue(i.right)&&!ue(i.width)?(i.right=i.left+i.width,i.bottom=i.top+i.height):ue(i.width)&&(i={width:i.right-i.left,height:i.bottom-i.top,right:i.right,left:i.left,bottom:i.bottom,top:i.top}),i},F=function(t,n,i){var l=t.vars,f=l[i],x=t._listeners[n],c;return Pe(f)&&(c=f.apply(l.callbackScope||t,l[i+"Params"]||[t.pointerEvent])),x&&t.dispatchEvent(n)===!1&&(c=!1),c},jt=function(t,n){var i=ke(t)[0],l,f,x;return!i.nodeType&&i!==Y?ue(t.left)?(f=t.min||t.minX||t.minRotation||0,l=t.min||t.minY||0,{left:f,top:l,width:(t.max||t.maxX||t.maxRotation||0)-f,height:(t.max||t.maxY||0)-l}):(x={x:0,y:0},{left:t.left-x.x,top:t.top-x.y,width:t.width,height:t.height}):_i(i,n)},le={},_i=function(t,n){n=ke(n)[0];var i=t.getBBox&&t.ownerSVGElement,l=t.ownerDocument||te,f,x,c,L,T,_,M,S,e,y,R,J,N;if(t===Y)c=ze(l),f=Qe(l),x=f+(l.documentElement.clientWidth||t.innerWidth||l.body.clientWidth||0),L=c+((t.innerHeight||0)-20<l.documentElement.clientHeight?l.documentElement.clientHeight:t.innerHeight||l.body.clientHeight||0);else{if(n===Y||ue(n))return t.getBoundingClientRect();f=c=0,i?(y=t.getBBox(),R=y.width,J=y.height):(t.viewBox&&(y=t.viewBox.baseVal)&&(f=y.x||0,c=y.y||0,R=y.width,J=y.height),R||(N=lt(t),y=N.boxSizing==="border-box",R=(parseFloat(N.width)||t.clientWidth||0)+(y?0:parseFloat(N.borderLeftWidth)+parseFloat(N.borderRightWidth)),J=(parseFloat(N.height)||t.clientHeight||0)+(y?0:parseFloat(N.borderTopWidth)+parseFloat(N.borderBottomWidth)))),x=R,L=J}return t===n?{left:f,top:c,width:x-f,height:L-c}:(T=_e.getGlobalMatrix(n,!0).multiply(_e.getGlobalMatrix(t)),_=T.apply({x:f,y:c}),M=T.apply({x,y:c}),S=T.apply({x,y:L}),e=T.apply({x:f,y:L}),f=Math.min(_.x,M.x,S.x,e.x),c=Math.min(_.y,M.y,S.y,e.y),{left:f,top:c,width:Math.max(_.x,M.x,S.x,e.x)-f,height:Math.max(_.y,M.y,S.y,e.y)-c})},St=function(t,n,i,l,f,x){var c={},L,T,_;if(n)if(f!==1&&n instanceof Array){if(c.end=L=[],_=n.length,ot(n[0]))for(T=0;T<_;T++)L[T]=ni(n[T],f);else for(T=0;T<_;T++)L[T]=n[T]*f;i+=1.1,l-=1.1}else Pe(n)?c.end=function(M){var S=n.call(t,M),e,y;if(f!==1)if(ot(S)){e={};for(y in S)e[y]=S[y]*f;S=e}else S*=f;return S}:c.end=n;return(i||i===0)&&(c.max=i),(l||l===0)&&(c.min=l),x&&(c.velocity=0),c},vi=function h(t){var n;return!t||!t.getAttribute||t===be?!1:(n=t.getAttribute("data-clickable"))==="true"||n!=="false"&&(pi.test(t.nodeName+"")||t.getAttribute("contentEditable")==="true")?!0:h(t.parentNode)},dt=function(t,n){for(var i=t.length,l;i--;)l=t[i],l.ondragstart=l.onselectstart=n?null:pt,v.set(l,{lazy:!0,userSelect:n?"text":"none"})},bi=function h(t){if(lt(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return h(t)},li,Xt,Ti=function(t,n){t=v.utils.toArray(t)[0],n=n||{};var i=document.createElement("div"),l=i.style,f=t.firstChild,x=0,c=0,L=t.scrollTop,T=t.scrollLeft,_=t.scrollWidth,M=t.scrollHeight,S=0,e=0,y=0,R,J,N,Le,Ce,Xe;li&&n.force3D!==!1?(Ce="translate3d(",Xe="px,0px)"):nt&&(Ce="translate(",Xe="px)"),this.scrollTop=function(E,j){if(!arguments.length)return-this.top();this.top(-E,j)},this.scrollLeft=function(E,j){if(!arguments.length)return-this.left();this.left(-E,j)},this.left=function(E,j){if(!arguments.length)return-(t.scrollLeft+c);var I=t.scrollLeft-T,D=c;if((I>2||I<-2)&&!j){T=t.scrollLeft,v.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-T),n.onKill&&n.onKill();return}E=-E,E<0?(c=E-.5|0,E=0):E>e?(c=E-e|0,E=e):c=0,(c||D)&&(this._skip||(l[nt]=Ce+-c+"px,"+-x+Xe),c+S>=0&&(l.paddingRight=c+S+"px")),t.scrollLeft=E|0,T=t.scrollLeft},this.top=function(E,j){if(!arguments.length)return-(t.scrollTop+x);var I=t.scrollTop-L,D=x;if((I>2||I<-2)&&!j){L=t.scrollTop,v.killTweensOf(this,{top:1,scrollTop:1}),this.top(-L),n.onKill&&n.onKill();return}E=-E,E<0?(x=E-.5|0,E=0):E>y?(x=E-y|0,E=y):x=0,(x||D)&&(this._skip||(l[nt]=Ce+-c+"px,"+-x+Xe)),t.scrollTop=E|0,L=t.scrollTop},this.maxScrollTop=function(){return y},this.maxScrollLeft=function(){return e},this.disable=function(){for(f=i.firstChild;f;)Le=f.nextSibling,t.appendChild(f),f=Le;t===i.parentNode&&t.removeChild(i)},this.enable=function(){if(f=t.firstChild,f!==i){for(;f;)Le=f.nextSibling,i.appendChild(f),f=Le;t.appendChild(i),this.calibrate()}},this.calibrate=function(E){var j=t.clientWidth===R,I,D,xe;L=t.scrollTop,T=t.scrollLeft,!(j&&t.clientHeight===J&&i.offsetHeight===N&&_===t.scrollWidth&&M===t.scrollHeight&&!E)&&((x||c)&&(D=this.left(),xe=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),I=lt(t),(!j||E)&&(l.display="block",l.width="auto",l.paddingRight="0px",S=Math.max(0,t.scrollWidth-t.clientWidth),S&&(S+=parseFloat(I.paddingLeft)+(Xt?parseFloat(I.paddingRight):0))),l.display="inline-block",l.position="relative",l.overflow="visible",l.verticalAlign="top",l.boxSizing="content-box",l.width="100%",l.paddingRight=S+"px",Xt&&(l.paddingBottom=I.paddingBottom),R=t.clientWidth,J=t.clientHeight,_=t.scrollWidth,M=t.scrollHeight,e=t.scrollWidth-R,y=t.scrollHeight-J,N=i.offsetHeight,l.display="block",(D||xe)&&(this.left(D),this.top(xe)))},this.content=i,this.element=t,this._skip=!1,this.enable()},Et=function(t){if(ii()&&document.body){var n=window&&window.navigator;Y=window,te=document,de=te.documentElement,be=te.body,Tt=ut("div"),ht=!!window.PointerEvent,ve=ut("div"),ve.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",it=ve.style.cursor==="grab"?"grab":"move",tt=n&&n.userAgent.toLowerCase().indexOf("android")!==-1,kt="ontouchstart"in de&&"orientation"in Y||n&&(n.MaxTouchPoints>0||n.msMaxTouchPoints>0),Xt=(function(){var i=ut("div"),l=ut("div"),f=l.style,x=be,c;return f.display="inline-block",f.position="relative",i.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",i.appendChild(l),x.appendChild(i),c=l.offsetHeight+18>i.scrollHeight,x.removeChild(i),c})(),rt=(function(i){for(var l=i.split(","),f=("onpointerdown"in Tt?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Tt?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":i).split(","),x={},c=4;--c>-1;)x[l[c]]=f[c],x[f[c]]=l[c];try{de.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){ei=1}}))}catch{}return x})("touchstart,touchmove,touchend,touchcancel"),V(te,"touchcancel",pt),V(Y,"touchmove",pt),be&&be.addEventListener("touchstart",pt),V(te,"contextmenu",function(){for(var i in Ge)Ge[i].isPressed&&Ge[i].endDrag()}),v=Pt=oi()}v?(ce=v.plugins.inertia,ti=v.core.context||function(){},et=v.utils.checkPrefix,nt=et(nt),Ct=et(Ct),ke=v.utils.toArray,Lt=v.core.getStyleSaver,li=!!et("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},Mi=(function(){function h(n){this._listeners={},this.target=n||this}var t=h.prototype;return t.addEventListener=function(i,l){var f=this._listeners[i]||(this._listeners[i]=[]);~f.indexOf(l)||f.push(l)},t.removeEventListener=function(i,l){var f=this._listeners[i],x=f&&f.indexOf(l);x>=0&&f.splice(x,1)},t.dispatchEvent=function(i){var l=this,f;return(this._listeners[i]||[]).forEach(function(x){return x.call(l,{type:i,target:l.target})===!1&&(f=!1)}),f},h})(),Ke=(function(h){ui(t,h);function t(n,i){var l;l=h.call(this)||this,Pt||Et(1),n=ke(n)[0],l.styles=Lt&&Lt(n,"transform,left,top"),ce||(ce=v.plugins.inertia),l.vars=i=ni(i||{}),l.target=n,l.x=l.y=l.rotation=0,l.dragResistance=parseFloat(i.dragResistance)||0,l.edgeResistance=isNaN(i.edgeResistance)?1:parseFloat(i.edgeResistance)||0,l.lockAxis=i.lockAxis,l.autoScroll=i.autoScroll||0,l.lockedAxis=null,l.allowEventDefault=!!i.allowEventDefault,v.getProperty(n,"x");var f=(i.type||"x,y").toLowerCase(),x=~f.indexOf("x")||~f.indexOf("y"),c=f.indexOf("rotation")!==-1,L=c?"rotation":x?"x":"left",T=x?"y":"top",_=!!(~f.indexOf("x")||~f.indexOf("left")||f==="scroll"),M=!!(~f.indexOf("y")||~f.indexOf("top")||f==="scroll"),S=i.minimumMovement||2,e=Gt(l),y=ke(i.trigger||i.handle||n),R={},J=0,N=!1,Le=i.autoScrollMarginTop||40,Ce=i.autoScrollMarginRight||40,Xe=i.autoScrollMarginBottom||40,E=i.autoScrollMarginLeft||40,j=i.clickableTest||vi,I=0,D=n._gsap||v.core.getCache(n),xe=bi(n),Fe=function(o,s){return parseFloat(D.get(n,o,s))},P=n.ownerDocument||te,ye,m,he,pe,U,z,Ye,Rt,Nt,A,O,Q,H,st,ie,Ue,K,xt,Te,Me,Re,$e,$,k,Ot,oe,se,yt,mt,At,ee,It,at,Bt=function(o){return re(o),o.stopImmediatePropagation&&o.stopImmediatePropagation(),!1},ge=function g(o){if(e.autoScroll&&e.isDragging&&(N||K)){var s=n,r=e.autoScroll*15,a,u,d,w,p,C,b,X;for(N=!1,we.scrollTop=Y.pageYOffset!=null?Y.pageYOffset:P.documentElement.scrollTop!=null?P.documentElement.scrollTop:P.body.scrollTop,we.scrollLeft=Y.pageXOffset!=null?Y.pageXOffset:P.documentElement.scrollLeft!=null?P.documentElement.scrollLeft:P.body.scrollLeft,w=e.pointerX-we.scrollLeft,p=e.pointerY-we.scrollTop;s&&!u;)u=Ve(s.parentNode),a=u?we:s.parentNode,d=u?{bottom:Math.max(de.clientHeight,Y.innerHeight||0),right:Math.max(de.clientWidth,Y.innerWidth||0),left:0,top:0}:a.getBoundingClientRect(),C=b=0,M&&(X=a._gsMaxScrollY-a.scrollTop,X<0?b=X:p>d.bottom-Xe&&X?(N=!0,b=Math.min(X,r*(1-Math.max(0,d.bottom-p)/Xe)|0)):p<d.top+Le&&a.scrollTop&&(N=!0,b=-Math.min(a.scrollTop,r*(1-Math.max(0,p-d.top)/Le)|0)),b&&(a.scrollTop+=b)),_&&(X=a._gsMaxScrollX-a.scrollLeft,X<0?C=X:w>d.right-Ce&&X?(N=!0,C=Math.min(X,r*(1-Math.max(0,d.right-w)/Ce)|0)):w<d.left+E&&a.scrollLeft&&(N=!0,C=-Math.min(a.scrollLeft,r*(1-Math.max(0,w-d.left)/E)|0)),C&&(a.scrollLeft+=C)),u&&(C||b)&&(Y.scrollTo(a.scrollLeft,a.scrollTop),Ze(e.pointerX+C,e.pointerY+b)),s=a}if(K){var B=e.x,Z=e.y;c?(e.deltaX=B-parseFloat(D.rotation),e.rotation=B,D.rotation=B+"deg",D.renderTransform(1,D)):m?(M&&(e.deltaY=Z-m.top(),m.top(Z)),_&&(e.deltaX=B-m.left(),m.left(B))):x?(M&&(e.deltaY=Z-parseFloat(D.y),D.y=Z+"px"),_&&(e.deltaX=B-parseFloat(D.x),D.x=B+"px"),D.renderTransform(1,D)):(M&&(e.deltaY=Z-parseFloat(n.style.top||0),n.style.top=Z+"px"),_&&(e.deltaX=B-parseFloat(n.style.left||0),n.style.left=B+"px")),Rt&&!o&&!yt&&(yt=!0,F(e,"drag","onDrag")===!1&&(_&&(e.x-=e.deltaX),M&&(e.y-=e.deltaY),g(!0)),yt=!1)}K=!1},Ne=function(o,s){var r=e.x,a=e.y,u,d;n._gsap||(D=v.core.getCache(n)),D.uncache&&v.getProperty(n,"x"),x?(e.x=parseFloat(D.x),e.y=parseFloat(D.y)):c?e.x=e.rotation=parseFloat(D.rotation):m?(e.y=m.top(),e.x=m.left()):(e.y=parseFloat(n.style.top||(d=lt(n))&&d.top)||0,e.x=parseFloat(n.style.left||(d||{}).left)||0),(Te||Me||Re)&&!s&&(e.isDragging||e.isThrowing)&&(Re&&(He.x=e.x,He.y=e.y,u=Re(He),u.x!==e.x&&(e.x=u.x,K=!0),u.y!==e.y&&(e.y=u.y,K=!0)),Te&&(u=Te(e.x),u!==e.x&&(e.x=u,c&&(e.rotation=u),K=!0)),Me&&(u=Me(e.y),u!==e.y&&(e.y=u),K=!0)),K&&ge(!0),o||(e.deltaX=e.x-r,e.deltaY=e.y-a,F(e,"throwupdate","onThrowUpdate"))},wt=function(o,s,r,a){return s==null&&(s=-Ae),r==null&&(r=Ae),Pe(o)?function(u){var d=e.isPressed?1-e.edgeResistance:1;return o.call(e,(u>r?r+(u-r)*d:u<s?s+(u-s)*d:u)*a)*a}:je(o)?function(u){for(var d=o.length,w=0,p=Ae,C,b;--d>-1;)C=o[d],b=C-u,b<0&&(b=-b),b<p&&C>=s&&C<=r&&(w=d,p=b);return o[w]}:isNaN(o)?function(u){return u}:function(){return o*a}},si=function(o,s,r,a,u,d,w){return d=d&&d<Ae?d*d:Ae,Pe(o)?function(p){var C=e.isPressed?1-e.edgeResistance:1,b=p.x,X=p.y,B,Z,me;return p.x=b=b>r?r+(b-r)*C:b<s?s+(b-s)*C:b,p.y=X=X>u?u+(X-u)*C:X<a?a+(X-a)*C:X,B=o.call(e,p),B!==p&&(p.x=B.x,p.y=B.y),w!==1&&(p.x*=w,p.y*=w),d<Ae&&(Z=p.x-b,me=p.y-X,Z*Z+me*me>d&&(p.x=b,p.y=X)),p}:je(o)?function(p){for(var C=o.length,b=0,X=Ae,B,Z,me,ne;--C>-1;)me=o[C],B=me.x-p.x,Z=me.y-p.y,ne=B*B+Z*Z,ne<X&&(b=C,X=ne);return X<=d?o[b]:p}:function(p){return p}},_t=function(){var o,s,r,a;Ye=!1,m?(m.calibrate(),e.minX=O=-m.maxScrollLeft(),e.minY=H=-m.maxScrollTop(),e.maxX=A=e.maxY=Q=0,Ye=!0):i.bounds&&(o=jt(i.bounds,n.parentNode),c?(e.minX=O=o.left,e.maxX=A=o.left+o.width,e.minY=H=e.maxY=Q=0):!ue(i.bounds.maxX)||!ue(i.bounds.maxY)?(o=i.bounds,e.minX=O=o.minX,e.minY=H=o.minY,e.maxX=A=o.maxX,e.maxY=Q=o.maxY):(s=jt(n,n.parentNode),e.minX=O=Math.round(Fe(L,"px")+o.left-s.left),e.minY=H=Math.round(Fe(T,"px")+o.top-s.top),e.maxX=A=Math.round(O+(o.width-s.width)),e.maxY=Q=Math.round(H+(o.height-s.height))),O>A&&(e.minX=A,e.maxX=A=O,O=e.minX),H>Q&&(e.minY=Q,e.maxY=Q=H,H=e.minY),c&&(e.minRotation=O,e.maxRotation=A),Ye=!0),i.liveSnap&&(r=i.liveSnap===!0?i.snap||{}:i.liveSnap,a=je(r)||Pe(r),c?(Te=wt(a?r:r.rotation,O,A,1),Me=null):r.points?Re=si(a?r:r.points,O,A,H,Q,r.radius,m?-1:1):(_&&(Te=wt(a?r:r.x||r.left||r.scrollLeft,O,A,m?-1:1)),M&&(Me=wt(a?r:r.y||r.top||r.scrollTop,H,Q,m?-1:1))))},ai=function(){e.isThrowing=!1,F(e,"throwcomplete","onThrowComplete")},fi=function(){e.isThrowing=!1},vt=function(o,s){var r,a,u,d;o&&ce?(o===!0&&(r=i.snap||i.liveSnap||{},a=je(r)||Pe(r),o={resistance:(i.throwResistance||i.resistance||1e3)/(c?10:1)},c?o.rotation=St(e,a?r:r.rotation,A,O,1,s):(_&&(o[L]=St(e,a?r:r.points||r.x||r.left,A,O,m?-1:1,s||e.lockedAxis==="x")),M&&(o[T]=St(e,a?r:r.points||r.y||r.top,Q,H,m?-1:1,s||e.lockedAxis==="y")),(r.points||je(r)&&ot(r[0]))&&(o.linkedProps=L+","+T,o.radius=r.radius))),e.isThrowing=!0,d=isNaN(i.overshootTolerance)?i.edgeResistance===1?0:1-e.edgeResistance+.2:i.overshootTolerance,o.duration||(o.duration={max:Math.max(i.minDuration||0,"maxDuration"in i?i.maxDuration:2),min:isNaN(i.minDuration)?d===0||ot(o)&&o.resistance>1e3?0:.5:i.minDuration,overshoot:d}),e.tween=u=v.to(m||n,{inertia:o,data:"_draggable",inherit:!1,onComplete:ai,onInterrupt:fi,onUpdate:i.fastMode?F:Ne,onUpdateParams:i.fastMode?[e,"onthrowupdate","onThrowUpdate"]:r&&r.radius?[!1,!0]:[]}),i.fastMode||(m&&(m._skip=!0),u.render(1e9,!0,!0),Ne(!0,!0),e.endX=e.x,e.endY=e.y,c&&(e.endRotation=e.x),u.play(0),Ne(!0,!0),m&&(m._skip=!1))):Ye&&e.applyBounds()},Ft=function(o){var s=k,r;k=_e.getGlobalMatrix(n.parentNode,!0),o&&e.isPressed&&!k.equals(s||new _e.Matrix2D)&&(r=s.inverse().apply({x:he,y:pe}),k.apply(r,r),he=r.x,pe=r.y),k.equals(di)&&(k=null)},ft=function(){var o=1-e.edgeResistance,s=xe?Qe(P):0,r=xe?ze(P):0,a,u,d;x&&(D.x=Fe(L,"px")+"px",D.y=Fe(T,"px")+"px",D.renderTransform()),Ft(!1),le.x=e.pointerX-s,le.y=e.pointerY-r,k&&k.apply(le,le),he=le.x,pe=le.y,K&&(Ze(e.pointerX,e.pointerY),ge(!0)),It=_e.getGlobalMatrix(n),m?(_t(),z=m.top(),U=m.left()):(qe()?(Ne(!0,!0),_t()):e.applyBounds(),c?(a=n.ownerSVGElement?[D.xOrigin-n.getBBox().x,D.yOrigin-n.getBBox().y]:(lt(n)[Ct]||"0 0").split(" "),Ue=e.rotationOrigin=_e.getGlobalMatrix(n).apply({x:parseFloat(a[0])||0,y:parseFloat(a[1])||0}),Ne(!0,!0),u=e.pointerX-Ue.x-s,d=Ue.y-e.pointerY+r,U=e.x,z=e.y=Math.atan2(d,u)*zt):(z=Fe(T,"px"),U=Fe(L,"px"))),Ye&&o&&(U>A?U=A+(U-A)/o:U<O&&(U=O-(O-U)/o),c||(z>Q?z=Q+(z-Q)/o:z<H&&(z=H-(H-z)/o))),e.startX=U=Se(U),e.startY=z=Se(z)},qe=function(){return e.tween&&e.tween.isActive()},ci=function(){ve.parentNode&&!qe()&&!e.isDragging&&ve.parentNode.removeChild(ve)},Je=function(o,s){var r;if(!ye||e.isPressed||!o||(o.type==="mousedown"||o.type==="pointerdown")&&!s&&Ee()-I<30&&rt[e.pointerEvent.type]){ee&&o&&ye&&re(o);return}if(Ot=qe(),at=!1,e.pointerEvent=o,rt[o.type]?($=~o.type.indexOf("touch")?o.currentTarget||o.target:P,V($,"touchend",ae),V($,"touchmove",Oe),V($,"touchcancel",ae),V(P,"touchstart",$t)):($=null,V(P,"mousemove",Oe)),se=null,(!ht||!$)&&(V(P,"mouseup",ae),o&&o.target&&V(o.target,"mouseup",ae)),$e=j.call(e,o.target)&&i.dragClickables===!1&&!s,$e){V(o.target,"change",ae),F(e,"pressInit","onPressInit"),F(e,"press","onPress"),dt(y,!0),ee=!1;return}if(oe=!$||_===M||e.vars.allowNativeTouchScrolling===!1||e.vars.allowContextMenu&&o&&(o.ctrlKey||o.which>2)?!1:_?"y":"x",ee=!oe&&!e.allowEventDefault,ee&&(re(o),V(Y,"touchforcechange",re)),o.changedTouches?(o=st=o.changedTouches[0],ie=o.identifier):o.pointerId?ie=o.pointerId:st=ie=null,gt++,xi(ge),pe=e.pointerY=o.pageY,he=e.pointerX=o.pageX,F(e,"pressInit","onPressInit"),(oe||e.autoScroll)&&Mt(n.parentNode),n.parentNode&&e.autoScroll&&!m&&!c&&n.parentNode._gsMaxScrollX&&!ve.parentNode&&!n.getBBox&&(ve.style.width=n.parentNode.scrollWidth+"px",n.parentNode.appendChild(ve)),ft(),e.tween&&e.tween.kill(),e.isThrowing=!1,v.killTweensOf(m||n,R,!0),m&&v.killTweensOf(n,{scrollTo:1},!0),e.tween=e.lockedAxis=null,(i.zIndexBoost||!c&&!m&&i.zIndexBoost!==!1)&&(n.style.zIndex=t.zIndex++),e.isPressed=!0,Rt=!!(i.onDrag||e._listeners.drag),Nt=!!(i.onMove||e._listeners.move),i.cursor!==!1||i.activeCursor)for(r=y.length;--r>-1;)v.set(y[r],{cursor:i.activeCursor||i.cursor||(it==="grab"?"grabbing":it)});F(e,"press","onPress")},Oe=function(o){var s=o,r,a,u,d,w,p;if(!ye||Yt||!e.isPressed||!o){ee&&o&&ye&&re(o);return}if(e.pointerEvent=o,r=o.changedTouches,r){if(o=r[0],o!==st&&o.identifier!==ie){for(d=r.length;--d>-1&&(o=r[d]).identifier!==ie&&o.target!==n;);if(d<0)return}}else if(o.pointerId&&ie&&o.pointerId!==ie)return;if($&&oe&&!se&&(le.x=o.pageX-(xe?Qe(P):0),le.y=o.pageY-(xe?ze(P):0),k&&k.apply(le,le),a=le.x,u=le.y,w=Math.abs(a-he),p=Math.abs(u-pe),(w!==p&&(w>S||p>S)||tt&&oe===se)&&(se=w>p&&_?"x":"y",oe&&se!==oe&&V(Y,"touchforcechange",re),e.vars.lockAxisOnTouchScroll!==!1&&_&&M&&(e.lockedAxis=se==="x"?"y":"x",Pe(e.vars.onLockAxis)&&e.vars.onLockAxis.call(e,s)),tt&&oe===se))){ae(s);return}!e.allowEventDefault&&(!oe||se&&oe!==se)&&s.cancelable!==!1?(re(s),ee=!0):ee&&(ee=!1),e.autoScroll&&(N=!0),Ze(o.pageX,o.pageY,Nt)},Ze=function(o,s,r){var a=1-e.dragResistance,u=1-e.edgeResistance,d=e.pointerX,w=e.pointerY,p=z,C=e.x,b=e.y,X=e.endX,B=e.endY,Z=e.endRotation,me=K,ne,De,q,W,bt,fe;e.pointerX=o,e.pointerY=s,xe&&(o-=Qe(P),s-=ze(P)),c?(W=Math.atan2(Ue.y-s,o-Ue.x)*zt,bt=e.y-W,bt>180?(z-=360,e.y=W):bt<-180&&(z+=360,e.y=W),e.x!==U||Math.max(Math.abs(he-o),Math.abs(pe-s))>S?(e.y=W,q=U+(z-W)*a):q=U):(k&&(fe=o*k.a+s*k.c+k.e,s=o*k.b+s*k.d+k.f,o=fe),De=s-pe,ne=o-he,De<S&&De>-S&&(De=0),ne<S&&ne>-S&&(ne=0),(e.lockAxis||e.lockedAxis)&&(ne||De)&&(fe=e.lockedAxis,fe||(e.lockedAxis=fe=_&&Math.abs(ne)>Math.abs(De)?"y":M?"x":null,fe&&Pe(e.vars.onLockAxis)&&e.vars.onLockAxis.call(e,e.pointerEvent)),fe==="y"?De=0:fe==="x"&&(ne=0)),q=Se(U+ne*a),W=Se(z+De*a)),(Te||Me||Re)&&(e.x!==q||e.y!==W&&!c)&&(Re&&(He.x=q,He.y=W,fe=Re(He),q=Se(fe.x),W=Se(fe.y)),Te&&(q=Se(Te(q))),Me&&(W=Se(Me(W)))),Ye&&(q>A?q=A+Math.round((q-A)*u):q<O&&(q=O+Math.round((q-O)*u)),c||(W>Q?W=Math.round(Q+(W-Q)*u):W<H&&(W=Math.round(H+(W-H)*u)))),(e.x!==q||e.y!==W&&!c)&&(c?(e.endRotation=e.x=e.endX=q,K=!0):(M&&(e.y=e.endY=W,K=!0),_&&(e.x=e.endX=q,K=!0)),!r||F(e,"move","onMove")!==!1?!e.isDragging&&e.isPressed&&(e.isDragging=at=!0,F(e,"dragstart","onDragStart")):(e.pointerX=d,e.pointerY=w,z=p,e.x=C,e.y=b,e.endX=X,e.endY=B,e.endRotation=Z,K=me))},ae=function g(o,s){if(!ye||!e.isPressed||o&&ie!=null&&!s&&(o.pointerId&&o.pointerId!==ie&&o.target!==n||o.changedTouches&&!mi(o.changedTouches,ie))){ee&&o&&ye&&re(o);return}e.isPressed=!1;var r=o,a=e.isDragging,u=e.vars.allowContextMenu&&o&&(o.ctrlKey||o.which>2),d=v.delayedCall(.001,ci),w,p,C,b,X;if($?(G($,"touchend",g),G($,"touchmove",Oe),G($,"touchcancel",g),G(P,"touchstart",$t)):G(P,"mousemove",Oe),G(Y,"touchforcechange",re),(!ht||!$)&&(G(P,"mouseup",g),o&&o.target&&G(o.target,"mouseup",g)),K=!1,a&&(J=Qt=Ee(),e.isDragging=!1),Ut(ge),$e&&!u){o&&(G(o.target,"change",g),e.pointerEvent=r),dt(y,!1),F(e,"release","onRelease"),F(e,"click","onClick"),$e=!1;return}for(p=y.length;--p>-1;)Dt(y[p],"cursor",i.cursor||(i.cursor!==!1?it:null));if(gt--,o){if(w=o.changedTouches,w&&(o=w[0],o!==st&&o.identifier!==ie)){for(p=w.length;--p>-1&&(o=w[p]).identifier!==ie&&o.target!==n;);if(p<0&&!s)return}e.pointerEvent=r,e.pointerX=o.pageX,e.pointerY=o.pageY}return u&&r?(re(r),ee=!0,F(e,"release","onRelease")):r&&!a?(ee=!1,Ot&&(i.snap||i.bounds)&&vt(i.inertia||i.throwProps),F(e,"release","onRelease"),(!tt||r.type!=="touchmove")&&r.type.indexOf("cancel")===-1&&(F(e,"click","onClick"),Ee()-I<300&&F(e,"doubleclick","onDoubleClick"),b=r.target||n,I=Ee(),X=function(){I!==mt&&e.enabled()&&!e.isPressed&&!r.defaultPrevented&&(b.click?b.click():P.createEvent&&(C=P.createEvent("MouseEvents"),C.initMouseEvent("click",!0,!0,Y,1,e.pointerEvent.screenX,e.pointerEvent.screenY,e.pointerX,e.pointerY,!1,!1,!1,!1,0,null),b.dispatchEvent(C)))},!tt&&!r.defaultPrevented&&v.delayedCall(.05,X))):(vt(i.inertia||i.throwProps),!e.allowEventDefault&&r&&(i.dragClickables!==!1||!j.call(e,r.target))&&a&&(!oe||se&&oe===se)&&r.cancelable!==!1?(ee=!0,re(r)):ee=!1,F(e,"release","onRelease")),qe()&&d.duration(e.tween.duration()),a&&F(e,"dragend","onDragEnd"),!0},ct=function(o){if(o&&e.isDragging&&!m){var s=o.target||n.parentNode,r=s.scrollLeft-s._gsScrollX,a=s.scrollTop-s._gsScrollY;(r||a)&&(k?(he-=r*k.a+a*k.c,pe-=a*k.d+r*k.b):(he-=r,pe-=a),s._gsScrollX+=r,s._gsScrollY+=a,Ze(e.pointerX,e.pointerY))}},Ht=function(o){var s=Ee(),r=s-I<100,a=s-J<50,u=r&&mt===I,d=e.pointerEvent&&e.pointerEvent.defaultPrevented,w=r&&At===I,p=o.isTrusted||o.isTrusted==null&&r&&u;if((u||a&&e.vars.suppressClickOnDrag!==!1)&&o.stopImmediatePropagation&&o.stopImmediatePropagation(),r&&!(e.pointerEvent&&e.pointerEvent.defaultPrevented)&&(!u||p&&!w)){p&&u&&(At=I),mt=I;return}(e.isPressed||a||r)&&(!p||!o.detail||!r||d)&&re(o),!r&&!a&&!at&&(o&&o.target&&(e.pointerEvent=o),F(e,"click","onClick"))},Wt=function(o){return k?{x:o.x*k.a+o.y*k.c+k.e,y:o.x*k.b+o.y*k.d+k.f}:{x:o.x,y:o.y}};return xt=t.get(n),xt&&xt.kill(),l.startDrag=function(g,o){var s,r,a,u;Je(g||e.pointerEvent,!0),o&&!e.hitTest(g||e.pointerEvent)&&(s=We(g||e.pointerEvent),r=We(n),a=Wt({x:s.left+s.width/2,y:s.top+s.height/2}),u=Wt({x:r.left+r.width/2,y:r.top+r.height/2}),he-=a.x-u.x,pe-=a.y-u.y),e.isDragging||(e.isDragging=at=!0,F(e,"dragstart","onDragStart"))},l.drag=Oe,l.endDrag=function(g){return ae(g||e.pointerEvent,!0)},l.timeSinceDrag=function(){return e.isDragging?0:(Ee()-J)/1e3},l.timeSinceClick=function(){return(Ee()-I)/1e3},l.hitTest=function(g,o){return t.hitTest(e.target,g,o)},l.getDirection=function(g,o){var s=g==="velocity"&&ce?g:ot(g)&&!c?"element":"start",r,a,u,d,w,p;return s==="element"&&(w=We(e.target),p=We(g)),r=s==="start"?e.x-U:s==="velocity"?ce.getVelocity(n,L):w.left+w.width/2-(p.left+p.width/2),c?r<0?"counter-clockwise":"clockwise":(o=o||2,a=s==="start"?e.y-z:s==="velocity"?ce.getVelocity(n,T):w.top+w.height/2-(p.top+p.height/2),u=Math.abs(r/a),d=u<1/o?"":r<0?"left":"right",u<o&&(d!==""&&(d+="-"),d+=a<0?"up":"down"),d)},l.applyBounds=function(g,o){var s,r,a,u,d,w;if(g&&i.bounds!==g)return i.bounds=g,e.update(!0,o);if(Ne(!0),_t(),Ye&&!qe()){if(s=e.x,r=e.y,s>A?s=A:s<O&&(s=O),r>Q?r=Q:r<H&&(r=H),(e.x!==s||e.y!==r)&&(a=!0,e.x=e.endX=s,c?e.endRotation=s:e.y=e.endY=r,K=!0,ge(!0),e.autoScroll&&!e.isDragging))for(Mt(n.parentNode),u=n,we.scrollTop=Y.pageYOffset!=null?Y.pageYOffset:P.documentElement.scrollTop!=null?P.documentElement.scrollTop:P.body.scrollTop,we.scrollLeft=Y.pageXOffset!=null?Y.pageXOffset:P.documentElement.scrollLeft!=null?P.documentElement.scrollLeft:P.body.scrollLeft;u&&!w;)w=Ve(u.parentNode),d=w?we:u.parentNode,M&&d.scrollTop>d._gsMaxScrollY&&(d.scrollTop=d._gsMaxScrollY),_&&d.scrollLeft>d._gsMaxScrollX&&(d.scrollLeft=d._gsMaxScrollX),u=d;e.isThrowing&&(a||e.endX>A||e.endX<O||e.endY>Q||e.endY<H)&&vt(i.inertia||i.throwProps,a)}return e},l.update=function(g,o,s){if(o&&e.isPressed){var r=_e.getGlobalMatrix(n),a=It.apply({x:e.x-U,y:e.y-z}),u=_e.getGlobalMatrix(n.parentNode,!0);u.apply({x:r.e-a.x,y:r.f-a.y},a),e.x-=a.x-u.e,e.y-=a.y-u.f,ge(!0),ft()}var d=e.x,w=e.y;return Ft(!o),g?e.applyBounds():(K&&s&&ge(!0),Ne(!0)),o&&(Ze(e.pointerX,e.pointerY),K&&ge(!0)),e.isPressed&&!o&&(_&&Math.abs(d-e.x)>.01||M&&Math.abs(w-e.y)>.01&&!c)&&ft(),e.autoScroll&&(Mt(n.parentNode,e.isDragging),N=e.isDragging,ge(!0),Jt(n,ct),qt(n,ct)),e},l.enable=function(g){var o={lazy:!0},s,r,a;if(i.cursor!==!1&&(o.cursor=i.cursor||it),v.utils.checkPrefix("touchCallout")&&(o.touchCallout="none"),g!=="soft"){for(Vt(y,_===M?"none":i.allowNativeTouchScrolling&&n.scrollHeight===n.clientHeight==(n.scrollWidth===n.clientHeight)||i.allowEventDefault?"manipulation":_?"pan-y":"pan-x"),r=y.length;--r>-1;)a=y[r],ht||V(a,"mousedown",Je),V(a,"touchstart",Je),V(a,"click",Ht,!0),v.set(a,o),a.getBBox&&a.ownerSVGElement&&_!==M&&v.set(a.ownerSVGElement,{touchAction:i.allowNativeTouchScrolling||i.allowEventDefault?"manipulation":_?"pan-y":"pan-x"}),i.allowContextMenu||V(a,"contextmenu",Bt);dt(y,!1)}return qt(n,ct),ye=!0,ce&&g!=="soft"&&ce.track(m||n,x?"x,y":c?"rotation":"top,left"),n._gsDragID=s=n._gsDragID||"d"+hi++,Ge[s]=e,m&&(m.enable(),m.element._gsDragID=s),(i.bounds||c)&&ft(),i.bounds&&e.applyBounds(),e},l.disable=function(g){for(var o=e.isDragging,s=y.length,r;--s>-1;)Dt(y[s],"cursor",null);if(g!=="soft"){for(Vt(y,null),s=y.length;--s>-1;)r=y[s],Dt(r,"touchCallout",null),G(r,"mousedown",Je),G(r,"touchstart",Je),G(r,"click",Ht,!0),G(r,"contextmenu",Bt);dt(y,!0),$&&(G($,"touchcancel",ae),G($,"touchend",ae),G($,"touchmove",Oe)),G(P,"mouseup",ae),G(P,"mousemove",Oe)}return Jt(n,ct),ye=!1,ce&&g!=="soft"&&(ce.untrack(m||n,x?"x,y":c?"rotation":"top,left"),e.tween&&e.tween.kill()),m&&m.disable(),Ut(ge),e.isDragging=e.isPressed=$e=!1,o&&F(e,"dragend","onDragEnd"),e},l.enabled=function(g,o){return arguments.length?g?e.enable(o):e.disable(o):ye},l.kill=function(){return e.isThrowing=!1,e.tween&&e.tween.kill(),e.disable(),v.set(y,{clearProps:"userSelect"}),delete Ge[n._gsDragID],e},l.revert=function(){this.kill(),this.styles&&this.styles.revert()},~f.indexOf("scroll")&&(m=l.scrollProxy=new Ti(n,gi({onKill:function(){e.isPressed&&ae(null)}},i)),n.style.overflowY=M&&!kt?"auto":"hidden",n.style.overflowX=_&&!kt?"auto":"hidden",n=m.content),c?R.rotation=1:(_&&(R[L]=1),M&&(R[T]=1)),D.force3D="force3D"in i?i.force3D:!0,ti(Gt(l)),l.enable(),l}return t.register=function(i){v=i,Et()},t.create=function(i,l){return Pt||Et(!0),ke(i).map(function(f){return new t(f,l)})},t.get=function(i){return Ge[(ke(i)[0]||{})._gsDragID]},t.timeSinceDrag=function(){return(Ee()-Qt)/1e3},t.hitTest=function(i,l,f){if(i===l)return!1;var x=We(i),c=We(l),L=x.top,T=x.left,_=x.right,M=x.bottom,S=x.width,e=x.height,y=c.left>_||c.right<T||c.top>M||c.bottom<L,R,J,N;return y||!f?!y:(N=(f+"").indexOf("%")!==-1,f=parseFloat(f)||0,R={left:Math.max(T,c.left),top:Math.max(L,c.top)},R.width=Math.min(_,c.right)-R.left,R.height=Math.min(M,c.bottom)-R.top,R.width<0||R.height<0?!1:N?(f*=.01,J=R.width*R.height,J>=S*e*f||J>=c.width*c.height*f):R.width>f&&R.height>f)},t})(Mi);yi(Ke.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1});Ke.zIndex=1e3;Ke.version="3.13.0";oi()&&v.registerPlugin(Ke);exports.Draggable=Ke;exports.default=Ke;
|
|
@@ -266,10 +266,10 @@ var v, Y, te, de, ve, bt, _e, Pt, je, Pe, ti, kt, nt, Yt, et, ce, tt, dt, ii, Lt
|
|
|
266
266
|
}, Et = function(t) {
|
|
267
267
|
if (oi() && document.body) {
|
|
268
268
|
var n = window && window.navigator;
|
|
269
|
-
Y = window, te = document, de = te.documentElement, ve = te.body, bt = ct("div"), dt = !!window.PointerEvent, _e = ct("div"), _e.style.cssText = "visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab", tt = _e.style.cursor === "grab" ? "grab" : "move", et = n && n.userAgent.toLowerCase().indexOf("android") !== -1, kt = "ontouchstart" in de && "orientation" in Y || n && (n.MaxTouchPoints > 0 || n.msMaxTouchPoints > 0), Xt = function() {
|
|
269
|
+
Y = window, te = document, de = te.documentElement, ve = te.body, bt = ct("div"), dt = !!window.PointerEvent, _e = ct("div"), _e.style.cssText = "visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab", tt = _e.style.cursor === "grab" ? "grab" : "move", et = n && n.userAgent.toLowerCase().indexOf("android") !== -1, kt = "ontouchstart" in de && "orientation" in Y || n && (n.MaxTouchPoints > 0 || n.msMaxTouchPoints > 0), Xt = (function() {
|
|
270
270
|
var i = ct("div"), l = ct("div"), f = l.style, x = ve, c;
|
|
271
271
|
return f.display = "inline-block", f.position = "relative", i.style.cssText = "width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden", i.appendChild(l), x.appendChild(i), c = l.offsetHeight + 18 > i.scrollHeight, x.removeChild(i), c;
|
|
272
|
-
}(), nt = function(i) {
|
|
272
|
+
})(), nt = (function(i) {
|
|
273
273
|
for (var l = i.split(","), f = ("onpointerdown" in bt ? "pointerdown,pointermove,pointerup,pointercancel" : "onmspointerdown" in bt ? "MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel" : i).split(","), x = {}, c = 4; --c > -1; )
|
|
274
274
|
x[l[c]] = f[c], x[f[c]] = l[c];
|
|
275
275
|
try {
|
|
@@ -281,14 +281,14 @@ var v, Y, te, de, ve, bt, _e, Pt, je, Pe, ti, kt, nt, Yt, et, ce, tt, dt, ii, Lt
|
|
|
281
281
|
} catch {
|
|
282
282
|
}
|
|
283
283
|
return x;
|
|
284
|
-
}("touchstart,touchmove,touchend,touchcancel"), V(te, "touchcancel", ht), V(Y, "touchmove", ht), ve && ve.addEventListener("touchstart", ht), V(te, "contextmenu", function() {
|
|
284
|
+
})("touchstart,touchmove,touchend,touchcancel"), V(te, "touchcancel", ht), V(Y, "touchmove", ht), ve && ve.addEventListener("touchstart", ht), V(te, "contextmenu", function() {
|
|
285
285
|
for (var i in ze)
|
|
286
286
|
ze[i].isPressed && ze[i].endDrag();
|
|
287
287
|
}), v = Pt = ni();
|
|
288
288
|
}
|
|
289
289
|
v ? (ce = v.plugins.inertia, ii = v.core.context || function() {
|
|
290
290
|
}, je = v.utils.checkPrefix, ot = je(ot), Ct = je(Ct), Pe = v.utils.toArray, Lt = v.core.getStyleSaver, si = !!je("perspective")) : t && console.warn("Please gsap.registerPlugin(Draggable)");
|
|
291
|
-
}, Mi = /* @__PURE__ */ function() {
|
|
291
|
+
}, Mi = /* @__PURE__ */ (function() {
|
|
292
292
|
function h(n) {
|
|
293
293
|
this._listeners = {}, this.target = n || this;
|
|
294
294
|
}
|
|
@@ -308,7 +308,7 @@ var v, Y, te, de, ve, bt, _e, Pt, je, Pe, ti, kt, nt, Yt, et, ce, tt, dt, ii, Lt
|
|
|
308
308
|
}) === !1 && (f = !1);
|
|
309
309
|
}), f;
|
|
310
310
|
}, h;
|
|
311
|
-
}(), gt = /* @__PURE__ */ function(h) {
|
|
311
|
+
})(), gt = /* @__PURE__ */ (function(h) {
|
|
312
312
|
di(t, h);
|
|
313
313
|
function t(n, i) {
|
|
314
314
|
var l;
|
|
@@ -585,7 +585,7 @@ var v, Y, te, de, ve, bt, _e, Pt, je, Pe, ti, kt, nt, Yt, et, ce, tt, dt, ii, Lt
|
|
|
585
585
|
top: Math.max(L, c.top)
|
|
586
586
|
}, R.width = Math.min(_, c.right) - R.left, R.height = Math.min(D, c.bottom) - R.top, R.width < 0 || R.height < 0 ? !1 : N ? (f *= 0.01, J = R.width * R.height, J >= S * e * f || J >= c.width * c.height * f) : R.width > f && R.height > f);
|
|
587
587
|
}, t;
|
|
588
|
-
}(Mi);
|
|
588
|
+
})(Mi);
|
|
589
589
|
mi(gt.prototype, {
|
|
590
590
|
pointerX: 0,
|
|
591
591
|
pointerY: 0,
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
6
|
* Subject to the terms at https://gsap.com/standard-license
|
|
7
7
|
* @author: Jack Doyle, jack@greensock.com
|
|
8
|
-
*/var tt=1,ie,A,b,ne,J,q,Ie,Xe=function(e,i){return e.actions.forEach(function(t){return t.vars[i]&&t.vars[i](t)})},Me={},ze=180/Math.PI,it=Math.PI/180,he={},Oe={},fe={},Be=function(e){return typeof e=="string"?e.split(" ").join("").split(","):e},nt=Be("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),de=Be("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),re=function(e){return ie(e)[0]||console.warn("Element not found:",e)},Q=function(e){return Math.round(e*1e4)/1e4||0},xe=function(e,i,t){return e.forEach(function(r){return r.classList[t](i)})},Re={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},je={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},qe=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()},ee=function(e,i){var t={},r;for(r in e)i[r]||(t[r]=e[r]);return t},Ce={},Ne=function(e){var i=Ce[e]=Be(e);return fe[e]=i.concat(de),i},rt=function(e){var i=e._gsap||A.core.getCache(e);return i.gmCache===A.ticker.frame?i.gMatrix:(i.gmCache=A.ticker.frame,i.gMatrix=C.getGlobalMatrix(e,!0,!1,!0))},st=function o(e,i,t){t===void 0&&(t=0);for(var r=e.parentNode,n=1e3*Math.pow(10,t)*(i?-1:1),s=i?-n*900:0;e;)s+=n,e=e.previousSibling;return r?s+o(r,i,t+1):s},pe=function(e,i,t){return e.forEach(function(r){return r.d=st(t?r.element:r.t,i)}),e.sort(function(r,n){return r.d-n.d}),e},se=function(e,i){for(var t=e.element.style,r=e.css=e.css||[],n=i.length,s,l;n--;)s=i[n],l=t[s]||t.getPropertyValue(s),r.push(l?s:Oe[s]||(Oe[s]=qe(s)),l);return t},ce=function(e){var i=e.css,t=e.element.style,r=0;for(e.cache.uncache=1;r<i.length;r+=2)i[r+1]?t[i[r]]=i[r+1]:t.removeProperty(i[r]);!i[i.indexOf("transform")+1]&&t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Ye=function(e,i){e.forEach(function(t){return t.a.cache.uncache=1}),i||e.finalStates.forEach(ce)},we="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),De=function(e,i,t){var r=e.element,n=e.width,s=e.height,l=e.uncache,u=e.getProp,a=r.style,c=4,h,x,w;if(typeof i!="object"&&(i=e),b&&t!==1)return b._abs.push({t:r,b:e,a:e,sd:0}),b._final.push(function(){return(e.cache.uncache=1)&&ce(e)}),r;for(x=u("display")==="none",(!e.isVisible||x)&&(x&&(se(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=n=e.width||i.width,e.height=s=e.height||i.height),se(e,we),w=window.getComputedStyle(r);c--;)a[we[c]]=w[we[c]];if(a.gridArea="1 / 1 / 1 / 1",a.transition="none",a.position="absolute",a.width=n+"px",a.height=s+"px",a.top||(a.top="0px"),a.left||(a.left="0px"),l)h=new $(r);else if(h=ee(e,he),h.position="absolute",e.simple){var _=r.getBoundingClientRect();h.matrix=new C.Matrix2D(1,0,0,1,_.left+C._getDocScrollLeft(),_.top+C._getDocScrollTop())}else h.matrix=C.getGlobalMatrix(r,!1,!1,!0);return h=te(h,e,!0),e.x=q(h.x,.01),e.y=q(h.y,.01),r},Ge=function(e,i){return i!==!0&&(i=ie(i),e=e.filter(function(t){if(i.indexOf((t.sd<0?t.b:t.a).element)!==-1)return!0;t.t._gsap.renderTransform(1),t.b.isVisible&&(t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px")})),e},Je=function(e){return pe(e,!0).forEach(function(i){return(i.a.isVisible||i.b.isVisible)&&De(i.sd<0?i.b:i.a,i.b,1)})},at=function(e,i){return i&&e.idLookup[Ve(i).id]||e.elementStates[0]},Ve=function(e,i,t,r){return e instanceof $?e:e instanceof z?at(e,r):new $(typeof e=="string"?re(e)||console.warn(e+" not found"):e,i,t)},ot=function(e,i){for(var t=A.getProperty(e.element,null,"native"),r=e.props={},n=i.length;n--;)r[i[n]]=(t(i[n])+"").trim();return r.zIndex&&(r.zIndex=parseFloat(r.zIndex)||0),e},Ue=function(e,i){var t=e.style||e,r;for(r in i)t[r]=i[r]},lt=function(e){var i=e.getAttribute("data-flip-id");return i||e.setAttribute("data-flip-id",i="auto-"+tt++),i},$e=function(e){return e.map(function(i){return i.element})},He=function(e,i,t){return e&&i.length&&t.add(e($e(i),t,new z(i,0,!0)),0)},te=function(e,i,t,r,n,s){var l=e.element,u=e.cache,a=e.parent,c=e.x,h=e.y,x=i.width,w=i.height,_=i.scaleX,v=i.scaleY,m=i.rotation,y=i.bounds,L=s&&Ie&&Ie(l,"transform,width,height"),f=e,V=i.matrix,P=V.e,D=V.f,O=e.bounds.width!==y.width||e.bounds.height!==y.height||e.scaleX!==_||e.scaleY!==v||e.rotation!==m,R=!O&&e.simple&&i.simple&&!n,B,g,k,G,X,T,d;return R||!a?(_=v=1,m=B=0):(X=rt(a),T=X.clone().multiply(i.ctm?i.matrix.clone().multiply(i.ctm):i.matrix),m=Q(Math.atan2(T.b,T.a)*ze),B=Q(Math.atan2(T.c,T.d)*ze+m)%360,_=Math.sqrt(Math.pow(T.a,2)+Math.pow(T.b,2)),v=Math.sqrt(Math.pow(T.c,2)+Math.pow(T.d,2))*Math.cos(B*it),n&&(n=ie(n)[0],G=A.getProperty(n),d=n.getBBox&&typeof n.getBBox=="function"&&n.getBBox(),f={scaleX:G("scaleX"),scaleY:G("scaleY"),width:d?d.width:Math.ceil(parseFloat(G("width","px"))),height:d?d.height:parseFloat(G("height","px"))}),u.rotation=m+"deg",u.skewX=B+"deg"),t?(_*=x===f.width||!f.width?1:x/f.width,v*=w===f.height||!f.height?1:w/f.height,u.scaleX=_,u.scaleY=v):(x=q(x*_/f.scaleX,0),w=q(w*v/f.scaleY,0),l.style.width=x+"px",l.style.height=w+"px"),r&&Ue(l,i.props),R||!a?(c+=P-e.matrix.e,h+=D-e.matrix.f):O||a!==i.parent?(u.renderTransform(1,u),T=C.getGlobalMatrix(n||l,!1,!1,!0),g=X.apply({x:T.e,y:T.f}),k=X.apply({x:P,y:D}),c+=k.x-g.x,h+=k.y-g.y):(X.e=X.f=0,k=X.apply({x:P-e.matrix.e,y:D-e.matrix.f}),c+=k.x,h+=k.y),c=q(c,.02),h=q(h,.02),s&&!(s instanceof $)?L&&L.revert():(u.x=c+"px",u.y=h+"px",u.renderTransform(1,u)),s&&(s.x=c,s.y=h,s.rotation=m,s.skewX=B,t?(s.scaleX=_,s.scaleY=v):(s.width=x,s.height=w)),s||u},ve=function(e,i){return e instanceof z?e:new z(e,i)},Ze=function(e,i,t){var r=e.idLookup[t],n=e.alt[t];return n.isVisible&&(!(i.getElementState(n.element)||n).isVisible||!r.isVisible)?n:r},ke=[],Ee="width,height,overflowX,overflowY".split(","),le,We=function(e){if(e!==le){var i=J.style,t=J.clientWidth===window.outerWidth,r=J.clientHeight===window.outerHeight,n=4;if(e&&(t||r)){for(;n--;)ke[n]=i[Ee[n]];t&&(i.width=J.clientWidth+"px",i.overflowY="hidden"),r&&(i.height=J.clientHeight+"px",i.overflowX="hidden"),le=e}else if(le){for(;n--;)ke[n]?i[Ee[n]]=ke[n]:i.removeProperty(qe(Ee[n]));le=e}}},Pe=function(e,i,t,r){e instanceof z&&i instanceof z||console.warn("Not a valid state object."),t=t||{};var n=t,s=n.clearProps,l=n.onEnter,u=n.onLeave,a=n.absolute,c=n.absoluteOnLeave,h=n.custom,x=n.delay,w=n.paused,_=n.repeat,v=n.repeatDelay,m=n.yoyo,y=n.toggleClass,L=n.nested,f=n.zIndex,V=n.scale,P=n.fade,D=n.stagger,O=n.spin,R=n.prune,B=("props"in t?t:e).props,g=ee(t,Re),k=A.timeline({delay:x,paused:w,repeat:_,repeatDelay:v,yoyo:m,data:"isFlip"}),G=g,X=[],T=[],d=[],oe=[],Ke=O===!0?1:O||0,Qe=typeof O=="function"?O:function(){return Ke},ge=e.interrupted||i.interrupted,Te=k[r!==1?"to":"from"],Z,S,Ae,N,M,E,K,Y,me,H,W,ye,I,F;for(S in i.idLookup)W=i.alt[S]?Ze(i,e,S):i.idLookup[S],M=W.element,H=e.idLookup[S],e.alt[S]&&M===H.element&&(e.alt[S].isVisible||!W.isVisible)&&(H=e.alt[S]),H?(E={t:M,b:H,a:W,sd:H.element===M?0:W.isVisible?1:-1},d.push(E),E.sd&&(E.sd<0&&(E.b=W,E.a=H),ge&&se(E.b,B?fe[B]:de),P&&d.push(E.swap={t:H.element,b:E.b,a:E.a,sd:-E.sd,swap:E})),M._flip=H.element._flip=b?b.timeline:k):W.isVisible&&(d.push({t:M,b:ee(W,{isVisible:1}),a:W,sd:0,entering:1}),M._flip=b?b.timeline:k);if(B&&(Ce[B]||Ne(B)).forEach(function(j){return g[j]=function(U){return d[U].a.props[j]}}),d.finalStates=me=[],ye=function(){for(pe(d),We(!0),N=0;N<d.length;N++)E=d[N],I=E.a,F=E.b,R&&!I.isDifferent(F)&&!E.entering?d.splice(N--,1):(M=E.t,L&&!(E.sd<0)&&N&&(I.matrix=C.getGlobalMatrix(M,!1,!1,!0)),F.isVisible&&I.isVisible?(E.sd<0?(K=new $(M,B,e.simple),te(K,I,V,0,0,K),K.matrix=C.getGlobalMatrix(M,!1,!1,!0),K.css=E.b.css,E.a=I=K,P&&(M.style.opacity=ge?F.opacity:I.opacity),D&&oe.push(M)):E.sd>0&&P&&(M.style.opacity=ge?I.opacity-F.opacity:"0"),te(I,F,V,B)):F.isVisible!==I.isVisible&&(F.isVisible?I.isVisible||(F.css=I.css,T.push(F),d.splice(N--,1),a&&L&&te(I,F,V,B)):(I.isVisible&&X.push(I),d.splice(N--,1))),V||(M.style.maxWidth=Math.max(I.width,F.width)+"px",M.style.maxHeight=Math.max(I.height,F.height)+"px",M.style.minWidth=Math.min(I.width,F.width)+"px",M.style.minHeight=Math.min(I.height,F.height)+"px"),L&&y&&M.classList.add(y)),me.push(I);var U;if(y&&(U=me.map(function(p){return p.element}),L&&U.forEach(function(p){return p.classList.remove(y)})),We(!1),V?(g.scaleX=function(p){return d[p].a.scaleX},g.scaleY=function(p){return d[p].a.scaleY}):(g.width=function(p){return d[p].a.width+"px"},g.height=function(p){return d[p].a.height+"px"},g.autoRound=t.autoRound||!1),g.x=function(p){return d[p].a.x+"px"},g.y=function(p){return d[p].a.y+"px"},g.rotation=function(p){return d[p].a.rotation+(O?Qe(p,Y[p],Y)*360:0)},g.skewX=function(p){return d[p].a.skewX},Y=d.map(function(p){return p.t}),(f||f===0)&&(g.modifiers={zIndex:function(){return f}},g.zIndex=f,g.immediateRender=t.immediateRender!==!1),P&&(g.opacity=function(p){return d[p].sd<0?0:d[p].sd>0?d[p].a.opacity:"+=0"}),oe.length){D=A.utils.distribute(D);var et=Y.slice(oe.length);g.stagger=function(p,Se){return D(~oe.indexOf(Se)?Y.indexOf(d[p].swap.t):p,Se,et)}}if(nt.forEach(function(p){return t[p]&&k.eventCallback(p,t[p],t[p+"Params"])}),h&&Y.length){G=ee(g,Re),"scale"in h&&(h.scaleX=h.scaleY=h.scale,delete h.scale);for(S in h)Z=ee(h[S],je),Z[S]=g[S],!("duration"in Z)&&"duration"in g&&(Z.duration=g.duration),Z.stagger=g.stagger,Te.call(k,Y,Z,0),delete G[S]}(Y.length||T.length||X.length)&&(y&&k.add(function(){return xe(U,y,k._zTime<0?"remove":"add")},0)&&!w&&xe(U,y,"add"),Y.length&&Te.call(k,Y,G,0)),He(l,X,k),He(u,T,k);var be=b&&b.timeline;be&&(be.add(k,0),b._final.push(function(){return Ye(d,!s)})),Ae=k.duration(),k.call(function(){var p=k.time()>=Ae;p&&!be&&Ye(d,!s),y&&xe(U,y,p?"remove":"add")})},c&&(a=d.filter(function(j){return!j.sd&&!j.a.isVisible&&j.b.isVisible}).map(function(j){return j.a.element})),b){var Fe;a&&(Fe=b._abs).push.apply(Fe,Ge(d,a)),b._run.push(ye)}else a&&Je(Ge(d,a)),ye();var _e=b?b.timeline:k;return _e.revert=function(){return Le(_e,1,1)},_e},ut=function o(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(o)},Le=function(e,i,t){if(e&&e.progress()<1&&(!e.paused()||t))return i&&(ut(e),i<2&&e.progress(1),e.kill()),!0},ue=function(e){for(var i=e.idLookup={},t=e.alt={},r=e.elementStates,n=r.length,s;n--;)s=r[n],i[s.id]?t[s.id]=s:i[s.id]=s},z=function(){function o(i,t,r){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),r)this.targets=$e(i),this.elementStates=i,ue(this);else{this.targets=ie(i);var n=t&&(t.kill===!1||t.batch&&!t.kill);b&&!n&&b._kill.push(this),this.update(n||!!b)}}var e=o.prototype;return e.update=function(t){var r=this;return this.elementStates=this.targets.map(function(n){return new $(n,r.props,r.simple)}),ue(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,ue(this),this},e.fit=function(t,r,n){for(var s=pe(this.elementStates.slice(0),!1,!0),l=(t||this).idLookup,u=0,a,c;u<s.length;u++)a=s[u],n&&(a.matrix=C.getGlobalMatrix(a.element,!1,!1,!0)),c=l[a.id],c&&te(a,c,r,!0,0,a),a.matrix=C.getGlobalMatrix(a.element,!1,!1,!0);return this},e.getProperty=function(t,r){var n=this.getElementState(t)||he;return(r in n?n:n.props||he)[r]},e.add=function(t){for(var r=t.targets.length,n=this.idLookup,s=this.alt,l,u,a;r--;)u=t.elementStates[r],a=n[u.id],a&&(u.element===a.element||s[u.id]&&s[u.id].element===u.element)?(l=this.elementStates.indexOf(u.element===a.element?a:s[u.id]),this.targets.splice(l,1,t.targets[r]),this.elementStates.splice(l,1,u)):(this.targets.push(t.targets[r]),this.elementStates.push(u));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),ue(this),this},e.compare=function(t){var r=t.idLookup,n=this.idLookup,s=[],l=[],u=[],a=[],c=[],h=t.alt,x=this.alt,w=function(R,B,g){return(R.isVisible!==B.isVisible?R.isVisible?u:a:R.isVisible?l:s).push(g)&&c.push(g)},_=function(R,B,g){return c.indexOf(g)<0&&w(R,B,g)},v,m,y,L,f,V,P,D;for(y in r)f=h[y],V=x[y],v=f?Ze(t,this,y):r[y],L=v.element,m=n[y],V?(D=m.isVisible||!V.isVisible&&L===m.element?m:V,P=f&&!v.isVisible&&!f.isVisible&&D.element===f.element?f:v,P.isVisible&&D.isVisible&&P.element!==D.element?((P.isDifferent(D)?l:s).push(P.element,D.element),c.push(P.element,D.element)):w(P,D,P.element),f&&P.element===f.element&&(f=r[y]),_(P.element!==m.element&&f?f:P,m,m.element),_(f&&f.element===V.element?f:P,V,V.element),f&&_(f,V.element===f.element?V:m,f.element)):(m?m.isDifferent(v)?w(v,m,L):s.push(L):u.push(L),f&&_(f,m,f.element));for(y in n)r[y]||(a.push(n[y].element),x[y]&&a.push(x[y].element));return{changed:l,unchanged:s,enter:u,leave:a}},e.recordInlineStyles=function(){for(var t=fe[this.props]||de,r=this.elementStates.length;r--;)se(this.elementStates[r],t)},e.interrupt=function(t){var r=this,n=[];this.targets.forEach(function(s){var l=s._flip,u=Le(l,t?0:1);t&&u&&n.indexOf(l)<0&&l.add(function(){return r.updateVisibility()}),u&&n.push(l)}),!t&&n.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!n.length)},e.updateVisibility=function(){this.elementStates.forEach(function(t){var r=t.element.getBoundingClientRect();t.isVisible=!!(r.width||r.height||r.top||r.left),t.uncache=1})},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(re(t))]},e.makeAbsolute=function(){return pe(this.elementStates.slice(0),!0,!0).map(De)},o}(),$=function(){function o(i,t,r){this.element=i,this.update(t,r)}var e=o.prototype;return e.isDifferent=function(t){var r=this.bounds,n=t.bounds;return r.top!==n.top||r.left!==n.left||r.width!==n.width||r.height!==n.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},e.update=function(t,r){var n=this,s=n.element,l=A.getProperty(s),u=A.core.getCache(s),a=s.getBoundingClientRect(),c=s.getBBox&&typeof s.getBBox=="function"&&s.nodeName.toLowerCase()!=="svg"&&s.getBBox(),h=r?new C.Matrix2D(1,0,0,1,a.left+C._getDocScrollLeft(),a.top+C._getDocScrollTop()):C.getGlobalMatrix(s,!1,!1,!0);u.uncache=1,n.getProp=l,n.element=s,n.id=lt(s),n.matrix=h,n.cache=u,n.bounds=a,n.isVisible=!!(a.width||a.height||a.left||a.top),n.display=l("display"),n.position=l("position"),n.parent=s.parentNode,n.x=l("x"),n.y=l("y"),n.scaleX=u.scaleX,n.scaleY=u.scaleY,n.rotation=l("rotation"),n.skewX=l("skewX"),n.opacity=l("opacity"),n.width=c?c.width:q(l("width","px"),.04),n.height=c?c.height:q(l("height","px"),.04),t&&ot(n,Ce[t]||Ne(t)),n.ctm=s.getCTM&&s.nodeName.toLowerCase()==="svg"&&C._getCTM(s).inverse(),n.simple=r||Q(h.a)===1&&!Q(h.b)&&!Q(h.c)&&Q(h.d)===1,n.uncache=0},o}(),ht=function(){function o(i,t){this.vars=i,this.batch=t,this.states=[],this.timeline=t.timeline}var e=o.prototype;return e.getStateById=function(t){for(var r=this.states.length;r--;)if(this.states[r].idLookup[t])return this.states[r]},e.kill=function(){this.batch.remove(this)},o}(),pt=function(){function o(i){this.id=i,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new z,this.timeline=A.timeline()}var e=o.prototype;return e.add=function(t){var r=this.actions.filter(function(n){return n.vars===t});return r.length?r[0]:(r=new ht(typeof t=="function"?{animate:t}:t,this),this.actions.push(r),r)},e.remove=function(t){var r=this.actions.indexOf(t);return r>=0&&this.actions.splice(r,1),this},e.getState=function(t){var r=this,n=b,s=ne;return b=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(l){l.vars.getState&&(l.states.length=0,ne=l,l.state=l.vars.getState(l)),t&&l.states.forEach(function(u){return r.state.add(u)})}),ne=s,b=n,this.killConflicts(),this},e.animate=function(){var t=this,r=b,n=this.timeline,s=this.actions.length,l,u;for(b=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(a){a.vars.animate&&a.vars.animate(a);var c=a.vars.onEnter,h=a.vars.onLeave,x=a.targets,w,_;x&&x.length&&(c||h)&&(w=new z,a.states.forEach(function(v){return w.add(v)}),_=w.compare(ae.getState(x)),_.enter.length&&c&&c(_.enter),_.leave.length&&h&&h(_.leave))}),Je(this._abs),this._run.forEach(function(a){return a()}),u=n.duration(),l=this._final.slice(0),n.add(function(){u<=n.time()&&(l.forEach(function(a){return a()}),Xe(t,"onComplete"))}),b=r;s--;)this.actions[s].vars.once&&this.actions[s].kill();return Xe(this,"onStart"),n.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var r=[];return this.actions.forEach(function(n){if(n.vars.loadState){var s,l=function u(a){a&&(n.targets=a),s=r.indexOf(u),~s&&(r.splice(s,1),r.length||t())};r.push(l),n.vars.loadState(l)}}),r.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(r){return r.interrupt(t)}),this},e.run=function(t,r){var n=this;return this!==b&&(t||this.getState(r),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var r=this.actions.length,n;r--;)if(n=this.actions[r].getStateById(t),n)return n;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete Me[this.id]},o}(),ae=function(){function o(){}return o.getState=function(i,t){var r=ve(i,t);return ne&&ne.states.push(r),t&&t.batch&&o.batch(t.batch).state.add(r),r},o.from=function(i,t){return t=t||{},"clearProps"in t||(t.clearProps=!0),Pe(i,ve(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,-1)},o.to=function(i,t){return Pe(i,ve(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,1)},o.fromTo=function(i,t,r){return Pe(i,t,r)},o.fit=function(i,t,r){var n=r?ee(r,je):{},s=r||n,l=s.absolute,u=s.scale,a=s.getVars,c=s.props,h=s.runBackwards,x=s.onComplete,w=s.simple,_=r&&r.fitChild&&re(r.fitChild),v=Ve(t,c,w,i),m=Ve(i,0,w,v),y=c?fe[c]:de,L=A.context();return c&&Ue(n,v.props),se(m,y),h&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ce(m),x&&x.apply(this,arguments)}),l&&De(m,v),n=te(m,v,u||_,!n.duration&&c,_,n.duration||a?n:0),typeof r=="object"&&"zIndex"in r&&(n.zIndex=r.zIndex),L&&!a&&L.add(function(){return function(){return ce(m)}}),a?n:n.duration?A.to(m.element,n):null},o.makeAbsolute=function(i,t){return(i instanceof z?i:new z(i,t)).makeAbsolute()},o.batch=function(i){return i||(i="default"),Me[i]||(Me[i]=new pt(i))},o.killFlipsOf=function(i,t){(i instanceof z?i.targets:ie(i)).forEach(function(r){return r&&Le(r._flip,t!==!1?1:2)})},o.isFlipping=function(i){var t=o.getByTarget(i);return!!t&&t.isActive()},o.getByTarget=function(i){return(re(i)||he)._flip},o.getElementState=function(i,t){return new $(re(i),t)},o.convertCoordinates=function(i,t,r){var n=C.getGlobalMatrix(t,!0,!0).multiply(C.getGlobalMatrix(i));return r?n.apply(r):n},o.register=function(i){if(J=typeof document!="undefined"&&document.body,J){A=i,C._setDoc(J),ie=A.utils.toArray,Ie=A.core.getStyleSaver;var t=A.utils.snap(.1);q=function(n,s){return t(parseFloat(n)+s)}}},o}();ae.version="3.13.0";typeof window!="undefined"&&window.gsap&&window.gsap.registerPlugin(ae);exports.Flip=ae;exports.default=ae;
|
|
8
|
+
*/var tt=1,ie,A,b,ne,J,q,Ie,Xe=function(e,i){return e.actions.forEach(function(t){return t.vars[i]&&t.vars[i](t)})},Me={},ze=180/Math.PI,it=Math.PI/180,he={},Oe={},fe={},Be=function(e){return typeof e=="string"?e.split(" ").join("").split(","):e},nt=Be("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),de=Be("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),re=function(e){return ie(e)[0]||console.warn("Element not found:",e)},Q=function(e){return Math.round(e*1e4)/1e4||0},xe=function(e,i,t){return e.forEach(function(r){return r.classList[t](i)})},Re={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},je={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},qe=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()},ee=function(e,i){var t={},r;for(r in e)i[r]||(t[r]=e[r]);return t},Ce={},Ne=function(e){var i=Ce[e]=Be(e);return fe[e]=i.concat(de),i},rt=function(e){var i=e._gsap||A.core.getCache(e);return i.gmCache===A.ticker.frame?i.gMatrix:(i.gmCache=A.ticker.frame,i.gMatrix=C.getGlobalMatrix(e,!0,!1,!0))},st=function o(e,i,t){t===void 0&&(t=0);for(var r=e.parentNode,n=1e3*Math.pow(10,t)*(i?-1:1),s=i?-n*900:0;e;)s+=n,e=e.previousSibling;return r?s+o(r,i,t+1):s},pe=function(e,i,t){return e.forEach(function(r){return r.d=st(t?r.element:r.t,i)}),e.sort(function(r,n){return r.d-n.d}),e},se=function(e,i){for(var t=e.element.style,r=e.css=e.css||[],n=i.length,s,l;n--;)s=i[n],l=t[s]||t.getPropertyValue(s),r.push(l?s:Oe[s]||(Oe[s]=qe(s)),l);return t},ce=function(e){var i=e.css,t=e.element.style,r=0;for(e.cache.uncache=1;r<i.length;r+=2)i[r+1]?t[i[r]]=i[r+1]:t.removeProperty(i[r]);!i[i.indexOf("transform")+1]&&t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Ye=function(e,i){e.forEach(function(t){return t.a.cache.uncache=1}),i||e.finalStates.forEach(ce)},we="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),De=function(e,i,t){var r=e.element,n=e.width,s=e.height,l=e.uncache,u=e.getProp,a=r.style,c=4,h,x,w;if(typeof i!="object"&&(i=e),b&&t!==1)return b._abs.push({t:r,b:e,a:e,sd:0}),b._final.push(function(){return(e.cache.uncache=1)&&ce(e)}),r;for(x=u("display")==="none",(!e.isVisible||x)&&(x&&(se(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=n=e.width||i.width,e.height=s=e.height||i.height),se(e,we),w=window.getComputedStyle(r);c--;)a[we[c]]=w[we[c]];if(a.gridArea="1 / 1 / 1 / 1",a.transition="none",a.position="absolute",a.width=n+"px",a.height=s+"px",a.top||(a.top="0px"),a.left||(a.left="0px"),l)h=new $(r);else if(h=ee(e,he),h.position="absolute",e.simple){var _=r.getBoundingClientRect();h.matrix=new C.Matrix2D(1,0,0,1,_.left+C._getDocScrollLeft(),_.top+C._getDocScrollTop())}else h.matrix=C.getGlobalMatrix(r,!1,!1,!0);return h=te(h,e,!0),e.x=q(h.x,.01),e.y=q(h.y,.01),r},Ge=function(e,i){return i!==!0&&(i=ie(i),e=e.filter(function(t){if(i.indexOf((t.sd<0?t.b:t.a).element)!==-1)return!0;t.t._gsap.renderTransform(1),t.b.isVisible&&(t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px")})),e},Je=function(e){return pe(e,!0).forEach(function(i){return(i.a.isVisible||i.b.isVisible)&&De(i.sd<0?i.b:i.a,i.b,1)})},at=function(e,i){return i&&e.idLookup[Ve(i).id]||e.elementStates[0]},Ve=function(e,i,t,r){return e instanceof $?e:e instanceof z?at(e,r):new $(typeof e=="string"?re(e)||console.warn(e+" not found"):e,i,t)},ot=function(e,i){for(var t=A.getProperty(e.element,null,"native"),r=e.props={},n=i.length;n--;)r[i[n]]=(t(i[n])+"").trim();return r.zIndex&&(r.zIndex=parseFloat(r.zIndex)||0),e},Ue=function(e,i){var t=e.style||e,r;for(r in i)t[r]=i[r]},lt=function(e){var i=e.getAttribute("data-flip-id");return i||e.setAttribute("data-flip-id",i="auto-"+tt++),i},$e=function(e){return e.map(function(i){return i.element})},He=function(e,i,t){return e&&i.length&&t.add(e($e(i),t,new z(i,0,!0)),0)},te=function(e,i,t,r,n,s){var l=e.element,u=e.cache,a=e.parent,c=e.x,h=e.y,x=i.width,w=i.height,_=i.scaleX,v=i.scaleY,m=i.rotation,y=i.bounds,L=s&&Ie&&Ie(l,"transform,width,height"),f=e,V=i.matrix,P=V.e,D=V.f,O=e.bounds.width!==y.width||e.bounds.height!==y.height||e.scaleX!==_||e.scaleY!==v||e.rotation!==m,R=!O&&e.simple&&i.simple&&!n,B,g,k,G,X,T,d;return R||!a?(_=v=1,m=B=0):(X=rt(a),T=X.clone().multiply(i.ctm?i.matrix.clone().multiply(i.ctm):i.matrix),m=Q(Math.atan2(T.b,T.a)*ze),B=Q(Math.atan2(T.c,T.d)*ze+m)%360,_=Math.sqrt(Math.pow(T.a,2)+Math.pow(T.b,2)),v=Math.sqrt(Math.pow(T.c,2)+Math.pow(T.d,2))*Math.cos(B*it),n&&(n=ie(n)[0],G=A.getProperty(n),d=n.getBBox&&typeof n.getBBox=="function"&&n.getBBox(),f={scaleX:G("scaleX"),scaleY:G("scaleY"),width:d?d.width:Math.ceil(parseFloat(G("width","px"))),height:d?d.height:parseFloat(G("height","px"))}),u.rotation=m+"deg",u.skewX=B+"deg"),t?(_*=x===f.width||!f.width?1:x/f.width,v*=w===f.height||!f.height?1:w/f.height,u.scaleX=_,u.scaleY=v):(x=q(x*_/f.scaleX,0),w=q(w*v/f.scaleY,0),l.style.width=x+"px",l.style.height=w+"px"),r&&Ue(l,i.props),R||!a?(c+=P-e.matrix.e,h+=D-e.matrix.f):O||a!==i.parent?(u.renderTransform(1,u),T=C.getGlobalMatrix(n||l,!1,!1,!0),g=X.apply({x:T.e,y:T.f}),k=X.apply({x:P,y:D}),c+=k.x-g.x,h+=k.y-g.y):(X.e=X.f=0,k=X.apply({x:P-e.matrix.e,y:D-e.matrix.f}),c+=k.x,h+=k.y),c=q(c,.02),h=q(h,.02),s&&!(s instanceof $)?L&&L.revert():(u.x=c+"px",u.y=h+"px",u.renderTransform(1,u)),s&&(s.x=c,s.y=h,s.rotation=m,s.skewX=B,t?(s.scaleX=_,s.scaleY=v):(s.width=x,s.height=w)),s||u},ve=function(e,i){return e instanceof z?e:new z(e,i)},Ze=function(e,i,t){var r=e.idLookup[t],n=e.alt[t];return n.isVisible&&(!(i.getElementState(n.element)||n).isVisible||!r.isVisible)?n:r},ke=[],Ee="width,height,overflowX,overflowY".split(","),le,We=function(e){if(e!==le){var i=J.style,t=J.clientWidth===window.outerWidth,r=J.clientHeight===window.outerHeight,n=4;if(e&&(t||r)){for(;n--;)ke[n]=i[Ee[n]];t&&(i.width=J.clientWidth+"px",i.overflowY="hidden"),r&&(i.height=J.clientHeight+"px",i.overflowX="hidden"),le=e}else if(le){for(;n--;)ke[n]?i[Ee[n]]=ke[n]:i.removeProperty(qe(Ee[n]));le=e}}},Pe=function(e,i,t,r){e instanceof z&&i instanceof z||console.warn("Not a valid state object."),t=t||{};var n=t,s=n.clearProps,l=n.onEnter,u=n.onLeave,a=n.absolute,c=n.absoluteOnLeave,h=n.custom,x=n.delay,w=n.paused,_=n.repeat,v=n.repeatDelay,m=n.yoyo,y=n.toggleClass,L=n.nested,f=n.zIndex,V=n.scale,P=n.fade,D=n.stagger,O=n.spin,R=n.prune,B=("props"in t?t:e).props,g=ee(t,Re),k=A.timeline({delay:x,paused:w,repeat:_,repeatDelay:v,yoyo:m,data:"isFlip"}),G=g,X=[],T=[],d=[],oe=[],Ke=O===!0?1:O||0,Qe=typeof O=="function"?O:function(){return Ke},ge=e.interrupted||i.interrupted,Te=k[r!==1?"to":"from"],Z,S,Ae,N,M,E,K,Y,me,H,W,ye,I,F;for(S in i.idLookup)W=i.alt[S]?Ze(i,e,S):i.idLookup[S],M=W.element,H=e.idLookup[S],e.alt[S]&&M===H.element&&(e.alt[S].isVisible||!W.isVisible)&&(H=e.alt[S]),H?(E={t:M,b:H,a:W,sd:H.element===M?0:W.isVisible?1:-1},d.push(E),E.sd&&(E.sd<0&&(E.b=W,E.a=H),ge&&se(E.b,B?fe[B]:de),P&&d.push(E.swap={t:H.element,b:E.b,a:E.a,sd:-E.sd,swap:E})),M._flip=H.element._flip=b?b.timeline:k):W.isVisible&&(d.push({t:M,b:ee(W,{isVisible:1}),a:W,sd:0,entering:1}),M._flip=b?b.timeline:k);if(B&&(Ce[B]||Ne(B)).forEach(function(j){return g[j]=function(U){return d[U].a.props[j]}}),d.finalStates=me=[],ye=function(){for(pe(d),We(!0),N=0;N<d.length;N++)E=d[N],I=E.a,F=E.b,R&&!I.isDifferent(F)&&!E.entering?d.splice(N--,1):(M=E.t,L&&!(E.sd<0)&&N&&(I.matrix=C.getGlobalMatrix(M,!1,!1,!0)),F.isVisible&&I.isVisible?(E.sd<0?(K=new $(M,B,e.simple),te(K,I,V,0,0,K),K.matrix=C.getGlobalMatrix(M,!1,!1,!0),K.css=E.b.css,E.a=I=K,P&&(M.style.opacity=ge?F.opacity:I.opacity),D&&oe.push(M)):E.sd>0&&P&&(M.style.opacity=ge?I.opacity-F.opacity:"0"),te(I,F,V,B)):F.isVisible!==I.isVisible&&(F.isVisible?I.isVisible||(F.css=I.css,T.push(F),d.splice(N--,1),a&&L&&te(I,F,V,B)):(I.isVisible&&X.push(I),d.splice(N--,1))),V||(M.style.maxWidth=Math.max(I.width,F.width)+"px",M.style.maxHeight=Math.max(I.height,F.height)+"px",M.style.minWidth=Math.min(I.width,F.width)+"px",M.style.minHeight=Math.min(I.height,F.height)+"px"),L&&y&&M.classList.add(y)),me.push(I);var U;if(y&&(U=me.map(function(p){return p.element}),L&&U.forEach(function(p){return p.classList.remove(y)})),We(!1),V?(g.scaleX=function(p){return d[p].a.scaleX},g.scaleY=function(p){return d[p].a.scaleY}):(g.width=function(p){return d[p].a.width+"px"},g.height=function(p){return d[p].a.height+"px"},g.autoRound=t.autoRound||!1),g.x=function(p){return d[p].a.x+"px"},g.y=function(p){return d[p].a.y+"px"},g.rotation=function(p){return d[p].a.rotation+(O?Qe(p,Y[p],Y)*360:0)},g.skewX=function(p){return d[p].a.skewX},Y=d.map(function(p){return p.t}),(f||f===0)&&(g.modifiers={zIndex:function(){return f}},g.zIndex=f,g.immediateRender=t.immediateRender!==!1),P&&(g.opacity=function(p){return d[p].sd<0?0:d[p].sd>0?d[p].a.opacity:"+=0"}),oe.length){D=A.utils.distribute(D);var et=Y.slice(oe.length);g.stagger=function(p,Se){return D(~oe.indexOf(Se)?Y.indexOf(d[p].swap.t):p,Se,et)}}if(nt.forEach(function(p){return t[p]&&k.eventCallback(p,t[p],t[p+"Params"])}),h&&Y.length){G=ee(g,Re),"scale"in h&&(h.scaleX=h.scaleY=h.scale,delete h.scale);for(S in h)Z=ee(h[S],je),Z[S]=g[S],!("duration"in Z)&&"duration"in g&&(Z.duration=g.duration),Z.stagger=g.stagger,Te.call(k,Y,Z,0),delete G[S]}(Y.length||T.length||X.length)&&(y&&k.add(function(){return xe(U,y,k._zTime<0?"remove":"add")},0)&&!w&&xe(U,y,"add"),Y.length&&Te.call(k,Y,G,0)),He(l,X,k),He(u,T,k);var be=b&&b.timeline;be&&(be.add(k,0),b._final.push(function(){return Ye(d,!s)})),Ae=k.duration(),k.call(function(){var p=k.time()>=Ae;p&&!be&&Ye(d,!s),y&&xe(U,y,p?"remove":"add")})},c&&(a=d.filter(function(j){return!j.sd&&!j.a.isVisible&&j.b.isVisible}).map(function(j){return j.a.element})),b){var Fe;a&&(Fe=b._abs).push.apply(Fe,Ge(d,a)),b._run.push(ye)}else a&&Je(Ge(d,a)),ye();var _e=b?b.timeline:k;return _e.revert=function(){return Le(_e,1,1)},_e},ut=function o(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(o)},Le=function(e,i,t){if(e&&e.progress()<1&&(!e.paused()||t))return i&&(ut(e),i<2&&e.progress(1),e.kill()),!0},ue=function(e){for(var i=e.idLookup={},t=e.alt={},r=e.elementStates,n=r.length,s;n--;)s=r[n],i[s.id]?t[s.id]=s:i[s.id]=s},z=(function(){function o(i,t,r){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),r)this.targets=$e(i),this.elementStates=i,ue(this);else{this.targets=ie(i);var n=t&&(t.kill===!1||t.batch&&!t.kill);b&&!n&&b._kill.push(this),this.update(n||!!b)}}var e=o.prototype;return e.update=function(t){var r=this;return this.elementStates=this.targets.map(function(n){return new $(n,r.props,r.simple)}),ue(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,ue(this),this},e.fit=function(t,r,n){for(var s=pe(this.elementStates.slice(0),!1,!0),l=(t||this).idLookup,u=0,a,c;u<s.length;u++)a=s[u],n&&(a.matrix=C.getGlobalMatrix(a.element,!1,!1,!0)),c=l[a.id],c&&te(a,c,r,!0,0,a),a.matrix=C.getGlobalMatrix(a.element,!1,!1,!0);return this},e.getProperty=function(t,r){var n=this.getElementState(t)||he;return(r in n?n:n.props||he)[r]},e.add=function(t){for(var r=t.targets.length,n=this.idLookup,s=this.alt,l,u,a;r--;)u=t.elementStates[r],a=n[u.id],a&&(u.element===a.element||s[u.id]&&s[u.id].element===u.element)?(l=this.elementStates.indexOf(u.element===a.element?a:s[u.id]),this.targets.splice(l,1,t.targets[r]),this.elementStates.splice(l,1,u)):(this.targets.push(t.targets[r]),this.elementStates.push(u));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),ue(this),this},e.compare=function(t){var r=t.idLookup,n=this.idLookup,s=[],l=[],u=[],a=[],c=[],h=t.alt,x=this.alt,w=function(R,B,g){return(R.isVisible!==B.isVisible?R.isVisible?u:a:R.isVisible?l:s).push(g)&&c.push(g)},_=function(R,B,g){return c.indexOf(g)<0&&w(R,B,g)},v,m,y,L,f,V,P,D;for(y in r)f=h[y],V=x[y],v=f?Ze(t,this,y):r[y],L=v.element,m=n[y],V?(D=m.isVisible||!V.isVisible&&L===m.element?m:V,P=f&&!v.isVisible&&!f.isVisible&&D.element===f.element?f:v,P.isVisible&&D.isVisible&&P.element!==D.element?((P.isDifferent(D)?l:s).push(P.element,D.element),c.push(P.element,D.element)):w(P,D,P.element),f&&P.element===f.element&&(f=r[y]),_(P.element!==m.element&&f?f:P,m,m.element),_(f&&f.element===V.element?f:P,V,V.element),f&&_(f,V.element===f.element?V:m,f.element)):(m?m.isDifferent(v)?w(v,m,L):s.push(L):u.push(L),f&&_(f,m,f.element));for(y in n)r[y]||(a.push(n[y].element),x[y]&&a.push(x[y].element));return{changed:l,unchanged:s,enter:u,leave:a}},e.recordInlineStyles=function(){for(var t=fe[this.props]||de,r=this.elementStates.length;r--;)se(this.elementStates[r],t)},e.interrupt=function(t){var r=this,n=[];this.targets.forEach(function(s){var l=s._flip,u=Le(l,t?0:1);t&&u&&n.indexOf(l)<0&&l.add(function(){return r.updateVisibility()}),u&&n.push(l)}),!t&&n.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!n.length)},e.updateVisibility=function(){this.elementStates.forEach(function(t){var r=t.element.getBoundingClientRect();t.isVisible=!!(r.width||r.height||r.top||r.left),t.uncache=1})},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(re(t))]},e.makeAbsolute=function(){return pe(this.elementStates.slice(0),!0,!0).map(De)},o})(),$=(function(){function o(i,t,r){this.element=i,this.update(t,r)}var e=o.prototype;return e.isDifferent=function(t){var r=this.bounds,n=t.bounds;return r.top!==n.top||r.left!==n.left||r.width!==n.width||r.height!==n.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},e.update=function(t,r){var n=this,s=n.element,l=A.getProperty(s),u=A.core.getCache(s),a=s.getBoundingClientRect(),c=s.getBBox&&typeof s.getBBox=="function"&&s.nodeName.toLowerCase()!=="svg"&&s.getBBox(),h=r?new C.Matrix2D(1,0,0,1,a.left+C._getDocScrollLeft(),a.top+C._getDocScrollTop()):C.getGlobalMatrix(s,!1,!1,!0);u.uncache=1,n.getProp=l,n.element=s,n.id=lt(s),n.matrix=h,n.cache=u,n.bounds=a,n.isVisible=!!(a.width||a.height||a.left||a.top),n.display=l("display"),n.position=l("position"),n.parent=s.parentNode,n.x=l("x"),n.y=l("y"),n.scaleX=u.scaleX,n.scaleY=u.scaleY,n.rotation=l("rotation"),n.skewX=l("skewX"),n.opacity=l("opacity"),n.width=c?c.width:q(l("width","px"),.04),n.height=c?c.height:q(l("height","px"),.04),t&&ot(n,Ce[t]||Ne(t)),n.ctm=s.getCTM&&s.nodeName.toLowerCase()==="svg"&&C._getCTM(s).inverse(),n.simple=r||Q(h.a)===1&&!Q(h.b)&&!Q(h.c)&&Q(h.d)===1,n.uncache=0},o})(),ht=(function(){function o(i,t){this.vars=i,this.batch=t,this.states=[],this.timeline=t.timeline}var e=o.prototype;return e.getStateById=function(t){for(var r=this.states.length;r--;)if(this.states[r].idLookup[t])return this.states[r]},e.kill=function(){this.batch.remove(this)},o})(),pt=(function(){function o(i){this.id=i,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new z,this.timeline=A.timeline()}var e=o.prototype;return e.add=function(t){var r=this.actions.filter(function(n){return n.vars===t});return r.length?r[0]:(r=new ht(typeof t=="function"?{animate:t}:t,this),this.actions.push(r),r)},e.remove=function(t){var r=this.actions.indexOf(t);return r>=0&&this.actions.splice(r,1),this},e.getState=function(t){var r=this,n=b,s=ne;return b=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(l){l.vars.getState&&(l.states.length=0,ne=l,l.state=l.vars.getState(l)),t&&l.states.forEach(function(u){return r.state.add(u)})}),ne=s,b=n,this.killConflicts(),this},e.animate=function(){var t=this,r=b,n=this.timeline,s=this.actions.length,l,u;for(b=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(a){a.vars.animate&&a.vars.animate(a);var c=a.vars.onEnter,h=a.vars.onLeave,x=a.targets,w,_;x&&x.length&&(c||h)&&(w=new z,a.states.forEach(function(v){return w.add(v)}),_=w.compare(ae.getState(x)),_.enter.length&&c&&c(_.enter),_.leave.length&&h&&h(_.leave))}),Je(this._abs),this._run.forEach(function(a){return a()}),u=n.duration(),l=this._final.slice(0),n.add(function(){u<=n.time()&&(l.forEach(function(a){return a()}),Xe(t,"onComplete"))}),b=r;s--;)this.actions[s].vars.once&&this.actions[s].kill();return Xe(this,"onStart"),n.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var r=[];return this.actions.forEach(function(n){if(n.vars.loadState){var s,l=function u(a){a&&(n.targets=a),s=r.indexOf(u),~s&&(r.splice(s,1),r.length||t())};r.push(l),n.vars.loadState(l)}}),r.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(r){return r.interrupt(t)}),this},e.run=function(t,r){var n=this;return this!==b&&(t||this.getState(r),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var r=this.actions.length,n;r--;)if(n=this.actions[r].getStateById(t),n)return n;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete Me[this.id]},o})(),ae=(function(){function o(){}return o.getState=function(i,t){var r=ve(i,t);return ne&&ne.states.push(r),t&&t.batch&&o.batch(t.batch).state.add(r),r},o.from=function(i,t){return t=t||{},"clearProps"in t||(t.clearProps=!0),Pe(i,ve(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,-1)},o.to=function(i,t){return Pe(i,ve(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,1)},o.fromTo=function(i,t,r){return Pe(i,t,r)},o.fit=function(i,t,r){var n=r?ee(r,je):{},s=r||n,l=s.absolute,u=s.scale,a=s.getVars,c=s.props,h=s.runBackwards,x=s.onComplete,w=s.simple,_=r&&r.fitChild&&re(r.fitChild),v=Ve(t,c,w,i),m=Ve(i,0,w,v),y=c?fe[c]:de,L=A.context();return c&&Ue(n,v.props),se(m,y),h&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ce(m),x&&x.apply(this,arguments)}),l&&De(m,v),n=te(m,v,u||_,!n.duration&&c,_,n.duration||a?n:0),typeof r=="object"&&"zIndex"in r&&(n.zIndex=r.zIndex),L&&!a&&L.add(function(){return function(){return ce(m)}}),a?n:n.duration?A.to(m.element,n):null},o.makeAbsolute=function(i,t){return(i instanceof z?i:new z(i,t)).makeAbsolute()},o.batch=function(i){return i||(i="default"),Me[i]||(Me[i]=new pt(i))},o.killFlipsOf=function(i,t){(i instanceof z?i.targets:ie(i)).forEach(function(r){return r&&Le(r._flip,t!==!1?1:2)})},o.isFlipping=function(i){var t=o.getByTarget(i);return!!t&&t.isActive()},o.getByTarget=function(i){return(re(i)||he)._flip},o.getElementState=function(i,t){return new $(re(i),t)},o.convertCoordinates=function(i,t,r){var n=C.getGlobalMatrix(t,!0,!0).multiply(C.getGlobalMatrix(i));return r?n.apply(r):n},o.register=function(i){if(J=typeof document!="undefined"&&document.body,J){A=i,C._setDoc(J),ie=A.utils.toArray,Ie=A.core.getStyleSaver;var t=A.utils.snap(.1);q=function(n,s){return t(parseFloat(n)+s)}}},o})();ae.version="3.13.0";typeof window!="undefined"&&window.gsap&&window.gsap.registerPlugin(ae);exports.Flip=ae;exports.default=ae;
|
|
@@ -295,7 +295,7 @@ var at = 1, ie, A, b, ne, J, q, Ie, Se = function(e, i) {
|
|
|
295
295
|
}, le = function(e) {
|
|
296
296
|
for (var i = e.idLookup = {}, t = e.alt = {}, r = e.elementStates, n = r.length, s; n--; )
|
|
297
297
|
s = r[n], i[s.id] ? t[s.id] = s : i[s.id] = s;
|
|
298
|
-
}, S = /* @__PURE__ */ function() {
|
|
298
|
+
}, S = /* @__PURE__ */ (function() {
|
|
299
299
|
function o(i, t, r) {
|
|
300
300
|
if (this.props = t && t.props, this.simple = !!(t && t.simple), r)
|
|
301
301
|
this.targets = Qe(i), this.elementStates = i, le(this);
|
|
@@ -361,7 +361,7 @@ var at = 1, ie, A, b, ne, J, q, Ie, Se = function(e, i) {
|
|
|
361
361
|
}, e.makeAbsolute = function() {
|
|
362
362
|
return he(this.elementStates.slice(0), !0, !0).map(Le);
|
|
363
363
|
}, o;
|
|
364
|
-
}(), Z = /* @__PURE__ */ function() {
|
|
364
|
+
})(), Z = /* @__PURE__ */ (function() {
|
|
365
365
|
function o(i, t, r) {
|
|
366
366
|
this.element = i, this.update(t, r);
|
|
367
367
|
}
|
|
@@ -373,7 +373,7 @@ var at = 1, ie, A, b, ne, J, q, Ie, Se = function(e, i) {
|
|
|
373
373
|
var n = this, s = n.element, l = A.getProperty(s), u = A.core.getCache(s), a = s.getBoundingClientRect(), c = s.getBBox && typeof s.getBBox == "function" && s.nodeName.toLowerCase() !== "svg" && s.getBBox(), h = r ? new Ge(1, 0, 0, 1, a.left + qe(), a.top + Ne()) : O(s, !1, !1, !0);
|
|
374
374
|
u.uncache = 1, n.getProp = l, n.element = s, n.id = ft(s), n.matrix = h, n.cache = u, n.bounds = a, n.isVisible = !!(a.width || a.height || a.left || a.top), n.display = l("display"), n.position = l("position"), n.parent = s.parentNode, n.x = l("x"), n.y = l("y"), n.scaleX = u.scaleX, n.scaleY = u.scaleY, n.rotation = l("rotation"), n.skewX = l("skewX"), n.opacity = l("opacity"), n.width = c ? c.width : q(l("width", "px"), 0.04), n.height = c ? c.height : q(l("height", "px"), 0.04), t && ct(n, Ce[t] || Ze(t)), n.ctm = s.getCTM && s.nodeName.toLowerCase() === "svg" && st(s).inverse(), n.simple = r || Q(h.a) === 1 && !Q(h.b) && !Q(h.c) && Q(h.d) === 1, n.uncache = 0;
|
|
375
375
|
}, o;
|
|
376
|
-
}(), mt = /* @__PURE__ */ function() {
|
|
376
|
+
})(), mt = /* @__PURE__ */ (function() {
|
|
377
377
|
function o(i, t) {
|
|
378
378
|
this.vars = i, this.batch = t, this.states = [], this.timeline = t.timeline;
|
|
379
379
|
}
|
|
@@ -385,7 +385,7 @@ var at = 1, ie, A, b, ne, J, q, Ie, Se = function(e, i) {
|
|
|
385
385
|
}, e.kill = function() {
|
|
386
386
|
this.batch.remove(this);
|
|
387
387
|
}, o;
|
|
388
|
-
}(), gt = /* @__PURE__ */ function() {
|
|
388
|
+
})(), gt = /* @__PURE__ */ (function() {
|
|
389
389
|
function o(i) {
|
|
390
390
|
this.id = i, this.actions = [], this._kill = [], this._final = [], this._abs = [], this._run = [], this.data = {}, this.state = new S(), this.timeline = A.timeline();
|
|
391
391
|
}
|
|
@@ -460,7 +460,7 @@ var at = 1, ie, A, b, ne, J, q, Ie, Se = function(e, i) {
|
|
|
460
460
|
}, e.kill = function() {
|
|
461
461
|
this._killed = 1, this.clear(), delete Pe[this.id];
|
|
462
462
|
}, o;
|
|
463
|
-
}(), De = /* @__PURE__ */ function() {
|
|
463
|
+
})(), De = /* @__PURE__ */ (function() {
|
|
464
464
|
function o() {
|
|
465
465
|
}
|
|
466
466
|
return o.getState = function(i, t) {
|
|
@@ -516,7 +516,7 @@ var at = 1, ie, A, b, ne, J, q, Ie, Se = function(e, i) {
|
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
}, o;
|
|
519
|
-
}();
|
|
519
|
+
})();
|
|
520
520
|
De.version = "3.13.0";
|
|
521
521
|
typeof window != "undefined" && window.gsap && window.gsap.registerPlugin(De);
|
|
522
522
|
export {
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
6
|
* Subject to the terms at https://gsap.com/standard-license
|
|
7
7
|
* @author: Jack Doyle, jack@greensock.com
|
|
8
|
-
*/var _,ce,y,C,E,W,st,H,Z,ct,T,m,at,ut=function(){return _||typeof window!="undefined"&&(_=window.gsap)&&_.registerPlugin&&_},gt=1,R=[];exports._scrollers=[];exports._proxies=[];var J=Date.now,be=function(n,i){return i},bt=function(){var n=Z.core,i=n.bridge||{},t=n._scrollers,c=n._proxies;t.push.apply(t,exports._scrollers),c.push.apply(c,exports._proxies),exports._scrollers=t,exports._proxies=c,be=function(g,o){return i[g](o)}},ft=function(n,i){return~exports._proxies.indexOf(n)&&exports._proxies[exports._proxies.indexOf(n)+1][i]},z=function(n){return!!~ct.indexOf(n)},h=function(n,i,t,c,u){return n.addEventListener(i,t,{passive:c!==!1,capture:!!u})},p=function(n,i,t,c){return n.removeEventListener(i,t,!!c)},le="scrollLeft",se="scrollTop",De=function(){return T&&T.isPressed||exports._scrollers.cache++},ae=function(n,i){var t=function c(u){if(u||u===0){gt&&(y.history.scrollRestoration="manual");var g=T&&T.isPressed;u=c.v=Math.round(u)||(T&&T.iOS?1:0),n(u),c.cacheID=exports._scrollers.cache,g&&be("ss",u)}else(i||exports._scrollers.cache!==c.cacheID||be("ref"))&&(c.cacheID=exports._scrollers.cache,c.v=n());return c.v+c.offset};return t.offset=0,n&&t},K={s:le,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:ae(function(s){return arguments.length?y.scrollTo(s,Q.sc()):y.pageXOffset||C[le]||E[le]||W[le]||0})},Q={s:se,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:K,sc:ae(function(s){return arguments.length?y.scrollTo(K.sc(),s):y.pageYOffset||C[se]||E[se]||W[se]||0})},dt=function(n,i){return(i&&i._ctx&&i._ctx.selector||_.utils.toArray)(n)[0]||(typeof n=="string"&&_.config().nullTargetWarn!==!1?console.warn("Element not found:",n):null)},Dt=function(n,i){for(var t=i.length;t--;)if(i[t]===n||i[t].contains(n))return!0;return!1},we=function(n,i){var t=i.s,c=i.sc;z(n)&&(n=C.scrollingElement||E);var u=exports._scrollers.indexOf(n),g=c===Q.sc?1:2;!~u&&(u=exports._scrollers.push(n)-1),exports._scrollers[u+g]||h(n,"scroll",De);var o=exports._scrollers[u+g],D=o||(exports._scrollers[u+g]=ae(ft(n,t),!0)||(z(n)?c:ae(function(P){return arguments.length?n[t]=P:n[t]})));return D.target=n,o||(D.smooth=_.getProperty(n,"scrollBehavior")==="smooth"),D},Te=function(n,i,t){var c=n,u=n,g=J(),o=g,D=i||50,P=Math.max(500,D*3),S=function(x,I){var w=J();I||w-g>D?(u=c,c=x,o=g,g=w):t?c+=x:c=u+(x-u)/(w-o)*(g-o)},M=function(){u=c=t?0:c,o=g=0},ue=function(x){var I=o,w=u,N=J();return(x||x===0)&&x!==c&&S(x),g===o||N-o>P?0:(c+(t?w:-w))/((t?N:g)-I)*1e3};return{update:S,reset:M,getVelocity:ue}},U=function(n,i){return i&&!n._gsapAllow&&n.preventDefault(),n.changedTouches?n.changedTouches[0]:n},lt=function(n){var i=Math.max.apply(Math,n),t=Math.min.apply(Math,n);return Math.abs(i)>=Math.abs(t)?i:t},_t=function(){Z=_.core.globals().ScrollTrigger,Z&&Z.core&&bt()},pt=function(n){return _=n||ut(),!ce&&_&&typeof document!="undefined"&&document.body&&(y=window,C=document,E=C.documentElement,W=C.body,ct=[y,C,E,W],_.utils.clamp,at=_.core.context||function(){},H="onpointerenter"in W?"pointer":"mouse",st=b.isTouch=y.matchMedia&&y.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in y||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,m=b.eventTypes=("ontouchstart"in E?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in E?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return gt=0},500),_t(),ce=1),ce};K.op=Q;exports._scrollers.cache=0;var b=function(){function s(i){this.init(i)}var n=s.prototype;return n.init=function(t){ce||pt(_)||console.warn("Please gsap.registerPlugin(Observer)"),Z||_t();var c=t.tolerance,u=t.dragMinimum,g=t.type,o=t.target,D=t.lineHeight,P=t.debounce,S=t.preventDefault,M=t.onStop,ue=t.onStopDelay,k=t.ignore,x=t.wheelSpeed,I=t.event,w=t.onDragStart,N=t.onDragEnd,Pe=t.onDrag,Se=t.onPress,Me=t.onRelease,ke=t.onRight,Ye=t.onLeft,Ce=t.onUp,Ee=t.onDown,Xe=t.onChangeX,Oe=t.onChangeY,Ge=t.onChange,Ae=t.onToggleX,Fe=t.onToggleY,He=t.onHover,Le=t.onHoverEnd,ge=t.onMove,Ve=t.ignoreCheck,L=t.isNormalizer,Re=t.onGestureStart,We=t.onGestureEnd,ze=t.onWheel,Ie=t.onEnable,Ne=t.onDisable,Be=t.onClick,$=t.scrollSpeed,V=t.capture,je=t.allowClicks,ht=t.lockAxis,qe=t.onLockAxis;this.target=o=dt(o)||E,this.vars=t,k&&(k=_.utils.toArray(k)),c=c||1e-9,u=u||0,x=x||1,$=$||1,g=g||"wheel,touch,pointer",P=P!==!1,D||(D=parseFloat(y.getComputedStyle(W).lineHeight)||22);var B,X,O,ee,fe,de,j,e=this,_e=0,pe=0,te=t.passive||!S&&t.passive!==!1,ne=we(o,K),re=we(o,Q),he=ne(),ve=re(),vt=~g.indexOf("touch")&&!~g.indexOf("pointer")&&m[0]==="pointerdown",oe=z(o),d=o.ownerDocument||C,G=[0,0,0],A=[0,0,0],Ue=0,Ze=function(){return Ue=J()},F=function(r,a){return(e.event=r)&&k&&Dt(r.target,k)||a&&vt&&r.pointerType!=="touch"||Ve&&Ve(r,a)},yt=function(){e._vx.reset(),e._vy.reset(),X.pause(),M&&M(e)},q=function(){var r=e.deltaX=lt(G),a=e.deltaY=lt(A),f=Math.abs(r)>=c,v=Math.abs(a)>=c;Ge&&(f||v)&&Ge(e,r,a,G,A),f&&(ke&&e.deltaX>0&&ke(e),Ye&&e.deltaX<0&&Ye(e),Xe&&Xe(e),Ae&&e.deltaX<0!=_e<0&&Ae(e),_e=e.deltaX,G[0]=G[1]=G[2]=0),v&&(Ee&&e.deltaY>0&&Ee(e),Ce&&e.deltaY<0&&Ce(e),Oe&&Oe(e),Fe&&e.deltaY<0!=pe<0&&Fe(e),pe=e.deltaY,A[0]=A[1]=A[2]=0),(ee||O)&&(ge&&ge(e),O&&(w&&O===1&&w(e),Pe&&Pe(e),O=0),ee=!1),de&&!(de=!1)&&qe&&qe(e),fe&&(ze(e),fe=!1),B=0},Je=function(r,a,f){G[f]+=r,A[f]+=a,e._vx.update(r),e._vy.update(a),P?B||(B=requestAnimationFrame(q)):q()},Ke=function(r,a){ht&&!j&&(e.axis=j=Math.abs(r)>Math.abs(a)?"x":"y",de=!0),j!=="y"&&(G[2]+=r,e._vx.update(r,!0)),j!=="x"&&(A[2]+=a,e._vy.update(a,!0)),P?B||(B=requestAnimationFrame(q)):q()},ye=function(r){if(!F(r,1)){r=U(r,S);var a=r.clientX,f=r.clientY,v=a-e.x,Y=f-e.y,me=e.isDragging;e.x=a,e.y=f,(me||(v||Y)&&(Math.abs(e.startX-a)>=u||Math.abs(e.startY-f)>=u))&&(O=me?2:1,me||(e.isDragging=!0),Ke(v,Y))}},xe=e.onPress=function(l){F(l,1)||l&&l.button||(e.axis=j=null,X.pause(),e.isPressed=!0,l=U(l),_e=pe=0,e.startX=e.x=l.clientX,e.startY=e.y=l.clientY,e._vx.reset(),e._vy.reset(),h(L?o:d,m[1],ye,te,!0),e.deltaX=e.deltaY=0,Se&&Se(e))},ie=e.onRelease=function(l){if(!F(l,1)){p(L?o:d,m[1],ye,!0);var r=!isNaN(e.y-e.startY),a=e.isDragging,f=a&&(Math.abs(e.x-e.startX)>3||Math.abs(e.y-e.startY)>3),v=U(l);!f&&r&&(e._vx.reset(),e._vy.reset(),S&&je&&_.delayedCall(.08,function(){if(J()-Ue>300&&!l.defaultPrevented){if(l.target.click)l.target.click();else if(d.createEvent){var Y=d.createEvent("MouseEvents");Y.initMouseEvent("click",!0,!0,y,1,v.screenX,v.screenY,v.clientX,v.clientY,!1,!1,!1,!1,0,null),l.target.dispatchEvent(Y)}}})),e.isDragging=e.isGesturing=e.isPressed=!1,M&&a&&!L&&X.restart(!0),O&&q(),N&&a&&N(e),Me&&Me(e,f)}},Qe=function(r){return r.touches&&r.touches.length>1&&(e.isGesturing=!0)&&Re(r,e.isDragging)},$e=function(){return(e.isGesturing=!1)||We(e)},et=function(r){if(!F(r)){var a=ne(),f=re();Je((a-he)*$,(f-ve)*$,1),he=a,ve=f,M&&X.restart(!0)}},tt=function(r){if(!F(r)){r=U(r,S),ze&&(fe=!0);var a=(r.deltaMode===1?D:r.deltaMode===2?y.innerHeight:1)*x;Je(r.deltaX*a,r.deltaY*a,0),M&&!L&&X.restart(!0)}},nt=function(r){if(!F(r)){var a=r.clientX,f=r.clientY,v=a-e.x,Y=f-e.y;e.x=a,e.y=f,ee=!0,M&&X.restart(!0),(v||Y)&&Ke(v,Y)}},rt=function(r){e.event=r,He(e)},ot=function(r){e.event=r,Le(e)},it=function(r){return F(r)||U(r,S)&&Be(e)};X=e._dc=_.delayedCall(ue||.25,yt).pause(),e.deltaX=e.deltaY=0,e._vx=Te(0,50,!0),e._vy=Te(0,50,!0),e.scrollX=ne,e.scrollY=re,e.isDragging=e.isGesturing=e.isPressed=!1,at(this),e.enable=function(l){return e.isEnabled||(h(oe?d:o,"scroll",De),g.indexOf("scroll")>=0&&h(oe?d:o,"scroll",et,te,V),g.indexOf("wheel")>=0&&h(o,"wheel",tt,te,V),(g.indexOf("touch")>=0&&st||g.indexOf("pointer")>=0)&&(h(o,m[0],xe,te,V),h(d,m[2],ie),h(d,m[3],ie),je&&h(o,"click",Ze,!0,!0),Be&&h(o,"click",it),Re&&h(d,"gesturestart",Qe),We&&h(d,"gestureend",$e),He&&h(o,H+"enter",rt),Le&&h(o,H+"leave",ot),ge&&h(o,H+"move",nt)),e.isEnabled=!0,e.isDragging=e.isGesturing=e.isPressed=ee=O=!1,e._vx.reset(),e._vy.reset(),he=ne(),ve=re(),l&&l.type&&xe(l),Ie&&Ie(e)),e},e.disable=function(){e.isEnabled&&(R.filter(function(l){return l!==e&&z(l.target)}).length||p(oe?d:o,"scroll",De),e.isPressed&&(e._vx.reset(),e._vy.reset(),p(L?o:d,m[1],ye,!0)),p(oe?d:o,"scroll",et,V),p(o,"wheel",tt,V),p(o,m[0],xe,V),p(d,m[2],ie),p(d,m[3],ie),p(o,"click",Ze,!0),p(o,"click",it),p(d,"gesturestart",Qe),p(d,"gestureend",$e),p(o,H+"enter",rt),p(o,H+"leave",ot),p(o,H+"move",nt),e.isEnabled=e.isPressed=e.isDragging=!1,Ne&&Ne(e))},e.kill=e.revert=function(){e.disable();var l=R.indexOf(e);l>=0&&R.splice(l,1),T===e&&(T=0)},R.push(e),L&&z(o)&&(T=e),e.enable(I)},mt(s,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),s}();b.version="3.13.0";b.create=function(s){return new b(s)};b.register=pt;b.getAll=function(){return R.slice()};b.getById=function(s){return R.filter(function(n){return n.vars.id===s})[0]};ut()&&_.registerPlugin(b);exports.Observer=b;exports._getProxyProp=ft;exports._getScrollFunc=we;exports._getTarget=dt;exports._getVelocityProp=Te;exports._horizontal=K;exports._isViewport=z;exports._vertical=Q;exports.default=b;
|
|
8
|
+
*/var _,ce,y,C,E,W,st,H,Z,ct,T,m,at,ut=function(){return _||typeof window!="undefined"&&(_=window.gsap)&&_.registerPlugin&&_},gt=1,R=[];exports._scrollers=[];exports._proxies=[];var J=Date.now,be=function(n,i){return i},bt=function(){var n=Z.core,i=n.bridge||{},t=n._scrollers,c=n._proxies;t.push.apply(t,exports._scrollers),c.push.apply(c,exports._proxies),exports._scrollers=t,exports._proxies=c,be=function(g,o){return i[g](o)}},ft=function(n,i){return~exports._proxies.indexOf(n)&&exports._proxies[exports._proxies.indexOf(n)+1][i]},z=function(n){return!!~ct.indexOf(n)},h=function(n,i,t,c,u){return n.addEventListener(i,t,{passive:c!==!1,capture:!!u})},p=function(n,i,t,c){return n.removeEventListener(i,t,!!c)},le="scrollLeft",se="scrollTop",De=function(){return T&&T.isPressed||exports._scrollers.cache++},ae=function(n,i){var t=function c(u){if(u||u===0){gt&&(y.history.scrollRestoration="manual");var g=T&&T.isPressed;u=c.v=Math.round(u)||(T&&T.iOS?1:0),n(u),c.cacheID=exports._scrollers.cache,g&&be("ss",u)}else(i||exports._scrollers.cache!==c.cacheID||be("ref"))&&(c.cacheID=exports._scrollers.cache,c.v=n());return c.v+c.offset};return t.offset=0,n&&t},K={s:le,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:ae(function(s){return arguments.length?y.scrollTo(s,Q.sc()):y.pageXOffset||C[le]||E[le]||W[le]||0})},Q={s:se,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:K,sc:ae(function(s){return arguments.length?y.scrollTo(K.sc(),s):y.pageYOffset||C[se]||E[se]||W[se]||0})},dt=function(n,i){return(i&&i._ctx&&i._ctx.selector||_.utils.toArray)(n)[0]||(typeof n=="string"&&_.config().nullTargetWarn!==!1?console.warn("Element not found:",n):null)},Dt=function(n,i){for(var t=i.length;t--;)if(i[t]===n||i[t].contains(n))return!0;return!1},we=function(n,i){var t=i.s,c=i.sc;z(n)&&(n=C.scrollingElement||E);var u=exports._scrollers.indexOf(n),g=c===Q.sc?1:2;!~u&&(u=exports._scrollers.push(n)-1),exports._scrollers[u+g]||h(n,"scroll",De);var o=exports._scrollers[u+g],D=o||(exports._scrollers[u+g]=ae(ft(n,t),!0)||(z(n)?c:ae(function(P){return arguments.length?n[t]=P:n[t]})));return D.target=n,o||(D.smooth=_.getProperty(n,"scrollBehavior")==="smooth"),D},Te=function(n,i,t){var c=n,u=n,g=J(),o=g,D=i||50,P=Math.max(500,D*3),S=function(x,I){var w=J();I||w-g>D?(u=c,c=x,o=g,g=w):t?c+=x:c=u+(x-u)/(w-o)*(g-o)},M=function(){u=c=t?0:c,o=g=0},ue=function(x){var I=o,w=u,N=J();return(x||x===0)&&x!==c&&S(x),g===o||N-o>P?0:(c+(t?w:-w))/((t?N:g)-I)*1e3};return{update:S,reset:M,getVelocity:ue}},U=function(n,i){return i&&!n._gsapAllow&&n.preventDefault(),n.changedTouches?n.changedTouches[0]:n},lt=function(n){var i=Math.max.apply(Math,n),t=Math.min.apply(Math,n);return Math.abs(i)>=Math.abs(t)?i:t},_t=function(){Z=_.core.globals().ScrollTrigger,Z&&Z.core&&bt()},pt=function(n){return _=n||ut(),!ce&&_&&typeof document!="undefined"&&document.body&&(y=window,C=document,E=C.documentElement,W=C.body,ct=[y,C,E,W],_.utils.clamp,at=_.core.context||function(){},H="onpointerenter"in W?"pointer":"mouse",st=b.isTouch=y.matchMedia&&y.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in y||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,m=b.eventTypes=("ontouchstart"in E?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in E?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return gt=0},500),_t(),ce=1),ce};K.op=Q;exports._scrollers.cache=0;var b=(function(){function s(i){this.init(i)}var n=s.prototype;return n.init=function(t){ce||pt(_)||console.warn("Please gsap.registerPlugin(Observer)"),Z||_t();var c=t.tolerance,u=t.dragMinimum,g=t.type,o=t.target,D=t.lineHeight,P=t.debounce,S=t.preventDefault,M=t.onStop,ue=t.onStopDelay,k=t.ignore,x=t.wheelSpeed,I=t.event,w=t.onDragStart,N=t.onDragEnd,Pe=t.onDrag,Se=t.onPress,Me=t.onRelease,ke=t.onRight,Ye=t.onLeft,Ce=t.onUp,Ee=t.onDown,Xe=t.onChangeX,Oe=t.onChangeY,Ge=t.onChange,Ae=t.onToggleX,Fe=t.onToggleY,He=t.onHover,Le=t.onHoverEnd,ge=t.onMove,Ve=t.ignoreCheck,L=t.isNormalizer,Re=t.onGestureStart,We=t.onGestureEnd,ze=t.onWheel,Ie=t.onEnable,Ne=t.onDisable,Be=t.onClick,$=t.scrollSpeed,V=t.capture,je=t.allowClicks,ht=t.lockAxis,qe=t.onLockAxis;this.target=o=dt(o)||E,this.vars=t,k&&(k=_.utils.toArray(k)),c=c||1e-9,u=u||0,x=x||1,$=$||1,g=g||"wheel,touch,pointer",P=P!==!1,D||(D=parseFloat(y.getComputedStyle(W).lineHeight)||22);var B,X,O,ee,fe,de,j,e=this,_e=0,pe=0,te=t.passive||!S&&t.passive!==!1,ne=we(o,K),re=we(o,Q),he=ne(),ve=re(),vt=~g.indexOf("touch")&&!~g.indexOf("pointer")&&m[0]==="pointerdown",oe=z(o),d=o.ownerDocument||C,G=[0,0,0],A=[0,0,0],Ue=0,Ze=function(){return Ue=J()},F=function(r,a){return(e.event=r)&&k&&Dt(r.target,k)||a&&vt&&r.pointerType!=="touch"||Ve&&Ve(r,a)},yt=function(){e._vx.reset(),e._vy.reset(),X.pause(),M&&M(e)},q=function(){var r=e.deltaX=lt(G),a=e.deltaY=lt(A),f=Math.abs(r)>=c,v=Math.abs(a)>=c;Ge&&(f||v)&&Ge(e,r,a,G,A),f&&(ke&&e.deltaX>0&&ke(e),Ye&&e.deltaX<0&&Ye(e),Xe&&Xe(e),Ae&&e.deltaX<0!=_e<0&&Ae(e),_e=e.deltaX,G[0]=G[1]=G[2]=0),v&&(Ee&&e.deltaY>0&&Ee(e),Ce&&e.deltaY<0&&Ce(e),Oe&&Oe(e),Fe&&e.deltaY<0!=pe<0&&Fe(e),pe=e.deltaY,A[0]=A[1]=A[2]=0),(ee||O)&&(ge&&ge(e),O&&(w&&O===1&&w(e),Pe&&Pe(e),O=0),ee=!1),de&&!(de=!1)&&qe&&qe(e),fe&&(ze(e),fe=!1),B=0},Je=function(r,a,f){G[f]+=r,A[f]+=a,e._vx.update(r),e._vy.update(a),P?B||(B=requestAnimationFrame(q)):q()},Ke=function(r,a){ht&&!j&&(e.axis=j=Math.abs(r)>Math.abs(a)?"x":"y",de=!0),j!=="y"&&(G[2]+=r,e._vx.update(r,!0)),j!=="x"&&(A[2]+=a,e._vy.update(a,!0)),P?B||(B=requestAnimationFrame(q)):q()},ye=function(r){if(!F(r,1)){r=U(r,S);var a=r.clientX,f=r.clientY,v=a-e.x,Y=f-e.y,me=e.isDragging;e.x=a,e.y=f,(me||(v||Y)&&(Math.abs(e.startX-a)>=u||Math.abs(e.startY-f)>=u))&&(O=me?2:1,me||(e.isDragging=!0),Ke(v,Y))}},xe=e.onPress=function(l){F(l,1)||l&&l.button||(e.axis=j=null,X.pause(),e.isPressed=!0,l=U(l),_e=pe=0,e.startX=e.x=l.clientX,e.startY=e.y=l.clientY,e._vx.reset(),e._vy.reset(),h(L?o:d,m[1],ye,te,!0),e.deltaX=e.deltaY=0,Se&&Se(e))},ie=e.onRelease=function(l){if(!F(l,1)){p(L?o:d,m[1],ye,!0);var r=!isNaN(e.y-e.startY),a=e.isDragging,f=a&&(Math.abs(e.x-e.startX)>3||Math.abs(e.y-e.startY)>3),v=U(l);!f&&r&&(e._vx.reset(),e._vy.reset(),S&&je&&_.delayedCall(.08,function(){if(J()-Ue>300&&!l.defaultPrevented){if(l.target.click)l.target.click();else if(d.createEvent){var Y=d.createEvent("MouseEvents");Y.initMouseEvent("click",!0,!0,y,1,v.screenX,v.screenY,v.clientX,v.clientY,!1,!1,!1,!1,0,null),l.target.dispatchEvent(Y)}}})),e.isDragging=e.isGesturing=e.isPressed=!1,M&&a&&!L&&X.restart(!0),O&&q(),N&&a&&N(e),Me&&Me(e,f)}},Qe=function(r){return r.touches&&r.touches.length>1&&(e.isGesturing=!0)&&Re(r,e.isDragging)},$e=function(){return(e.isGesturing=!1)||We(e)},et=function(r){if(!F(r)){var a=ne(),f=re();Je((a-he)*$,(f-ve)*$,1),he=a,ve=f,M&&X.restart(!0)}},tt=function(r){if(!F(r)){r=U(r,S),ze&&(fe=!0);var a=(r.deltaMode===1?D:r.deltaMode===2?y.innerHeight:1)*x;Je(r.deltaX*a,r.deltaY*a,0),M&&!L&&X.restart(!0)}},nt=function(r){if(!F(r)){var a=r.clientX,f=r.clientY,v=a-e.x,Y=f-e.y;e.x=a,e.y=f,ee=!0,M&&X.restart(!0),(v||Y)&&Ke(v,Y)}},rt=function(r){e.event=r,He(e)},ot=function(r){e.event=r,Le(e)},it=function(r){return F(r)||U(r,S)&&Be(e)};X=e._dc=_.delayedCall(ue||.25,yt).pause(),e.deltaX=e.deltaY=0,e._vx=Te(0,50,!0),e._vy=Te(0,50,!0),e.scrollX=ne,e.scrollY=re,e.isDragging=e.isGesturing=e.isPressed=!1,at(this),e.enable=function(l){return e.isEnabled||(h(oe?d:o,"scroll",De),g.indexOf("scroll")>=0&&h(oe?d:o,"scroll",et,te,V),g.indexOf("wheel")>=0&&h(o,"wheel",tt,te,V),(g.indexOf("touch")>=0&&st||g.indexOf("pointer")>=0)&&(h(o,m[0],xe,te,V),h(d,m[2],ie),h(d,m[3],ie),je&&h(o,"click",Ze,!0,!0),Be&&h(o,"click",it),Re&&h(d,"gesturestart",Qe),We&&h(d,"gestureend",$e),He&&h(o,H+"enter",rt),Le&&h(o,H+"leave",ot),ge&&h(o,H+"move",nt)),e.isEnabled=!0,e.isDragging=e.isGesturing=e.isPressed=ee=O=!1,e._vx.reset(),e._vy.reset(),he=ne(),ve=re(),l&&l.type&&xe(l),Ie&&Ie(e)),e},e.disable=function(){e.isEnabled&&(R.filter(function(l){return l!==e&&z(l.target)}).length||p(oe?d:o,"scroll",De),e.isPressed&&(e._vx.reset(),e._vy.reset(),p(L?o:d,m[1],ye,!0)),p(oe?d:o,"scroll",et,V),p(o,"wheel",tt,V),p(o,m[0],xe,V),p(d,m[2],ie),p(d,m[3],ie),p(o,"click",Ze,!0),p(o,"click",it),p(d,"gesturestart",Qe),p(d,"gestureend",$e),p(o,H+"enter",rt),p(o,H+"leave",ot),p(o,H+"move",nt),e.isEnabled=e.isPressed=e.isDragging=!1,Ne&&Ne(e))},e.kill=e.revert=function(){e.disable();var l=R.indexOf(e);l>=0&&R.splice(l,1),T===e&&(T=0)},R.push(e),L&&z(o)&&(T=e),e.enable(I)},mt(s,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),s})();b.version="3.13.0";b.create=function(s){return new b(s)};b.register=pt;b.getAll=function(){return R.slice()};b.getById=function(s){return R.filter(function(n){return n.vars.id===s})[0]};ut()&&_.registerPlugin(b);exports.Observer=b;exports._getProxyProp=ft;exports._getScrollFunc=we;exports._getTarget=dt;exports._getVelocityProp=Te;exports._horizontal=K;exports._isViewport=z;exports._vertical=Q;exports.default=b;
|
|
@@ -118,7 +118,7 @@ var h, le, v, E, X, I, st, L, Z, ut, T, b, gt, ft = function() {
|
|
|
118
118
|
};
|
|
119
119
|
ue.op = ge;
|
|
120
120
|
m.cache = 0;
|
|
121
|
-
var k = /* @__PURE__ */ function() {
|
|
121
|
+
var k = /* @__PURE__ */ (function() {
|
|
122
122
|
function c(i) {
|
|
123
123
|
this.init(i);
|
|
124
124
|
}
|
|
@@ -212,7 +212,7 @@ var k = /* @__PURE__ */ function() {
|
|
|
212
212
|
return this._vy.getVelocity();
|
|
213
213
|
}
|
|
214
214
|
}]), c;
|
|
215
|
-
}();
|
|
215
|
+
})();
|
|
216
216
|
k.version = "3.13.0";
|
|
217
217
|
k.create = function(c) {
|
|
218
218
|
return new k(c);
|