File "index.js"

Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/surerank/build/vendor-32266432/index.js
File size: 16.86 KB
MIME-type: text/plain
Charset: utf-8

"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[440],{921:(t,n,s)=>{s.d(n,{H:()=>c});var e=s(3044),i=s(64942),o=s(71912),r=s(10104);function a(t,n,s){const{props:e}=t;t.animationState&&e.whileTap&&t.animationState.setActive("whileTap","Start"===s);const i=e["onTap"+("End"===s?"":s)];i&&r.Gt.postRender(()=>i(n,(0,o.e)(n)))}class c extends e.X{mount(){const{current:t}=this.node;t&&(this.unmount=(0,i.c$)(t,t=>(a(this.node,t,"Start"),(t,{success:n})=>a(this.node,t,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},4043:(t,n,s)=>{s.d(n,{A:()=>a});var e=s(41533);const i=(t,n,s)=>(((1-3*s+3*n)*t+(3*s-6*n))*t+3*n)*t,o=1e-7,r=12;function a(t,n,s,a){return t===n&&s===a?e.l:e=>0===e||1===e?e:i(function(t,n,s,e,a){let c,u,h=0;do{u=n+(s-n)/2,c=i(u,e,a)-t,c>0?s=u:n=u}while(Math.abs(c)>o&&++h<r);return u}(e,0,1,t,s),n,a)}},10104:(t,n,s)=>{s.d(n,{Gt:()=>o,PP:()=>c,WG:()=>r,uv:()=>a});var e=s(41533),i=s(18530);const{schedule:o,cancel:r,state:a,steps:c}=(0,i.I)("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:e.l,!0)},10309:(t,n,s)=>{s.d(n,{b:()=>i});var e=s(44768);const i=t=>(t*=2)<1?.5*(0,e.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},12846:(t,n,s)=>{s.d(n,{e:()=>c});var e=s(3044),i=s(64942),o=s(71912),r=s(10104);function a(t,n,s){const{props:e}=t;t.animationState&&e.whileHover&&t.animationState.setActive("whileHover","Start"===s);const i=e["onHover"+s];i&&r.Gt.postRender(()=>i(n,(0,o.e)(n)))}class c extends e.X{mount(){const{current:t}=this.node;t&&(this.unmount=(0,i.PT)(t,t=>(a(this.node,t,"Start"),t=>a(this.node,t,"End"))))}unmount(){}}},17795:(t,n,s)=>{s.d(n,{h:()=>e});const e=t=>Array.isArray(t)&&"number"!==typeof t[0]},18530:(t,n,s)=>{s.d(n,{I:()=>r});var e=s(74668);const i=["read","resolveKeyframes","update","preRender","render","postRender"],o=40;function r(t,n){let s=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},c=()=>s=!0,u=i.reduce((t,n)=>(t[n]=function(t){let n=new Set,s=new Set,e=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(n){o.has(n)&&(c.schedule(n),t()),n(r)}const c={schedule:(t,i=!1,r=!1)=>{const a=r&&e?n:s;return i&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{r=t,e?i=!0:(e=!0,[n,s]=[s,n],n.forEach(a),n.clear(),e=!1,i&&(i=!1,c.process(t)))}};return c}(c),t),{}),{read:h,resolveKeyframes:l,update:d,preRender:m,render:p,postRender:g}=u,v=()=>{const i=e.W.useManualTiming?a.timestamp:performance.now();s=!1,a.delta=r?1e3/60:Math.max(Math.min(i-a.timestamp,o),1),a.timestamp=i,a.isProcessing=!0,h.process(a),l.process(a),d.process(a),m.process(a),p.process(a),g.process(a),a.isProcessing=!1,s&&n&&(r=!1,t(v))};return{schedule:i.reduce((n,e)=>{const i=u[e];return n[e]=(n,e=!1,o=!1)=>(s||(s=!0,r=!0,a.isProcessing||t(v)),i.schedule(n,e,o)),n},{}),cancel:t=>{for(let n=0;n<i.length;n++)u[i[n]].cancel(t)},state:a,steps:u}}},38016:(t,n,s)=>{s.d(n,{c:()=>r});var e=s(63998),i=s(3044),o=s(91339);class r extends i.X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(n){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,o.F)((0,e.k)(this.node.current,"focus",()=>this.onFocus()),(0,e.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},38792:(t,n,s)=>{s.d(n,{f:()=>h});var e=s(92275),i=s(92901),o=s(3044),r=s(41533),a=s(84364),c=s(10104);const u=t=>(n,s)=>{t&&c.Gt.postRender(()=>t(n,s))};class h extends o.X{constructor(){super(...arguments),this.removePointerDownListener=r.l}onPointerDown(t){this.session=new e.Q(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:(0,a.s)(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:e}=this.node.getProps();return{onSessionStart:u(t),onStart:u(n),onMove:s,onEnd:(t,n)=>{delete this.session,e&&c.Gt.postRender(()=>e(t,n))}}}mount(){this.removePointerDownListener=(0,i.h)(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},44495:(t,n,s)=>{s.d(n,{w:()=>X});var e=s(3044),i=s(41533),o=s(8104),r=s(64942),a=s(92275),c=s(83953),u=s(92901),h=s(86896),l=s(55120),d=s(42464),m=s(39713);function p(t,n,s){return{min:void 0!==n?t.min+n:void 0,max:void 0!==s?t.max+s-(t.max-t.min):void 0}}function g(t,n){let s=n.min-t.min,e=n.max-t.max;return n.max-n.min<t.max-t.min&&([s,e]=[e,s]),{min:s,max:e}}const v=.35;function f(t,n,s){return{min:x(t,n),max:x(t,s)}}function x(t,n){return"number"===typeof t?t:t[n]||0}var P=s(54106),E=s(75338),y=s(94805),M=s(71912),A=s(38448),S=s(63998),w=s(55269),D=s(8853),k=s(84364),C=s(50029),L=s(10104);const T=new WeakMap;class b{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,P.ge)(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;const{dragSnapToOrigin:e}=this.getProps();this.panSession=new a.Q(t,{onSessionStart:t=>{const{dragSnapToOrigin:s}=this.getProps();s?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor((0,M.e)(t).point)},onStart:(t,n)=>{const{drag:s,dragPropagation:e,onDragStart:i}=this.getProps();if(s&&!e&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,r.Wp)(s),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,E.X)(t=>{let n=this.getAxisMotionValue(t).get()||0;if(w.KN.test(n)){const{projection:s}=this.visualElement;if(s&&s.layout){const e=s.layout.layoutBox[t];e&&(n=(0,l.CQ)(e)*(parseFloat(n)/100))}}this.originPoint[t]=n}),i&&L.Gt.postRender(()=>i(t,n)),(0,C.g)(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,n)=>{const{dragPropagation:s,dragDirectionLock:e,onDirectionLock:i,onDrag:o}=this.getProps();if(!s&&!this.openDragLock)return;const{offset:r}=n;if(e&&null===this.currentDirection)return this.currentDirection=function(t,n=10){let s=null;return Math.abs(t.y)>n?s="y":Math.abs(t.x)>n&&(s="x"),s}(r),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",n.point,r),this.updateAxis("y",n.point,r),this.visualElement.render(),o&&o(t,n)},onSessionEnd:(t,n)=>this.stop(t,n),resumeAnimation:()=>(0,E.X)(t=>{var n;return"paused"===this.getAnimationState(t)&&(null===(n=this.getAxisMotionValue(t).animation)||void 0===n?void 0:n.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:e,contextWindow:(0,k.s)(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:e}=n;this.startAnimation(e);const{onDragEnd:i}=this.getProps();i&&L.Gt.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:e}=this.getProps();if(!s||!V(t,e,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:n,max:s},e){return void 0!==n&&t<n?t=e?(0,m.k)(n,t,e.min):Math.max(t,n):void 0!==s&&t>s&&(t=e?(0,m.k)(s,t,e.max):Math.min(t,s)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),e=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;n&&(0,c.X)(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!e)&&function(t,{top:n,left:s,bottom:e,right:i}){return{x:p(t.x,s,i),y:p(t.y,n,e)}}(e.layoutBox,n),this.elastic=function(t=v){return!1===t?t=0:!0===t&&(t=v),{x:f(t,"left","right"),y:f(t,"top","bottom")}}(s),i!==this.constraints&&e&&this.constraints&&!this.hasMutatedConstraints&&(0,E.X)(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,n){const s={};return void 0!==n.min&&(s.min=n.min-t.min),void 0!==n.max&&(s.max=n.max-t.min),s}(e.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!(0,c.X)(t))return!1;const s=t.current;(0,o.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:e}=this.visualElement;if(!e||!e.layout)return!1;const i=(0,y.L)(s,e.root,this.visualElement.getTransformPagePoint());let r=function(t,n){return{x:g(t.x,n.x),y:g(t.y,n.y)}}(e.layout.layoutBox,i);if(n){const t=n((0,A.pA)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,A.FY)(t))}return r}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:e,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},c=(0,E.X)(r=>{if(!V(r,n,this.currentDirection))return;let c=a&&a[r]||{};o&&(c={min:0,max:0});const u={type:"inertia",velocity:s?t[r]:0,bounceStiffness:e?200:1e6,bounceDamping:e?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(r,u)});return Promise.all(c).then(r)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return(0,C.g)(this.visualElement,t),s.start((0,D.f)(t,s,0,n,this.visualElement,!1))}stopAnimation(){(0,E.X)(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){(0,E.X)(t=>{var n;return null===(n=this.getAxisMotionValue(t).animation)||void 0===n?void 0:n.pause()})}getAnimationState(t){var n;return null===(n=this.getAxisMotionValue(t).animation)||void 0===n?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps();return s[n]||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){(0,E.X)(n=>{const{drag:s}=this.getProps();if(!V(n,s,this.currentDirection))return;const{projection:e}=this.visualElement,i=this.getAxisMotionValue(n);if(e&&e.layout){const{min:s,max:o}=e.layout.layoutBox[n];i.set(t[n]-(0,m.k)(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!(0,c.X)(n)||!s||!this.constraints)return;this.stopAnimation();const e={x:0,y:0};(0,E.X)(t=>{const n=this.getAxisMotionValue(t);if(n&&!1!==this.constraints){const s=n.get();e[t]=function(t,n){let s=.5;const e=(0,l.CQ)(t),i=(0,l.CQ)(n);return i>e?s=(0,h.q)(n.min,n.max-e,t.min):e>i&&(s=(0,h.q)(t.min,t.max-i,n.min)),(0,d.q)(0,1,s)}({min:s,max:s},this.constraints[t])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),(0,E.X)(n=>{if(!V(n,t,null))return;const s=this.getAxisMotionValue(n),{min:i,max:o}=this.constraints[n];s.set((0,m.k)(i,o,e[n]))})}addListeners(){if(!this.visualElement.current)return;T.set(this.visualElement,this);const t=(0,u.h)(this.visualElement.current,"pointerdown",t=>{const{drag:n,dragListener:s=!0}=this.getProps();n&&s&&this.start(t)}),n=()=>{const{dragConstraints:t}=this.getProps();(0,c.X)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,e=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),L.Gt.read(n);const i=(0,S.k)(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:n})=>{this.isDragging&&n&&((0,E.X)(n=>{const s=this.getAxisMotionValue(n);s&&(this.originPoint[n]+=t[n].translate,s.set(s.get()+t[n].translate))}),this.visualElement.render())});return()=>{i(),t(),e(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:e=!1,dragConstraints:i=!1,dragElastic:o=v,dragMomentum:r=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:e,dragConstraints:i,dragElastic:o,dragMomentum:r}}}function V(t,n,s){return(!0===n||n===t)&&(null===s||s===t)}class X extends e.X{constructor(t){super(t),this.removeGroupControls=i.l,this.removeListeners=i.l,this.controls=new b(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||i.l}unmount(){this.removeGroupControls(),this.removeListeners()}}},44582:(t,n,s)=>{s.d(n,{k:()=>a});var e=s(74668),i=s(10104);let o;function r(){o=void 0}const a={now:()=>(void 0===o&&a.set(i.uv.isProcessing||e.W.useManualTiming?i.uv.timestamp:performance.now()),o),set:t=>{o=t,queueMicrotask(r)}}},44768:(t,n,s)=>{s.d(n,{Sz:()=>r,ZZ:()=>c,dg:()=>a});var e=s(4043),i=s(83041),o=s(92946);const r=(0,e.A)(.33,1.53,.69,.99),a=(0,o.G)(r),c=(0,i.V)(a)},49268:(t,n,s)=>{s.d(n,{k:()=>i});var e=s(18530);const{schedule:i}=(0,e.I)(queueMicrotask,!1)},60983:(t,n,s)=>{s.d(n,{K:()=>d});var e=s(64942),i=s(8104),o=s(41533),r=s(10309),a=s(44768),c=s(84868),u=s(4043),h=s(93771);const l={linear:o.l,easeIn:h.a6,easeInOut:h.am,easeOut:h.vT,circIn:c.po,circInOut:c.tn,circOut:c.yT,backIn:a.dg,backInOut:a.ZZ,backOut:a.Sz,anticipate:r.b},d=t=>{if((0,e.DW)(t)){(0,i.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[n,s,e,o]=t;return(0,u.A)(n,s,e,o)}return"string"===typeof t?((0,i.V)(void 0!==l[t],`Invalid easing type '${t}'`),l[t]):t}},63998:(t,n,s)=>{function e(t,n,s,e={passive:!0}){return t.addEventListener(n,s,e),()=>t.removeEventListener(n,s)}s.d(n,{k:()=>e})},71912:(t,n,s)=>{s.d(n,{F:()=>o,e:()=>i});var e=s(64942);function i(t){return{point:{x:t.pageX,y:t.pageY}}}const o=t=>n=>(0,e.Mc)(n)&&t(n,i(n))},83041:(t,n,s)=>{s.d(n,{V:()=>e});const e=t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2},84868:(t,n,s)=>{s.d(n,{po:()=>o,tn:()=>a,yT:()=>r});var e=s(83041),i=s(92946);const o=t=>1-Math.sin(Math.acos(t)),r=(0,i.G)(o),a=(0,e.V)(o)},92275:(t,n,s)=>{s.d(n,{Q:()=>h});var e=s(64942),i=s(77331),o=s(92901),r=s(71912),a=s(15746),c=s(91339),u=s(10104);class h{constructor(t,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:h=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=m(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(0,a.w)(t.offset,{x:0,y:0})>=3;if(!n&&!s)return;const{point:e}=t,{timestamp:i}=u.uv;this.history.push({...e,timestamp:i});const{onStart:o,onMove:r}=this.handlers;n||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,n)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=l(n,this.transformPagePoint),u.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,n)=>{this.end();const{onEnd:s,onSessionEnd:e,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=m("pointercancel"===t.type?this.lastMoveEventInfo:l(n,this.transformPagePoint),this.history);this.startEvent&&s&&s(t,o),e&&e(t,o)},!(0,e.Mc)(t))return;this.dragSnapToOrigin=h,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const d=l((0,r.e)(t),this.transformPagePoint),{point:p}=d,{timestamp:g}=u.uv;this.history=[{...p,timestamp:g}];const{onSessionStart:v}=n;v&&v(t,m(d,this.history)),this.removeListeners=(0,c.F)((0,o.h)(this.contextWindow,"pointermove",this.handlePointerMove),(0,o.h)(this.contextWindow,"pointerup",this.handlePointerUp),(0,o.h)(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,u.WG)(this.updatePoint)}}function l(t,n){return n?{point:n(t.point)}:t}function d(t,n){return{x:t.x-n.x,y:t.y-n.y}}function m({point:t},n){return{point:t,delta:d(t,g(n)),offset:d(t,p(n)),velocity:v(n,.1)}}function p(t){return t[0]}function g(t){return t[t.length-1]}function v(t,n){if(t.length<2)return{x:0,y:0};let s=t.length-1,e=null;const o=g(t);for(;s>=0&&(e=t[s],!(o.timestamp-e.timestamp>(0,i.f)(n)));)s--;if(!e)return{x:0,y:0};const r=(0,i.X)(o.timestamp-e.timestamp);if(0===r)return{x:0,y:0};const a={x:(o.x-e.x)/r,y:(o.y-e.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}},92901:(t,n,s)=>{s.d(n,{h:()=>o});var e=s(63998),i=s(71912);function o(t,n,s,o){return(0,e.k)(t,n,(0,i.F)(s),o)}},92946:(t,n,s)=>{s.d(n,{G:()=>e});const e=t=>n=>1-t(1-n)},93771:(t,n,s)=>{s.d(n,{a6:()=>i,am:()=>r,vT:()=>o});var e=s(4043);const i=(0,e.A)(.42,0,1,1),o=(0,e.A)(0,0,.58,1),r=(0,e.A)(.42,0,.58,1)}}]);