PageSourceSearch

https://eagle.cool/_next/static/chunks/2xc0isocge451.js

js eagle.cool collected 2026-10-01 10:12:24 UTC 67,206 bytes, 8 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,435749,e=>{e.v({"bg-spin":"CometStyle-module-scss-module__e-aE9a__bg-spin",comet:"CometStyle-module-scss-module__e-aE9a__comet","comet-button--warning":"CometStyle-module-scss-module__e-aE9a__comet-button--warning"})},760395,e=>{e.v({"comet-button":"CometButton-module-scss-module__kyOala__comet-button","comet-button--always":"CometButton-module-scss-module__kyOala__comet-button--always","comet-button--default":"CometButton-module-scss-module__kyOala__comet-button--default","comet-button--hover":"CometButton-module-scss-module__kyOala__comet-button--hover","comet-button--warning":"CometButton-module-scss-module__kyOala__comet-button--warning","comet-effect":"CometButton-module-scss-module__kyOala__comet-effect",dropdown:"CometButton-module-scss-module__kyOala__dropdown","is-disabled":"CometButton-module-scss-module__kyOala__is-disabled"})},391541,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let o=(0,n.createContext)(null);var r=e.i(435749),s=e.i(908267);let i=({className:e,radius:i=12,useContext:a=!0,blockRef:l})=>{let u=(0,n.useContext)(o),c=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e,t,n=a?u?.current:l?.current;if(!n)return;let o=c.current,r=n.clientWidth,s=n.clientHeight,d=getComputedStyle(n),m=parseInt(d.getPropertyValue("--block-radius")||d.getPropertyValue("--button-radius")||`${i}px`,10)||i,_=(e=m-1.5,t=`
2      M0,${m} a${m},${m} 0 0 1 ${m},-${m} h${r-2*m} a${m},${m} 0 0 1 ${m},${m} 
3      v${s-2*m} a${m},${m} 0 0 1 -${m},${m} h-${r-2*m} a${m},${m} 0 0 1 -${m},-${m} Z 
4      M1.5,${1.5+e} a${e},${e} 0 0 1 ${e},-${e} h${r-2*(e+1.5)} a${e},${e} 0 0 1 ${e},${e} 
5      v${s-2*(e+1.5)} a${e},${e} 0 0 1 -${e},${e} h-${r-2*(e+1.5)} a${e},${e} 0 0 1 -${e},-${e} Z
6    `,`<svg width="${r}" height="${s}" viewBox="0 0 ${r} ${s}" fill="none" xmlns="http://www.w3.org/2000/svg">
7      <path d="${t}" fill="#D9D9D9" fill-rule="evenodd"/>
8    </svg>`),f=`url('data:image/svg+xml,${encodeURIComponent(_)}')`;o.style.webkitMaskImage=f,o.style.maskImage=f,setTimeout(()=>{o.style.display="block"},300)},[u,l,i,a]),(0,t.jsx)("div",{className:(0,s.cn)(r.default.comet,e),ref:c})};var a=e.i(760395);e.s(["CometButton",0,({trigger:e="always",className:r,children:l,radius:u=12,type:c="button",variant:d="default",disabled:m=!1,..._})=>{let f=(0,n.useRef)(null);return(0,t.jsx)(o.Provider,{value:f,children:(0,t.jsxs)("button",{type:c,style:{borderRadius:`${u}px`,"--button-radius":`${u}px`},className:(0,s.cn)(a.default["comet-button"],a.default[`comet-button--${e}`],a.default[`comet-button--${d}`],m&&a.default["is-disabled"],r),disabled:m,ref:f,..._,children:[(0,t.jsx)(i,{radius:u,className:(0,s.cn)(a.default["comet-effect"])}),l]})})}],391541)},837501,e=>{e.v({backgroundFadeIn:"index-module-scss-module__XI00jq__backgroundFadeIn",backgroundFadeOut:"index-module-scss-module__XI00jq__backgroundFadeOut",fadeIn:"index-module-scss-module__XI00jq__fadeIn",lightbox__close:"index-module-scss-module__XI00jq__lightbox__close",lightbox__content:"index-module-scss-module__XI00jq__lightbox__content","lightbox__content--animating":"index-module-scss-module__XI00jq__lightbox__content--animating","lightbox__content--dragging":"index-module-scss-module__XI00jq__lightbox__content--dragging",lightbox__image:"index-module-scss-module__XI00jq__lightbox__image","lightbox__image--opening":"index-module-scss-module__XI00jq__lightbox__image--opening","lightbox__image-container":"index-module-scss-module__XI00jq__lightbox__image-container",lightbox__loading:"index-module-scss-module__XI00jq__lightbox__loading",lightbox__overlay:"index-module-scss-module__XI00jq__lightbox__overlay","lightbox__overlay--closing":"index-module-scss-module__XI00jq__lightbox__overlay--closing","lightbox__overlay--opening":"index-module-scss-module__XI00jq__lightbox__overlay--opening","lightbox__zoom-button":"index-module-scss-module__XI00jq__lightbox__zoom-button","lightbox__zoom-controls":"index-module-scss-module__XI00jq__lightbox__zoom-controls","lightbox__zoom-info":"index-module-scss-module__XI00jq__lightbox__zoom-info",rotate:"index-module-scss-module__XI00jq__rotate"})},186121,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(174080),r=e.i(908267),s=e.i(837501);let i=({children:e,className:i})=>
8{let[a,l]=(0,n.useState)(null),[u,c]=(0,n.useState)(!1),[d,m]=(0,n.useState)(1),[_,f]=(0,n.useState)({x:0,y:0}),[p,h]=(0,n.useState)(!1),[g,v]=(0,n.useState)({x:0,y:0}),[x,y]=(0,n.useState)(0),[b,w]=(0,n.useState)(!1),[j,N]=(0,n.useState)(!1),[C,S]=(0,n.useState)(null),[L,k]=(0,n.useState)({width:0,height:0}),E="cubic-bezier(0.16, 1, 0.3, 1)",I="cubic-bezier(0.16, 1, 0.3, 1)",q=(0,n.useRef)(null),$=(0,n.useRef)(null),T=(0,n.useRef)(null),D=(0,n.useRef)(null),M=()=>{let e,t;if(!$.current||!D.current)return;let n=D.current.getBoundingClientRect(),o=$.current.naturalWidth,r=$.current.naturalHeight;if(!o||!r)return;let s=n.width/n.height,i=o/r;i>s?t=(e=Math.min(n.width,o))/i:e=(t=Math.min(n.height,r))*i,k({width:e,height:t})},O=e=>{if(!e||2!==e.button){if(!(e&&e.target!==e.currentTarget&&!e.target?.closest(`.${s.default.lightbox__close}`)&&e.target?.closest(`.${s.default["lightbox__image-container"]}`))&&!b)if(T.current&&C){let e=T.current.getBoundingClientRect();S({top:e.top,left:e.left,width:e.width,height:e.height}),T.current&&(T.current.style.transition=`opacity ${Math.floor(350)}ms ${I}`,T.current.style.opacity="0"),N(!0),w(!0),setTimeout(()=>{T.current&&(T.current.style.opacity="1")},Math.floor(300)),setTimeout(()=>{l(null),S(null),w(!1),N(!1),document.body.style.overflow="",T.current=null},500)}else l(null),S(null),document.body.style.overflow=""}};(0,n.useEffect)(()=>{let e=()=>{M()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let z=e=>{2!==e.button&&(p&&x<5&&!b&&O(e),h(!1))};(0,n.useEffect)(()=>{let e=e=>{if(2===e.button)return;let t=e.target;if("IMG"===t.tagName&&!t.closest(`.${s.default.lightbox__overlay}`)){let e,n,o=t.getBoundingClientRect();if(o.width<50||o.height<50)return;document.querySelectorAll("img").forEach(e=>{e.style.transition||(e.style.transition=`opacity 500ms ${I}`)});let r=t.getAttribute("src");r&&(e=t.getBoundingClientRect(),T.current=t,t.style.transition="none",(n=new Image).onload=()=>{let t=n.naturalWidth,o=n.naturalHeight;S({top:e.top,left:e.left,width:e.width,height:e.height}),k({width:t,height:o}),w(!0),N(!1),l(r),c(!1),m(1),f({x:0,y:0}),document.body.style.overflow="hidden",setTimeout(()=>{w(!1)},500)},n.onerror=()=>{S({top:e.top,left:e.left,width:e.width,height:e.height}),k({width:e.width,height:e.height}),w(!0),N(!1),l(r),c(!0),m(1),f({x:0,y:0}),document.body.style.overflow="hidden",setTimeout(()=>{w(!1)},500)},n.src=r,n.complete&&n.onload(new Event("load")))}},t=e=>{"Escape"===e.key&&a&&!b&&O()},n=q.current;return n&&(n.addEventListener("click",e),document.addEventListener("keydown",t)),document.addEventListener("mouseup",z),document.addEventListener("mouseleave",z),()=>{n&&n.removeEventListener("click",e),document.removeEventListener("keydown",t),document.removeEventListener("mouseup",z),document.removeEventListener("mouseleave",z)}},[a,p,g,x,b,500,I]);let F=(0,n.useCallback)(()=>{if(!C||!L.width||u)return{};let e={x:window.innerWidth/2,y:window.innerHeight/2};if(b)if(j){let t=$.current?.offsetWidth||L.width,n=$.current?.offsetHeight||L.height,o=C.width,r=C.height,s=C.left,i=C.top,a=s+o/2-e.x,l=i+r/2-e.y;return{transform:`translate(${a}px, ${l}px) scale(${o/t}, ${r/n})`,transition:`transform 500ms ${I}`}}else{let t=C.width,n=C.height,o=C.left,r=C.top,s=o+t/2-e.x,i=r+n/2-e.y,a=Math.max(t/L.width,n/L.height);return{transform:`translate(${s}px, ${i}px) scale(${a})`,opacity:"0",transition:"none"}}return{transform:`translate(${_.x}px, ${_.y}px) scale(${d})`,transition:p?"none":`transform 0.2s ${I}
8`}},[C,L,u,b,j,_,d,p,I]);return(0,n.useEffect)(()=>{b&&!j&&$.current&&!u&&setTimeout(()=>{if(!$.current)return;let e=F();Object.assign($.current.style,{transform:e.transform,opacity:"0",transition:"none"}),$.current.offsetWidth,requestAnimationFrame(()=>{$.current&&($.current.style.transition=`transform 500ms ${E}`,$.current.style.transform="translate(0px, 0px) scale(1)",$.current.style.opacity="1")})},10)},[b,j,u,500,E,F]),(0,n.useEffect)(()=>()=>{T.current&&(T.current.style.opacity="1",T.current=null)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:q,className:(0,r.cn)(s.default.lightbox,i),children:e}),a&&(0,o.createPortal)((0,t.jsxs)("div",{className:(0,r.cn)(s.default.lightbox__overlay,{[s.default["lightbox__overlay--opening"]]:b&&!j,[s.default["lightbox__overlay--closing"]]:j}),onClick:O,role:"dialog","aria-modal":"true",tabIndex:0,children:[!j&&(0,t.jsx)("button",{className:s.default.lightbox__close,onClick:O,"aria-label":"關閉圖片預覽",children:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,t.jsx)("div",{className:(0,r.cn)(s.default.lightbox__content,{[s.default["lightbox__content--dragging"]]:p,[s.default["lightbox__content--animating"]]:b}),onWheel:e=>{if(b)return;e.preventDefault();let t=Math.min(Math.max(d*(1+-(.1*Math.sign(e.deltaY))),.5),5);if($.current){let n=$.current.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,s=o/n.width,i=r/n.height;f({x:_.x-(s-.5)*(t-d)*n.width,y:_.y-(i-.5)*(t-d)*n.height}),m(t)}},children:(0,t.jsx)("div",{ref:D,className:s.default["lightbox__image-container"],onClick:e=>O(e),children:(0,t.jsx)("img",{ref:$,src:a,alt:"Image preview",className:s.default.lightbox__image,onLoad:()=>{u&&(c(!1),$.current&&M())},style:{...F(),...u&&L.width>0&&{width:`${L.width}px`,height:`${L.height}px`,maxWidth:"100%",maxHeight:"100vh"}},onMouseDown:b?void 0:e=>{b||(e.preventDefault(),h(!0),v({x:e.clientX-_.x,y:e.clientY-_.y}),y(0))},onMouseMove:b?void 0:e=>{if(p&&!b){let t=e.clientX-g.x,n=e.clientY-g.y,o=t-_.x,r=n-_.y,s=Math.sqrt(o*o+r*r);y(e=>e+s),f({x:t,y:n})}},onMouseUp:b?void 0:z,onDoubleClick:b?void 0:()=>{b||(1!==d?(m(1),f({x:0,y:0})):m(2))},draggable:"false",onClick:e=>e.stopPropagation()})})})]}),document.body)]})};e.s(["Lightbox",0,i,"default",0,i])},277882,e=>{e.v({couponLoadingIndicator:"ValidationLoadingIndicator-module-scss-module__dPvUlW__couponLoadingIndicator",couponLoadingIndicator__spinner:"ValidationLoadingIndicator-module-scss-module__dPvUlW__couponLoadingIndicator__spinner",spin:"ValidationLoadingIndicator-module-scss-module__dPvUlW__spin",validationLoadingIndicator:"ValidationLoadingIndicator-module-scss-module__dPvUlW__validationLoadingIndicator",validationLoadingIndicator__spinner:"ValidationLoadingIndicator-module-scss-module__dPvUlW__validationLoadingIndicator__spinner"})},538328,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let o=({src:e,alt:o,width:r,height:s,className:i,rootMargin:a="200px",threshold:l=.01,style:u,imageSize:c,immediate:d=!1})=>{let{ref:m,isLoaded:_}=(({imageUrl:e,rootMargin:t="200px",threshold:o=.01,imageSize:r,immediate:s=!1})=>{let[i,a]=(0,n.useState)(!!s),[l,u]=(0,n.useState)(s),[c,d]=(0,n.useState)(void 0),m=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(s)return void u(!0);let e=new IntersectionObserver(([t])=>{t.isIntersecting&&(u(!0),e.disconnect())},{rootMargin:t,threshold:o}),n=m.current;return n&&e.observe(n),()=>{n&&e.unobserve(n)}},[t,o,s]),(0,n.useEffect)(()=>{if(!l)return;let t=()=>{if(!r)return e;let t="https://r2-web.eagle.cool/cdn-cgi/image",n="format=webp,quality=90",o=`${t}/width=${Math.floor(r/2)},${n}/${e}`,s=`${t}/width=${r},${n}/${e}`;return window.devicePixelRatio>=2?s:o};if(d(t()),r){let e=null,n=()=>{e&&clearTimeout(e),e=setTimeout(()=>{d(t())},100)},o=[window.matchMedia("(-webkit-min-device-pixel-ratio: 2)"),window.matchMedia("(min-resolution: 192dpi)"),window.matchMedia("(min-resolution: 2dppx)")];
8return o.forEach(e=>{e.addEventListener("change",n)}),()=>{o.forEach(e=>{e.removeEventListener("change",n)}),e&&clearTimeout(e)}}},[l,e,r]),(0,n.useEffect)(()=>{if(!l||!c||!m.current)return;let e=m.current,t=()=>{e.src===c&&a(!0)},n=()=>{e.src===c&&a(!1)};return e.src!==c&&(a(!1),e.src=c),e.removeEventListener("load",t),e.removeEventListener("error",n),e.complete&&e.src===c?a(!0):e.src===c&&(e.addEventListener("load",t),e.addEventListener("error",n)),()=>{e.removeEventListener("load",t),e.removeEventListener("error",n)}},[l,c]),{ref:m,isLoaded:i,isInView:l}})({imageUrl:e,rootMargin:a,threshold:l,imageSize:c,immediate:d});return(0,t.jsx)("img",{ref:m,src:e,alt:o,width:r,height:s,loading:"lazy",className:i,style:{...u,opacity:+!!_,transition:"opacity 0.3s var(--timing-function-super)"}})};e.s(["LazyImageClient",0,o,"default",0,o],538328)},707433,997638,e=>{"use strict";var t=e.i(843476),n=e.i(538328);e.s([],707433),e.s(["LazyImage",0,e=>(0,t.jsx)(n.default,{...e})],997638)},130013,e=>{"use strict";var t=e.i(271645);function n(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let r=Object.keys(e),s=Object.keys(t);return r.length===s.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let s=e[r],i=t[r];return"function"==typeof s?`${s}`==`${i}`:n(s)&&n(i)?o(s,i):s===i})}function r(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function i(e){return"string"==typeof e}function a(e){return"boolean"==typeof e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return Math.abs(e)}function c(e){return Math.sign(e)}function d(e){return p(e).map(Number)}function m(e){return e[_(e)]}function _(e){return Math.max(0,e.length-1)}function f(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function p(e){return Object.keys(e)}function h(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function g(){let e=[],t={add:function(n,o,r,s={passive:!0}){let i;return"addEventListener"in n?(n.addEventListener(o,r,s),i=()=>n.removeEventListener(o,r,s)):(n.addListener(r),i=()=>n.removeListener(r)),e.push(i),t},clear:function(){e=e.filter(e=>e())}};return t}function v(e=0,t=0){let n=u(e-t);function o(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return o(n)?n<e?e:t:n},reachedAny:o,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function x(e){let t=e;function n(e){return s(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function y(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},o=t.style,r=null,s=!1;return{clear:function(){!s&&(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(s)return;let i=Math.round(100*e.direction(t))/100;i!==r&&(o.transform=n(i),r=i)},toggleActive:function(e){s=!e}}}let b={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function w(e,t,n){let o,r,j,N,C,S,L,k,E=e.ownerDocument,I=E.defaultView,q=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(p(n).forEach(o=>{let r=t[o],s=n[o],i=l(r)&&l(s);t[o]=i?e(r,s):s}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let o=n.breakpoints||{},r=p(o).filter(t=>e.matchMedia(t).matches).map(e=>o[e]).reduce((e,n)=>t(e,n),{});return t(n,r)},optionsMediaQueries:function(t){return t.map(e=>p(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(I),$=(k=[],{init:function(e,t){return(k=t.filter(({options:e})=>!1!==q.optionsAtMedia(e).active)).forEach(t=>t.init(e,q)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){k=k.filter(e=>e.destroy())}}),T=g(),D=(r={},j={init:function(e){o=e}
8,emit:function(e){return(r[e]||[]).forEach(t=>t(o,e)),j},off:function(e,t){return r[e]=(r[e]||[]).filter(e=>e!==t),j},on:function(e,t){return r[e]=(r[e]||[]).concat([t]),j},clear:function(){r={}}}),{mergeOptions:M,optionsAtMedia:O,optionsMediaQueries:z}=q,{on:F,off:A,emit:P}=D,B=!1,R=M(b,w.globalOptions),W=M(R),H=[];function X(t,n){B||(W=O(R=M(R,t)),H=n||H,function(){let{container:t,slides:n}=W;S=(i(t)?e.querySelector(t):t)||e.children[0];let o=i(n)?S.querySelectorAll(n):n;L=[].slice.call(o||S.children)}(),N=function t(n){let o=function(e,t,n,o,r,l,b){var w,j;let N,C,S,L,k,E,I,q,$,T,D,M,O,z,{align:F,axis:A,direction:P,startIndex:B,loop:R,duration:W,dragFree:H,dragThreshold:X,inViewThreshold:U,slidesToScroll:V,skipSnaps:Q,containScroll:Y,watchResize:K,watchSlides:J,watchDrag:Z,watchFocus:G}=l,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:o,offsetHeight:r}=e;return{top:t,right:n+o,bottom:t+r,left:n,width:o,height:r}}},et=ee.measure(t),en=n.map(ee.measure),eo=(C="rtl"===P,L=(S="y"===A)||!C?1:-1,k=S?"top":C?"right":"left",E=S?"bottom":C?"left":"right",{scroll:S?"y":"x",cross:S?"x":"y",startEdge:k,endEdge:E,measureSize:function(e){let{height:t,width:n}=e;return S?t:n},direction:function(e){return e*L}}),er=eo.measureSize(et),es={measure:function(e){return e/100*er}},ei=(w=F,j=er,N={start:function(){return 0},center:function(e){return(j-e)/2},end:function(e){return j-e}},{measure:function(e,t){return i(w)?N[w](e):w(j,e,t)}}),ea=!R&&!!Y,{slideSizes:el,slideSizesWithGaps:eu,startGap:ec,endGap:ed}=function(e,t,n,o,r,s){let{measureSize:i,startEdge:a,endEdge:l}=e,c=n[0]&&r,d=function(){if(!c)return 0;let e=n[0];return u(t[a]-e[a])}(),f=c?parseFloat(s.getComputedStyle(m(o)).getPropertyValue(`margin-${l}`)):0,p=n.map(i),h=n.map((e,t,n)=>{let o=t===_(n);return t?o?p[t]+f:n[t+1][a]-e[a]:p[t]+d}).map(u);return{slideSizes:p,slideSizesWithGaps:h,startGap:d,endGap:f}}(eo,et,en,n,R||!!Y,r),em=function(e,t,n,o,r,i,a,l){let{startEdge:c,endEdge:f,direction:p}=e,h=s(n);return{groupSlides:function(e){return h?d(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?d(e).reduce((n,s,d)=>{let h=m(n)||0,g=s===_(e),v=r[c]-i[h][c],x=r[c]-i[s][f],y=o||0!==h?0:p(a),b=u(x-(!o&&g?p(l):0)-(v+y));return d&&b>t+2&&n.push(s),g&&n.push(e.length),n},[]).map((t,n,o)=>{let r=Math.max(o[n-1]||0);return e.slice(r,t)}):[]}}}(eo,er,V,R,et,en,ec,ed),{snaps:e_,snapsAligned:ef}=function(e,t,n,o,r){let{startEdge:s,endEdge:i}=e,{groupSlides:a}=r,l=a(o).map(e=>m(e)[i]-e[0][s]).map(u).map(t.measure),c=o.map(e=>n[s]-e[s]).map(e=>-u(e)),d=a(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:d}}(eo,ei,et,en,em),ep=-m(e_)+m(eu),{snapsContained:eh,scrollContainLimit:eg}=function(e,t,n,o){let r,s,i=v(-t+e,0),a=n.map((e,t)=>{let{min:o,max:r}=i,s=i.constrain(e),a=t===_(n);return t?a||function(e,t){return 1>=u(e-t)}(o,s)?o:function(e,t){return 1>=u(e-t)}(r,s)?r:s:r}).map(e=>parseFloat(e.toFixed(3))),l=(r=a[0],s=m(a),v(a.lastIndexOf(r),a.indexOf(s)+1));return{snapsContained:function(){if(t<=e+2)return[i.max];if("keepSnaps"===o)return a;let{min:n,max:r}=l;return a.slice(n,r)}(),scrollContainLimit:l}}(er,ep,ef,Y),ev=ea?eh:ef,{limit:ex}=(I=ev[0],{limit:v(R?I-ep:m(ev),I)}),ey=function e(t,n,o){let{constrain:r}=v(0,t),s=t+1,i=a(n);function a(e){return o?u((s+e)%s):r(e)}function l(){return e(t,i,o)}let c={get:function(){return i},set:function(e){return i=a(e),c},add:function(e){return l().set(i+e)},clone:l};return c}(_(ev),B,R),eb=ey.clone(),ew=d(n),ej=function(e,t,n,o){let r=g(),s=1e3/60,i=null,a=0,l=0;function u(e){if(!l)return;i||(i=e,n(),n());let r=e-i;for(i=e,a+=r;a>=s;)n(),a-=s;o(a/s),l&&(l=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(l),i=null,a=0,l=0}return{init:function(){r.add(e,"visibilitychange",()=>{e.hidden&&(i=null,a=0)})},destroy:function(){c(),r.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:n,render:o}}(o,r,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:o}})=>{o||n.constrain(e.pointerDown()),t.seek()})(ez),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:o,previousLocation:r,scrollLooper:s,slideLooper:i,dragHandler:a,animation:l,eventHandler:u,scrollBounds:c,options:{loop:d}},m)=>{let _=e.settled(),f=!c.shouldConstrain(),p=d?_:_&&f,h=p&&!a.pointerDown();h&&l.stop();let g=n.get()*m+r.get()*(1-m);o.set(g),d&&(s.loop(e.direction()),i.loop()),t.to(o.get()),h&&u.emit("settle"),p||u.emit("scroll")})(ez,e)),eN=ev[ey.get()],eC=x(eN),eS=x(eN),eL=x(eN),ek=x(eN),eE=function(e,t,n,o,r){let s=0,i=0,a=r,l=.68,d=e.get(),m=0;function _(e){return a=e,p}function f(e){return l=e,p}let p={direction:function(){return i},duration:function(){return a},velocity:function(){return s}
8,seek:function(){let t=o.get()-e.get(),r=0;return a?(n.set(e),s+=t/a,s*=l,d+=s,e.add(s),r=d-m):(s=0,n.set(o),e.set(o),r=t),i=c(r),m=d,p},settled:function(){return .001>u(o.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return _(r)},useFriction:f,useDuration:_};return p}(eC,eL,eS,ek,W),eI=function(e,t,n,o,r){let{reachedAny:s,removeOffset:i,constrain:a}=o;function l(e){return e.concat().sort((e,t)=>u(e)-u(t))[0]}function d(t,o){let r=[t,t+n,t-n];if(!e)return t;if(!o)return l(r);let s=r.filter(e=>c(e)===o);return s.length?l(s):m(r)-n}return{byDistance:function(n,o){let l=r.get()+n,{index:c,distance:m}=function(n){let o=e?i(n):a(n),{index:r}=t.map((e,t)=>({diff:d(e-o,0),index:t})).sort((e,t)=>u(e.diff)-u(t.diff))[0];return{index:r,distance:o}}(l),_=!e&&s(l);if(!o||_)return{index:c,distance:n};let f=n+d(t[c]-m,0);return{index:c,distance:f}},byIndex:function(e,n){let o=d(t[e]-r.get(),n);return{index:e,distance:o}},shortcut:d}}(R,ev,ep,ex,ek),eq=function(e,t,n,o,r,s,i){function a(r){let a=r.distance,l=r.index!==t.get();
8s.add(a),a&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(r.index),i.emit("select"))}return{distance:function(e,t){a(r.byDistance(e,t))},index:function(e,n){let o=t.clone().set(e);a(r.byIndex(o.get(),n))}}}(ej,ey,eb,eE,eI,ek,b),e$=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ex),eT=g(),eD=($={},T=null,D=null,M=!1,{init:function(){q=new IntersectionObserver(e=>{M||(e.forEach(e=>{$[n.indexOf(e.target)]=e}),T=null,D=null,b.emit("slidesInView"))},{root:t.parentElement,threshold:U}),n.forEach(e=>q.observe(e))},destroy:function(){q&&q.disconnect(),M=!0},get:function(e=!0){if(e&&T)return T;if(!e&&D)return D;let t=p($).reduce((t,n)=>{let o=parseInt(n),{isIntersecting:r}=$[o];return(e&&r||!e&&!r)&&t.push(o),t},[]);return e&&(T=t),e||(D=t),t}}),{slideRegistry:eM}=function(e,t,n,o,r,s){let i,{groupSlides:a}=r,{min:l,max:u}=o;return{slideRegistry:(i=a(s),1===n.length?[s]:e&&"keepSnaps"!==t?i.slice(l,u).map((e,t,n)=>{let o=t===_(n);return t?o?f(_(s)-m(n)[0]+1,m(n)[0]):e:f(m(n[0])+1)}):i)}}(ea,Y,ev,eg,em,ew),eO=function(e,t,n,o,r,i,l,u){let c={passive:!0,capture:!0},d=0;function m(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(_){u&&(i.add(document,"keydown",m,!1),t.forEach((t,m)=>{i.add(t,"focus",t=>{(a(u)||u(_,t))&&function(t){if(new Date().getTime()-d>10)return;l.emit("slideFocusStart"),e.scrollLeft=0;let i=n.findIndex(e=>e.includes(t));s(i)&&(r.useDuration(0),o.index(i,0),l.emit("slideFocus"))}(m)},c)}))}}}(e,n,eM,eq,eE,eT,b,G),ez={ownerDocument:o,ownerWindow:r,eventHandler:b,containerRect:et,slideRects:en,animation:ej,axis:eo,dragHandler:function(e,t,n,o,r,s,i,l,d,m,_,f,p,x,y,b,w,j){let{cross:N,direction:C}=e,S=["INPUT","SELECT","TEXTAREA"],L={passive:!1}
8,k=g(),E=g(),I=v(50,225).constrain(x.measure(20)),q={mouse:300,touch:400},$={mouse:500,touch:600},T=y?43:25,D=!1,M=0,O=0,z=!1,F=!1,A=!1,P=!1;function B(e){if(!h(e,o)&&e.touches.length>=2)return R(e);let t=s.readPoint(e),n=s.readPoint(e,N),i=u(t-M),a=u(n-O);if(!F&&!P&&(!e.cancelable||!(F=i>a)))return R(e);let c=s.pointerMove(e);i>b&&(A=!0),m.useFriction(.3).useDuration(.75),l.start(),r.add(C(c)),e.preventDefault()}function R(e){var t;let n,o,r=_.byDistance(0,!1).index!==f.get(),i=s.pointerUp(e)*(y?$:q)[P?"mouse":"touch"],a=(t=C(i),n=f.add(-1*c(t)),o=_.byDistance(t,!y).distance,y||u(t)<I?o:w&&r?.5*o:_.byIndex(n.get(),0).distance),l=function(e,t){var n,o;if(0===e||0===t||u(e)<=u(t))return 0;let r=(n=u(e),o=u(t),u(n-o));return u(r/e)}(i,a);F=!1,z=!1,E.clear(),m.useDuration(T-10*l).useFriction(.68+l/50),d.distance(a,!y),P=!1,p.emit("pointerUp")}function W(e){A&&(e.stopPropagation(),e.preventDefault(),A=!1)}return{init:function(e){j&&k.add(t,"dragstart",e=>e.preventDefault(),L).add(t,"touchmove",()=>void 0,L).add(t,"touchend",()=>void 0).add(t,"touchstart",l).add(t,"mousedown",l).add(t,"touchcancel",R).add(t,"contextmenu",R).add(t,"click",W,!0);function l(l){(a(j)||j(e,l))&&function(e){let a,l=h(e,o);if((P=l,A=y&&l&&!e.buttons&&D,D=u(r.get()-i.get())>=2,!l||0===e.button)&&(a=e.target.nodeName||"",!S.includes(a))){let o;z=!0,s.pointerDown(e),m.useFriction(0).useDuration(0),r.set(i),o=P?n:t,E.add(o,"touchmove",B,L).add(o,"touchend",R).add(o,"mousemove",B,L).add(o,"mouseup",R),M=s.readPoint(e),O=s.readPoint(e,N),p.emit("pointerDown")}}(l)}},destroy:function(){k.clear(),E.clear()},pointerDown:function(){return z}}}(eo,e,o,r,ek,function(e,t){let n,o;function r(e){return e.timeStamp}function s(n,o){let r=o||e.scroll,s=`client${"x"===r?"X":"Y"}`;return(h(n,t)?n:n.touches[0])[s]}return{pointerDown:function(e){return n=e,o=e,s(e)},pointerMove:function(e){let t=s(e)-s(o),i=r(e)-r(n)>170;return o=e,i&&(n=e),t},pointerUp:function(e){if(!n||!o)return 0;
8let t=s(o)-s(n),i=r(e)-r(n),a=r(e)-r(o)>170,l=t/i;return i&&!a&&u(l)>.1?l:0},readPoint:s}}(eo,r),eC,ej,eq,eE,eI,ey,b,es,H,X,Q,Z),eventStore:eT,percentOfView:es,index:ey,indexPrevious:eb,limit:ex,location:eC,offsetLocation:eL,previousLocation:eS,options:l,resizeHandler:function(e,t,n,o,r,s,i){let l,c,d=[e].concat(o),m=[],_=!1;function f(e){return r.measureSize(i.measure(e))}return{init:function(r){s&&(c=f(e),m=o.map(f),l=new ResizeObserver(n=>{(a(s)||s(r,n))&&function(n){for(let s of n){if(_)return;let n=s.target===e,i=o.indexOf(s.target),a=n?c:m[i];if(u(f(n?e:o[i])-a)>=.5){r.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{d.forEach(e=>l.observe(e))}))},destroy:function(){_=!0,l&&l.disconnect()}}}(t,b,r,n,eo,K,ee),scrollBody:eE,scrollBounds:function(e,t,n,o,r){let s=r.measure(10),i=r.measure(50),a=v(.1,.99),l=!1;function c(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(r){if(!c())return;let l=e.reachedMin(t.get())?"min":"max",d=u(e[l]-t.get()),m=n.get()-t.get(),_=a.constrain(d/i);
8n.subtract(m*_),!r&&u(m)<s&&(n.set(e.constrain(n.get())),o.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ex,eL,ek,eE,es),scrollLooper:function(e,t,n,o){let{reachedMin:r,reachedMax:s}=v(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?s(n.get()):-1===t&&r(n.get())))return;let i=-1*t*e;o.forEach(e=>e.add(i))}}}(ep,ex,eL,[eC,eL,eS,ek]),scrollProgress:e$,scrollSnapList:ev.map(e$.get),scrollSnaps:ev,scrollTarget:eI,scrollTo:eq,slideLooper:function(e,t,n,o,r,s,i,a,l){let u=d(r),c=d(r).reverse(),m=p(f(c,i[0]),n,!1).concat(p(f(u,t-i[0]-1),-n,!0));function _(e,t){return e.reduce((e,t)=>e-r[t],t)}function f(e,t){return e.reduce((e,n)=>_(e,t)>0?e.concat([n]):e,[])}function p(r,i,u){let c=s.map((e,n)=>({start:e-o[n]+.5+i,end:e+t-.5+i}));return r.map(t=>{let o=u?0:-n,r=u?n:0,s=c[t][u?"end":"start"];return{index:t,loopPoint:s,slideLocation:x(-1),translate:y(e,l[t]),target:()=>a.get()>s?o:r}})}return{canLoop:function(){return m.every(({index:e})=>.1>=_(u.filter(t=>t!==e),t))},clear:function(){m.forEach(e=>e.translate.clear())},loop:function(){m.forEach(e=>{let{target:t,translate:n,slideLocation:o}=e,r=t();r!==o.get()&&(n.to(r),o.set(r))})},loopPoints:m}}(eo,er,ep,el,eu,e_,ev,eL,n),slideFocus:eO,slidesHandler:(z=!1,{init:function(e){J&&(O=new MutationObserver(t=>{!z&&(a(J)||J(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),b.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){O&&O.disconnect(),z=!0}}),slidesInView:eD,slideIndexes:ew,slideRegistry:eM,slidesToScroll:em,target:ek,translate:y(eo,t)};return ez}(e,S,L,E,I,n,D);return n.loop&&!o.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):o}(W),z([R,...H.map(({options:e})=>e)]).forEach(e=>T.add(e,"change",U)),W.active&&(N.translate.to(N.location.get()),N.animation.init(),N.slidesInView.init(),N.slideFocus.init(K),N.eventHandler.init(K),N.resizeHandler.init(K),N.slidesHandler.init(K),N.options.loop&&N.slideLooper.loop(),S.offsetParent&&L.length&&N.dragHandler.init(K),C=$.init(K,H)))}function U(e,t){let n=Y();V(),X(M({startIndex:n},e),t),D.emit("reInit")}function V(){N.dragHandler.destroy(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),N.slidesInView.destroy(),N.animation.destroy(),$.destroy(),T.clear()}function Q(e,t,n){W.active&&!B&&(N.scrollBody.useBaseFriction().useDuration(!0===t?0:W.duration),N.scrollTo.index(e,n||0))}function Y(){return N.index.get()}let K={canScrollNext:function(){return N.index.add(1).get()!==Y()},canScrollPrev:function(){return N.index.add(-1).get()!==Y()},containerNode:function(){return S},internalEngine:function(){return N},destroy:function(){B||(B=!0,T.clear(),V(),D.emit("destroy"),D.clear())},off:A,on:F,emit:P,plugins:function(){return C},previousScrollSnap:function(){return N.indexPrevious.get()},reInit:U,rootNode:function(){return e},scrollNext:function(e){Q(N.index.add(1).get(),e,-1)},scrollPrev:function(e){Q(N.index.add(-1).get(),e,1)},scrollProgress:function(){return N.scrollProgress.get(N.offsetLocation.get())},scrollSnapList:function(){return N.scrollSnapList},scrollTo:Q,selectedScrollSnap:Y,slideNodes:function(){return L},slidesInView:function(){return N.slidesInView.get()},slidesNotInView:function(){return N.slidesInView.get(!1)}};return X(t,n),setTimeout(()=>D.emit("init"),0),K}function j(e={},n=[]){let s=(0,t.useRef)(e),i=(0,t.useRef)(n),[a,l]=(0,t.useState)(),[u,c]=(0,t.useState)(),d=(0,t.useCallback)(()=>{a&&a.reInit(s.current,i.current)},[a]);return(0,t.useEffect)(()=>{o(s.current,e)||(s.current=e,d())},[e,d]),(0,t.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=r(e),s=r(t);return n.every((e,t)=>o(e,s[t]))}(i.current,n)&&(i.current=n,d())},[n,d]),(0,t.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&u){w.globalOptions=j.globalOptions;let e=w(u,s.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[c,a]}w.globalOptions=void 0,j.globalOptions=void 0,e.s(["default",0,j],130013)},283044,e=>{e.v({embla:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla",embla__container:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__container",embla__slide:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__slide",embla__slide__content__inner:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__slide__content__inner",embla__slide__content__inner__avatar:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__slide__content__inner__avatar",embla__slide__content__inner__job:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__slide__content__inner__job",embla__slide__content__inner__name:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__slide__content__inner__name",embla__slide__content__inner__opinion:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__slide__content__inner__opinion",embla__slide__content__inner__person:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__slide__content__inner__person",embla__slide__content__inner__profile:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__slide__content__inner__profile",embla__viewport:"EmblaTestimonialCarousel-module-scss-module__Qk8fja__embla__viewport"})},509266,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(130013),r=e.i(283044),s=e.i(582744);let i={direction:"forward",speed:3,startDelay:500,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null},a=function(e={}){return function(e={}){let t,n,o,r=!1,s=!1,l=!1,u=0,c=e.speed||i.speed,d=.3*c;function m(){if(r||s)return;n.emit("autoScroll:play");let e=n.internalEngine(),{ownerWindow:o}=e;u=o.setTimeout(()=>{e.scrollBody=function(e){let{location:o,previousLocation:r,offsetLocation:s,target:i,scrollTarget:a,index:u,indexPrevious:m,limit:{reachedMin:f,reachedMax:p,c
8onstrain:h},options:{loop:g}}=e,v="forward"===t.direction?-1:1,x=o.get(),y=0,b=!1,w=0,j=0,N={direction:()=>w,duration:()=>-1,velocity:()=>j,settled:()=>b,seek:function(){r.set(o);let e=j+(v*(l?d:c)-j)*.1;j=e,x+=e,o.add(e),i.set(o),w=Math.sign(x-y),y=x;let C=a.byDistance(0,!1,1).index;u.get()!==C&&(m.set(u.get()),u.set(C),n.emit("select"));let S="forward"===t.direction?f(s.get()):p(s.get());if(!g&&S){b=!0;let e=h(o.get());o.set(e),i.set(o),_()}return N},useBaseFriction:()=>N,useBaseDuration:()=>N,useFriction:()=>N,useDuration:()=>N};return N}(e),e.animation.start()},t.startDelay),s=!0}function _(){if(r||!s)return;n.emit("autoScroll:stop");let e=n.internalEngine(),{ownerWindow:t}=e;e.scrollBody=o,t.clearTimeout(u),u=0,s=!1}function f(){_()}function p(){m()}function h(){l=!0}function g(){l=!1}function v(){n.off("settle",v),m()}return{name:"autoScroll",options:e,init:function(s,l){n=s;let{mergeOptions:u,optionsAtMedia:c}=l,d=u(i,a.globalOptions);if(t=c(u(d,e)),n.scrollSnapList().length<=1)return;r=!1,o=n.internalEngine().scrollBody;let{eventStore:_}=n.internalEngine(),v=t.rootNode?t.rootNode(n.rootNode()):n.rootNode();n.on("pointerDown",f),n.on("pointerUp",p),_.add(v,"mouseenter",h),_.add(v,"mouseleave",g),t.playOnInit&&m()},destroy:function(){n.off("pointerDown",f).off("pointerUp",p).off("settle",v),_(),r=!0,s=!1},play:function(e){void 0!==e&&(t.startDelay=e),m()},stop:_,reset:function(){s&&(_(),n.on("settle",v))},isPlaying:()=>s}}(e)};a.globalOptions=void 0;var l=e.i(908267);e.i(707433);var u=e.i(997638);e.s(["EmblaTestimonialCarousel",0,({testimonials:e,direction:i="forward",className:c})=>
8{let[d,m]=(0,n.useState)(!1),_=(0,n.useRef)(!1),f=(0,n.useRef)(null),p=(0,n.useRef)(null),h=(0,n.useRef)(!1);(0,n.useEffect)(()=>{let e=()=>{m(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let g=Math.floor(e.length/2),[v,x]=(0,o.default)({loop:!0,dragFree:!0,containScroll:"trimSnaps",axis:"x",watchDrag:!0,align:"start",startIndex:g},[a({speed:1.2,stopOnMouseEnter:!0,direction:i,stopOnInteraction:!0})]);return(0,n.useEffect)(()=>{if(!x)return;let e=()=>{h.current=!0},t=()=>{setTimeout(()=>{h.current=!1},100)};return window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("scrollend",t,{passive:!0}),()=>{window.removeEventListener("scroll",e),window.removeEventListener("scrollend",t)}},[x]),(0,n.useEffect)(()=>{if(!x)return;let e=()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{h.current||x.reInit()},200)};return window.addEventListener("resize",e),_.current||(async()=>{await new Promise(e=>setTimeout(e,100)),x.scrollTo(g),_.current=!0})(),()=>{window.removeEventListener("resize",e),f.current&&clearTimeout(f.current)}},[x,g,d]),(0,t.jsx)("div",{className:(0,l.cn)(r.default.embla,c),children:(0,t.jsx)("div",{className:r.default.embla__viewport,ref:v,children:(0,t.jsx)("div",{className:r.default.embla__container,ref:p,children:e.map((e,n)=>(0,t.jsx)("div",{className:r.default.embla__slide,children:(0,t.jsxs)(s.default,{className:r.default.embla__slide__content__inner,children:[(0,t.jsxs)("div",{className:r.default.embla__slide__content__inner__profile,children:[(0,t.jsx)("div",{className:r.default.embla__slide__content__inner__avatar,children:(0,t.jsx)(u.LazyImage,{src:e.avatar?e.avatar:"/placeholder-avatar.png",alt:e.name||"avatar",width:48,height:48,imageSize:160,style:{objectFit:"cover"}})}),(0,t.jsxs)("div",{className:r.default.embla__slide__content__inner__person,children:[(0,t.jsx)("div",{className:r.default.embla__slide__content__inner__name,dangerouslySetInnerHTML:{__html:e.name}}),(0,t.jsx)("div",{className:r.default.embla__slide__content__inner__job,dangerouslySetInnerHTML:{__html:e.job}})]})]}),(0,t.jsx)("div",{className:r.default.embla__slide__content__inner__opinion,dangerouslySetInnerHTML:{__html:e.opinion}})]})},n))})})})}],509266)},36109,132004,507901,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(582744);e.s(["default",0,({tabsData:e,containersData:r,initialActiveTabId:s})=>{let[i,a]=(0,n.useState)(s);(0,n.useEffect)(()=>{a(s)},[s]);let l=r.reduce((e,t)=>(e[t.id]=t.htmlContent,e),{});return(0,t.jsx)(o.default,{className:"tabs-container-react",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"tabs",children:e.map(e=>(0,t.jsx)("button",{className:`tab ${e.id===i?"active":""}`,onClick:()=>{a(e.id)},children:e.text},e.id))}),(0,t.jsxs)("div",{className:"containers",children:[i&&l[i]&&(0,t.jsx)("div",{className:"container active",dangerouslySetInnerHTML:{__html:l[i]}}),(!i||!l[i])&&(0,t.jsx)("div",{className:"container active",children:"請選擇一個頁籤"})]})]})})}],36109),e.s(["default",0,({tabsData:e,containersData:o,initialActiveTabId:r})=>{let[s,i]=(0,n.useState)(r);(0,n.useEffect)(()=>{i(r)},[r]);let a=o.reduce((e,t)=>(e[t.id]=t.htmlContent,e),{});return(0,t.jsxs)("div",{className:"os-tabs-container-react",children:[(0,t.jsx)("div",{className:"tabs",children:e.map(e=>(0,t.jsx)("button",{className:`tab ${e.id===s?"active":""}`,onClick:()=>{i(e.id)},children:e.text},e.id))}),(0,t.jsxs)("div",{className:"containers",children:[s&&a[s]&&(0,t.jsx)("div",{className:"container active",dangerouslySetInnerHTML:{__html:a[s]}}),(!s||!a[s])&&(0,t.jsx)("div",{className:"container active",children:"請選擇一個頁籤"})]})]})}],132004),e.s(["default",0,({tabsData:e,containersData:r,initialActiveTabId:s})=>{let[i,a]=(0,n.useState)(s);(0,n.useEffect)(()=>{a(s)},[s]);let l=r.reduce((e,t)=>(e[t.id]=t.htmlContent,e),{});return(0,t.jsx)(o.default,{className:"os-icon-tabs-container-react",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"tabs",children:e.map(e=>(0,t.jsxs)("button",{className:`tab ${e.id===i?"active":""}`,onClick:()=>{a(e.id)},children:["Windows"===e.text?(0,t.jsx)("img",{src:"/ck-plugins/windows.png",alt:"Windows",width:14,height:14}):"macOS"===e.text?(0,t.jsx)("img",{src:"/ck-plugins/macos.png",alt:"macOS",width:14,height:14}):null,e.text]},e.id))}),(0,t.jsxs)("div",{className:"containers",children:[i&&l[i]&&(0,t.jsx)("div",{className:"container active",dangerouslySetInnerHTML:{__html:l[i]}}),(!i||!l[i])&&(0,t.jsx)("div",{className:"container active",children:"請選擇一個頁籤"})]})]})})}],507901)},559466,e=>
8{e.v({"coupon-loading-indicator":"share-module-scss-module__2-o-Cq__coupon-loading-indicator","coupon-loading-indicator__spinner":"share-module-scss-module__2-o-Cq__coupon-loading-indicator__spinner",loading:"share-module-scss-module__2-o-Cq__loading","payment-method":"share-module-scss-module__2-o-Cq__payment-method","payment-method--selected":"share-module-scss-module__2-o-Cq__payment-method--selected","payment-method__icon":"share-module-scss-module__2-o-Cq__payment-method__icon","payment-method__label":"share-module-scss-module__2-o-Cq__payment-method__label","payment-method__slider-indicator":"share-module-scss-module__2-o-Cq__payment-method__slider-indicator","payment-method__type-button":"share-module-scss-module__2-o-Cq__payment-method__type-button","store-form":"share-module-scss-module__2-o-Cq__store-form","store-form__content":"share-module-scss-module__2-o-Cq__store-form__content","store-form__details":"share-module-scss-module__2-o-Cq__store-form__details","store-form__email-suggestion":"share-module-scss-module__2-o-Cq__store-form__email-suggestion","store-form__email-suggestion-value":"share-module-scss-module__2-o-Cq__store-form__email-suggestion-value","store-form__final-price":"share-module-scss-module__2-o-Cq__store-form__final-price","store-form__final-price--value":"share-module-scss-module__2-o-Cq__store-form__final-price--value","store-form__final-price-symbol":"share-module-scss-module__2-o-Cq__store-form__final-price-symbol","store-form__final-price-value":"share-module-scss-module__2-o-Cq__store-form__final-price-value","store-form__horizon-line":"share-module-scss-module__2-o-Cq__store-form__horizon-line","store-form__input":"share-module-scss-module__2-o-Cq__store-form__input","store-form__input--error":"share-module-scss-module__2-o-Cq__store-form__input--error","store-form__input--suggestion":"share-module-scss-module__2-o-Cq__store-form__input--suggestion","store-form__input-error":"share-module-scss-module__2-o-Cq__store-form__input-error","store-form__input-group":"share-module-scss-module__2-o-Cq__store-form__input-group","store-form__input-group-button":"share-module-scss-module__2-o-Cq__store-form__input-group-button","store-form__input-group-control":"share-module-scss-module__2-o-Cq__store-form__input-group-control","store-form__input-group-input":"share-module-scss-module__2-o-Cq__store-form__input-group-input","store-form__input-loading":"share-module-scss-module__2-o-Cq__store-form__input-loading","store-form__input-wrapper":"share-module-scss-module__2-o-Cq__store-form__input-wrapper","store-form__label":"share-module-scss-module__2-o-Cq__store-form__label","store-form__label--payment-method":"share-module-scss-module__2-o-Cq__store-form__label--payment-method","store-form__license-info":"share-module-scss-module__2-o-Cq__store-form__license-info","store-form__license-result":"share-module-scss-module__2-o-Cq__store-form__license-result","store-form__license-result--error":"share-module-scss-module__2-o-Cq__store-form__license-result--error","store-form__license-result--success":"share-module-scss-module__2-o-Cq__store-form__license-result--success","store-form__license-result-message":"share-module-scss-module__2-o-Cq__store-form__license-result-message","store-form__license-result-title":"share-module-scss-module__2-o-Cq__store-form__license-result-title","store-form__license-result-title--error":"share-module-scss-module__2-o-Cq__store-form__license-result-title--error","store-form__license-result-title--success":"share-module-scss-module__2-o-Cq__store-form__license-result-title--success","store-form__original-price":"share-module-scss-module__2-o-Cq__store-form__original-price","store-form__original-price-value":"share-module-scss-module__2-o-Cq__store-form__original-price-value","store-form__payment-methods":"share-module-scss-module__2-o-Cq__store-form__payment-methods","store-form__pricing":"share-module-scss-module__2-o-Cq__store-form__pricing","store-form__quantity":"share-module-scss-module__2-o-Cq__store-form__quantity","store-form__quantity-control":"share-module-scss-module__2
8-o-Cq__store-form__quantity-control","store-form__slider-indicator":"share-module-scss-module__2-o-Cq__store-form__slider-indicator","store-form__slider-indicator--company":"share-module-scss-module__2-o-Cq__store-form__slider-indicator--company","store-form__submit":"share-module-scss-module__2-o-Cq__store-form__submit","store-form__type-button":"share-module-scss-module__2-o-Cq__store-form__type-button","store-form__type-button--active":"share-module-scss-module__2-o-Cq__store-form__type-button--active","store-form__type-selector":"share-module-scss-module__2-o-Cq__store-form__type-selector","store-form__user-info":"share-module-scss-module__2-o-Cq__store-form__user-info","store-form__wrapper":"share-module-scss-module__2-o-Cq__store-form__wrapper"})},652590,(e,t,n)=>{var o={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu"],run:function(e){e.domains=e.domains||o.defaultDomains,e.secondLevelDomains=e.secondLevelDomains||o.defaultSecondLevelDomains,e.topLevelDomains=e.topLevelDomains||o.defaultTopLevelDomains,e.distanceFunction=e.distanceFunction||o.sift3Distance;var t=function(e){return e},n=e.suggested||t,r=e.empty||t,s=o.suggest(o.encodeEmail(e.email),e.domains,e.secondLevelDomains,e.topLevelDomains,e.distanceFunction);return s?n(s):r()},suggest:function(e,t,n,o,r){e=e.toLowerCase();var s=this.splitEmail(e);if(n&&o&&-1!==n.indexOf(s.secondLevelDomain)&&-1!==o.indexOf(s.topLevelDomain))return!1;var i=this.findClosestDomain(s.domain,t,r,this.domainThreshold);if(i)if(i==s.domain)return!1;else return{address:s.address,domain:i,full:s.address+"@"+i};var a=this.findClosestDomain(s.secondLevelDomain,n,r,this.secondLevelThreshold),l=this.findClosestDomain(s.topLevelDomain,o,r,this.topLevelThreshold);if(s.domain){var i=s.domain,u=!1;if(a&&a!=s.secondLevelDomain&&(i=i.replace(s.secondLevelDomain,a),u=!0),l&&l!=s.topLevelDomain&&(i=i.replace(s.topLevelDomain,l),u=!0),!0==u)return{address:s.address,domain:i,full:s.address+"@"+i}}return!1},findClosestDomain:function(e,t,n,o){o=o||this.topLevelThreshold;var r,s=99,i=null;if(!e||!t)return!1;n||(n=this.sift3Distance);for(var a=0;a<t.length;a++){if(e===t[a])return e;(r=n(e,t[a]))<s&&(s=r,i=t[a])}return s<=o&&null!==i&&i},sift3Distance:function(e,t){if(null==e||0===e.length)if(null==t||0===t.length)return 0;else return t.length;if(null==t||0===t.length)return e.length;for(var n=0,o=0,r=0,s=0;n+o<e.length&&n+r<t.length;){if(e.charAt(n+o)==t.charAt(n+r))s++;else{o=0,r=0;for(var i=0;i<5;i++){if(n+i<e.length&&e.charAt(n+i)==t.charAt(n)){o=i;break}if(n+i<t.length&&e.charAt(n)==t.charAt(n+i)){r=i;break}}}n++}return(e.length+t.length)/2-s},splitEmail:function(e){var t=e.trim().split("@");if(t.length<2)return!1;for(var n=0;n<t.length;n++)if(""===t[n])return!1;var o=t.pop(),r=o.split("."),s="",i="";if(0==r.length)return!1;if(1==r.length)i=r[0];else{s=r[0];for(var n=1;n<r.length;n++)i+=r[n]+".";i=i.substring(0,i.length-1)}return{topLevelDomain:i,secondLevelDomain:s,domain:o,address:t.join("@")}},encodeEmail:function(e){var t=encodeURI(e);return t.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};t.exports&&(t.exports=o),"function"==typeof define&&define.amd&&void 0!==o&&e.v(o),"u">typeof window&&window.jQuery&&(jQuery.fn.mailcheck=function(e){var t=this;if(e.suggested){var n=e.suggested;e.suggested=function(e){n(t,e)}}if(e.empty){var r=e.empty;e.empty=function(){r.call(null,t)}}e.email=this.val(),o.run(e)})},324211,e=>{e.v({accordion:"index-module-scss-module__zln0SW__accordion",accordion__button:"index-module-scss-module__zln0SW__accordion__button","accordion__button--active":"index-module-scss-module__zln0SW__accordion__button--active",accordion__button__icon:"index-module-scss-module__zln0SW__accordion__button__icon",accordion__content:"index-module-scss-module__zln0SW__accordion__content",accordion__item:"index-module-scss-module__zln0SW__accordion__item","accordion__item--active":"index-module-scss-module__zln0SW__accordion__item--active",accordion__item__header:"index-module-scss-module__zln0SW__accordion__item__header",accordion__title:"index-module-scss-module__zln0SW__accordion__title",accordion__wrapper:"index-module-scss-module__zln0SW__accordion__wrapper","article-content":"index-module-scss-module__zln0SW__article-content","content-spin":"index-module-scss-module__zln0SW__content-spin","content-spinner":"index-module-scss-module__zln0SW__content-spinner","content-spinner-container":"index-module-scss-module__zln0SW__content-spinner-container",faq:"index-module-scss-module__zln0SW__faq",faq__wrapper:"index-module-scss-module__zln0SW__faq__wrapper"})},209432,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(324211),r=e.i(908267),s=e.i(582744),i=e.i(36109),a=e.i(132004),l=e.i(507901);function u({item:e,index:s,isActive:c,onToggle:d}){let{isLoading:m,parsedContent:_}=(e=>
8{let[o,r]=(0,n.useState)(!0),[s,u]=(0,n.useState)([]),[c,d]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=navigator.userAgent.toLowerCase(),t=null;e.includes("win")?t="windows-cke":e.includes("mac")&&(t="macos-cke"),d(t)},[]),(0,n.useEffect)(()=>{if(r(!0),!e){u([(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:""}},"empty")]),r(!1);return}let o=setTimeout(()=>{try{let o=new DOMParser().parseFromString(e,"text/html").body,r=e=>{if(!e)return null;if(e.nodeType===Node.TEXT_NODE)return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){if(e.classList.contains("tabs-container"))return(e=>{let n=e.querySelector(".tabs"),o=e.querySelector(".containers");if(!n||!o)return null;let r=[],s=n.querySelectorAll(".tab"),a=null;s.forEach(e=>{let t=e.getAttribute("data-target");e.classList.contains("active")&&(a=t),t&&r.push({id:t,text:e.textContent||`頁籤 ${t}`})});let l=[];return(o.querySelectorAll(".container").forEach(e=>{let t=e.id;!a&&e.classList.contains("active")&&(a=t),t&&l.push({id:t,htmlContent:e.innerHTML})}),!a&&r.length>0&&(a=r[0].id),r.length>0&&l.length>0)?(0,t.jsx)(i.default,{tabsData:r,containersData:l,initialActiveTabId:a},`tabs-container-${e.id||Math.random()}`):null})(e);if(e.classList.contains("os-tabs-container"))return(e=>{let n=e.querySelector(".tabs"),o=e.querySelector(".containers");if(!n||!o)return null;let r=[];n.querySelectorAll(".tab").forEach(e=>{let t=e.getAttribute("data-target");t&&r.push({id:t,text:e.textContent||`頁籤 ${t}`})});let s=[];o.querySelectorAll(".container").forEach(e=>{let t=e.id;t&&s.push({id:t,htmlContent:e.innerHTML})});let i=r.some(e=>"windows-cke"===e.id),l=r.some(e=>"macos-cke"===e.id),u=c;return(("windows-cke"!==c||i)&&("macos-cke"!==c||l)||(u=null),!u&&r.length>0&&(u=r[0].id),r.length>0&&s.length>0)?(0,t.jsx)(a.default,{tabsData:r,containersData:s,initialActiveTabId:u},`os-tabs-container-${e.id||Math.random()}`):null})(e);if(e.classList.contains("os-icon-tabs-container"))return(e=>{let n=e.querySelector(".tabs"),o=e.querySelector(".containers");if(!n||!o)return null;let r=[];n.querySelectorAll(".tab").forEach(e=>{let t=e.getAttribute("data-target"),n=e.getAttribute("data-icon")||e.textContent||`icon-${t}`;t&&r.push({id:t,text:n})});let s=[];o.querySelectorAll(".container").forEach(e=>{let t=e.id;t&&s.push({id:t,htmlContent:e.innerHTML})});let i=r.some(e=>"windows-cke"===e.id),a=r.some(e=>"macos-cke"===e.id),u=c;return(("windows-cke"!==c||i)&&("macos-cke"!==c||a)||(u=null),!u&&r.length>0&&(u=r[0].id),r.length>0&&s.length>0)?(0,t.jsx)(l.default,{tabsData:r,containersData:s,initialActiveTabId:u},`os-icon-tabs-container-${e.id||Math.random()}`):null})(e);let o={};for(let t=0;t<e.attributes.length;t++){let n=e.attributes[t];if("class"===n.name)o.className=n.value;else if("style"===n.name){let e={};n.value.split(";").forEach(t=>{let[n,o]=t.split(":");n&&o&&(e[n.trim().replace(/-([a-z])/g,e=>e[1].toUpperCase())]=o.trim())}),o.style=e}else"tabindex"===n.name?o.tabIndex=parseInt(n.value,10):o[n.name]=n.value}let s=[];for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t],o=r(n);null!==o&&s.push(o)}let u=e.id||`node-${Math.random()}`;return n.default.createElement(e.tagName.toLowerCase(),{...o,key:u},...s)}return null},s=[];for(let e=0;e<o.childNodes.length;e++){let t=o.childNodes[e],i=r(t);null!==i&&(n.default.isValidElement(i)?s.push(n.default.cloneElement(i,{key:e})):s.push(i))}u(s)}catch(n){u([(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e}},"error")])}finally{r(!1)}},0);return()=>clearTimeout(o)},[e,c]),{isLoading:o,parsedContent:s}})(e.answer);return(0,t.jsxs)("div",{className:(0,r.cn)(o.default.accordion__item,{[o.default["accordion__item--active"]]:c}),children:[(0,t.jsxs)("div",{className:o.default.accordion__item__header,onClick:d,children:[(0,t.jsx)("div",{className:o.default.accordion__title,children:e.question}),(0,t.jsx)("button",{className:(0,r.cn)(o.default.accordion__button,{[o.default["accordion__button--active"]]:c}),"aria-label":c?"收合":"展開",children:(0,t.jsx)("div",{className:o.default.accordion__button__icon})})]}),(0,t.jsx)("div",{className:o.default.accordion__content,children:m?(0,t.jsx)("div",{children:"載入中..."}):_})]})}e.s(["default",0,function({items:e}
8){let[i,a]=(0,n.useState)([]);return(0,t.jsx)("div",{className:o.default.accordion__wrapper,children:(0,t.jsx)(s.default,{className:(0,r.cn)("feature-card",o.default.accordion),children:e.map((e,n)=>(0,t.jsx)(u,{item:e,index:n,isActive:i.includes(n),onToggle:()=>{a(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])}},n))})})}])},265448,e=>{"use strict";var t=e.i(843476),n=e.i(559466),o=e.i(277882),r=e.i(271645),s=e.i(908267),i=e.i(174745),a=e.i(861745),l=e.i(948148),u=e.i(582744),c=e.i(652590),d=e.i(391541);c.default.defaultTopLevelDomains.push("com.cn","com.tw","cn","tw"),c.default.defaultDomains.push("foxmail.com"),c.default.defaultDomains.push("sina.com"),c.default.defaultDomains.push("163.com"),c.default.defaultDomains.push("139.com"),c.default.defaultDomains.push("126.com"),c.default.defaultDomains.push("yeah.net");let m=({type:e,icon:o,label:r,selected:i,onSelect:a})=>(0,t.jsxs)("div",{role:"radio","aria-checked":i,tabIndex:0,className:(0,s.cn)(n.default["payment-method"],{[n.default["payment-method--selected"]]:i}),onClick:()=>a(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&a(e)},children:[(0,t.jsx)("img",{src:`/images/purchase-form/${o}.png`,alt:r,className:n.default["payment-method__icon"]}),(0,t.jsx)("span",{className:n.default["payment-method__label"],children:r})]});e.s(["PurchaseForm",0,({enableDiscount:e=!1,initialCoupon:_})=>{let f=(0,a.useLocale)(),p=(0,l.useTranslations)("purchaseForm"),h=(0,r.useCallback)(async e=>{N(!0);try{let t=await fetch("/api/validate-coupon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({coupon:e})}),n=await t.json();n.success?(k(n.discount),n.owner&&(D(n.owner),P(!0)),n.amount&&(y(n.amount),R(!0)),I(!0)):S(p("couponInvalid"))}catch(e){S(p("couponInvalid"))}finally{N(!1)}},[p]),[g,v]=(0,r.useState)((e=>{switch(e){case"tw":return"spgateway";case"cn":return"wechat";default:return"paypal"}})(f)),[x,y]=(0,r.useState)(1),[b,w]=(0,r.useState)(_||""),[j,N]=(0,r.useState)(!1),[C,S]=(0,r.useState)(""),[L,k]=(0,r.useState)(1),[E,I]=(0,r.useState)(e),[q,$]=(0,r.useState)(""),[T,D]=(0,r.useState)(""),[M,O]=(0,r.useState)(null),[z,F]=(0,r.useState)({}),[A,P]=(0,r.useState)(!1),[B,R]=(0,r.useState)(!1),[W,H]=(0,r.useState)("personal"),[X,U]=(0,r.useState)(""),[V,Q]=(0,r.useState)(""),[Y,K]=(0,r.useState)("");(0,r.useLayoutEffect)(()=>{if(_)h(_);else if((0,i.isInBlackFridayPeriod)()){let e="BLACK-FRIDAY-2025";w(e),h(e)}},[_,h]);let{symbol:J,base:Z}=(()=>{switch(f){case"tw":return{symbol:"NT$",base:1050};case"cn":return{symbol:"Â¥",base:229};default:return{symbol:"US$",base:34.95}}})(),G=Number.isInteger(Z*x*L)?(Z*x*L).toString():(Z*x*L).toFixed(2),ee=Number.isInteger(Z*x)?(Z*x).toString():(Z*x).toFixed(2),et=(0,r.useRef)(null),en=(0,r.useCallback)(e=>{et.current&&clearTimeout(et.current),et.current=setTimeout(async()=>{if(!e){S(""),k(1),I(!1),P(!1),R(!1);return}N(!0);try{let t=await fetch("/api/validate-coupon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({coupon:e})}),n=await t.json();n.success?(S(""),k(n.discount),n.owner?(D(n.owner),P(!0)):P(!1),n.amount?(y(n.amount),R(!0)):R(!1),I(!0)):(S(p("couponInvalid")),k(1),I(!1),P(!1),R(!1))}catch(e){S(p("couponInvalid")),k(1),I(!1),P(!1),R(!1)}finally{N(!1)}},500)},[p]);(0,r.useEffect)(()=>()=>{et.current&&clearTimeout(et.current)},[]),(0,r.useEffect)(()=>{"company"===W&&(!X&&q?U(q):!q&&X&&$(X))},[W,q,X]);let eo=(0,r.useCallback)(e=>{let t=e.target.value;D(t),O(null),t&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)&&c.default.run({email:t,suggested:e=>{e&&O(e.full)},empty:()=>{t.includes("www.")&&t.includes("qq.com")?O(t.replace("www.","")):O(null)}})},[]),er=(0,r.useCallback)(()=>{M&&(D(M),O(null))},[M]),es=async e=>{e.preventDefault()},ei=async()=>{F({});let e={};if("company"===W?(X.trim()||(e.companyName=p("companyNameRequired")),V.trim()||(e.address=p("addressRequired"))):q.trim()||(e.name=p("nameRequired")),T.trim()&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(T)||(e.email=p("emailInvalid")),Object.keys(e).length>0)return void F(e);let t=b;if((!t||!t.trim())&&(0,i.isInBlackFridayPeriod)()){w(t="BLACK-FRIDAY-2025"),N(!0);try{let e=await fetch("/api/validate-coupon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({coupon:t})}),n=await e.json();if(n.success)k(n.discount),n.owner&&(D(n.owner),P(!0)),n.amount&&(y(n.amount),R(!0)),I(!0),S("");else{S(p("couponInvalid")),N(!1);return}}catch(e){S(p("couponInvalid")),N(!1);return}finally{N(!1)}}let n="https://core.eagle.cool",o="",r=(e=>{if("u"<typeof document)return null;let t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop()?.split(";").shift()||null})("irclickid")||"";switch(g){case"paypal":o=`${n}/buy`;break;case"alipay":case"wechat":o=`${n}/newebpay`;break;case"spgateway":o=`${n}/spgateway`}let s=new URLSearchParams;s.append("email",T),"company"===W?(s.append("name",X),s.append("companyName",X)):s.append("name",q),s.append("purchaseType",W),V&&s.append("address",V),Y&&s.append("taxId",Y),x>1&&s.append("amount",x.toString()),t&&!C&&s.append("coupon",t),["alipay","wechat","spgateway"].includes(g)&&s.append("t",Date.now().toString()),("alipay"===g||"wechat"===g)&&s.append("paymentType",g),r&&s.append("irclickid",r);let a=`${o}?${s.toString()}`;window.location.href=a};return(0,t.jsx)("form",{className:n.default["store-form"],onSubmit:es,children:(0,t.jsxs)(u.default,{className:n.default["store-form__wrapper"],children:[j&&(0,t.jsx)("div",{className:o.default.validationLoadingIndicator,children:(0,t.jsx)("div",{className:o.default.validationLoadingIndicator__spinner})}
8),(0,t.jsxs)("div",{className:n.default["store-form__content"],children:[(0,t.jsxs)("div",{className:n.default["store-form__quantity"],children:[(0,t.jsx)("label",{className:n.default["store-form__label"],children:p("quantity")}),(0,t.jsxs)("div",{className:n.default["store-form__input-group-control"],children:[(0,t.jsx)("button",{className:n.default["store-form__input-group-button"],onClick:()=>{x>1&&y(e=>e-1)},disabled:x<=1||B,children:(0,t.jsx)("img",{src:"/images/purchase-form/minus.png",alt:"Decrease",width:24,height:24})}),(0,t.jsx)("input",{type:"number",value:x,onChange:e=>{let t=parseInt(e.target.value);!isNaN(t)&&t>=1&&t<=99&&y(t)},className:n.default["store-form__input-group-input"],min:1,max:99,disabled:B}),(0,t.jsx)("button",{className:n.default["store-form__input-group-button"],onClick:()=>{x<99&&y(e=>e+1)},disabled:x>=99||B,children:(0,t.jsx)("img",{src:"/images/purchase-form/plus.png",alt:"Increase",width:24,height:24})})]})]}),(0,t.jsx)("div",{className:n.default["store-form__horizon-line"]}),(0,t.jsxs)("div",{className:n.default["store-form__user-info"],children:[(0,t.jsxs)("div",{className:n.default["store-form__input-group"],children:[(0,t.jsx)("label",{className:n.default["store-form__label"],children:p("identity")}),(0,t.jsxs)("div",{className:n.default["store-form__type-selector"],children:[(0,t.jsx)("div",{className:(0,s.cn)(n.default["store-form__slider-indicator"],{[n.default["store-form__slider-indicator--company"]]:"company"===W})}),(0,t.jsx)("button",{type:"button",className:(0,s.cn)(n.default["store-form__type-button"],{[n.default["store-form__type-button--active"]]:"personal"===W}),onClick:()=>{H("personal"),"company"===W&&X&&$(X)},children:p("personal")}),(0,t.jsx)("button",{type:"button",className:(0,s.cn)(n.default["store-form__type-button"],{[n.default["store-form__type-button--active"]]:"company"===W}),onClick:()=>{H("company"),!X&&q&&U(q)},children:p("company")})]})]}),"company"===W&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:n.default["store-form__input-group"],children:[(0,t.jsx)("label",{htmlFor:"companyName",className:n.default["store-form__label"],children:p("companyName")}),(0,t.jsxs)("div",{className:n.default["store-form__input-wrapper"],children:[(0,t.jsx)("input",{id:"companyName",type:"text",value:X,onChange:e=>{let t=e.target.value;U(t),$(t)},placeholder:p("companyNamePlaceholder"),className:(0,s.cn)(n.default["store-form__input"],{[n.default["store-form__input--error"]]:!!z.companyName})}),z.companyName&&(0,t.jsx)("span",{className:n.default["store-form__input-error"],children:z.companyName})]})]}),(0,t.jsxs)("div",{className:n.default["store-form__input-group"],children:[(0,t.jsx)("label",{htmlFor:"address",className:n.default["store-form__label"],children:p("address")}),(0,t.jsxs)("div",{className:n.default["store-form__input-wrapper"],children:[(0,t.jsx)("input",{id:"address",type:"text",value:V,onChange:e=>Q(e.target.value),placeholder:p("addressPlaceholder"),className:(0,s.cn)(n.default["store-form__input"],{[n.default["store-form__input--error"]]:!!z.address})}),z.address&&(0,t.jsx)("span",{className:n.default["store-form__input-error"],children:z.address})]})]}),(0,t.jsxs)("div",{className:n.default["store-form__input-group"],children:[(0,t.jsx)("label",{htmlFor:"taxId",className:n.default["store-form__label"],children:p("taxId")}),(0,t.jsx)("div",{className:n.default["store-form__input-wrapper"],children:(0,t.jsx)("input",{id:"taxId",type:"text",value:Y,onChange:e=>K(e.target.value),placeholder:p("taxId"),className:(0,s.cn)(n.default["store-form__input"])})})]})]}),"personal"===W&&(0,t.jsxs)("div",{className:n.default["store-form__input-group"],children:[(0,t.jsx)("label",{htmlFor:"name",className:n.default["store-form__label"],children:p("name")}),(0,t.jsxs)("div",{className:n.default["store-form__input-wrapper"],children:[(0,t.jsx)("input",{id:"name",type:"text",value:q,onChange:e=>{let t=e.target.value;$(t),"company"===W&&U(t)},placeholder:p("name"),className:(0,s.cn)(n.default["store-form__input"],{[n.default["store-form__input--error"]]:!!z.name})}
8),z.name&&(0,t.jsx)("span",{className:n.default["store-form__input-error"],children:z.name})]})]}),(0,t.jsxs)("div",{className:n.default["store-form__input-group"],children:[(0,t.jsx)("label",{htmlFor:"email",className:n.default["store-form__label"],children:p("email")}),(0,t.jsxs)("div",{className:n.default["store-form__input-wrapper"],children:[(0,t.jsx)("input",{id:"email",type:"email",value:T,onChange:eo,placeholder:p("email"),className:(0,s.cn)(n.default["store-form__input"],{[n.default["store-form__input--error"]]:!!z.email,[n.default["store-form__input--suggestion"]]:!!M}),disabled:A}),M&&(0,t.jsxs)("div",{className:n.default["store-form__email-suggestion"],children:[p("emailSuggestion"),(0,t.jsx)("span",{role:"button",className:n.default["store-form__email-suggestion-value"],onClick:er,children:M}),"?"]}),z.email&&(0,t.jsx)("span",{className:n.default["store-form__input-error"],children:z.email})]})]}),(0,t.jsxs)("div",{className:n.default["store-form__input-group"],children:[(0,t.jsx)("label",{htmlFor:"coupon",className:n.default["store-form__label"],children:p("coupon")}),(0,t.jsxs)("div",{className:n.default["store-form__input-wrapper"],children:[(0,t.jsx)("input",{id:"coupon",type:"text",value:b,onChange:e=>{let t=e.target.value;w(t),t&&t.trim()?en(t):(S(""),k(1),I(!1),P(!1),R(!1),et.current&&clearTimeout(et.current))},placeholder:p("coupon"),className:(0,s.cn)(n.default["store-form__input"],{[n.default["store-form__input--error"]]:!!C})}),C&&(0,t.jsx)("span",{className:n.default["store-form__input-error"],children:C})]})]})]}),(0,t.jsx)("div",{className:n.default["store-form__horizon-line"]}),(0,t.jsxs)("div",{className:n.default["store-form__input-group"],children:[(0,t.jsx)("label",{className:(0,s.cn)(n.default["store-form__label"],n.default["store-form__label--payment-method"]),children:p("paymentMethod")}),(0,t.jsx)("div",{className:n.default["store-form__payment-methods"],role:"radiogroup","aria-label":p("paymentMethod"),children:(()=>{switch(f){case"tw":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{type:"spgateway",icon:"spgateway",label:"智付通",selected:"spgateway"===g,onSelect:v}),(0,t.jsx)(m,{type:"paypal",icon:"paypal",label:"PayPal",selected:"paypal"===g,onSelect:v})]});case"cn":return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{type:"wechat",icon:"wechat",label:"微信支付",selected:"wechat"===g,onSelect:v}),(0,t.jsx)(m,{type:"alipay",icon:"alipay",label:"支付宝",selected:"alipay"===g,onSelect:v}),(0,t.jsx)(m,{type:"paypal",icon:"paypal",label:"PayPal",selected:"paypal"===g,onSelect:v})]});default:return(0,t.jsx)(m,{type:"paypal",icon:"paypal",label:"PayPal",selected:"paypal"===g,onSelect:v})}})()})]})]}),(0,t.jsxs)("div",{className:n.default["store-form__details"],children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{children:p("includes")}),(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:p("licenseKey",{quantity:x})}),(0,t.jsx)("li",{children:p("devices")}),(0,t.jsx)("li",{children:p("platforms")}),(0,t.jsx)("li",{children:p("transfer")}),(0,t.jsx)("li",{children:p("updates")}),(0,t.jsx)("li",{children:p("extensions")})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:n.default["store-form__horizon-line"]}),(0,t.jsx)("div",{className:n.default["store-form__pricing"],children:E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:n.default["store-form__original-price"],children:[p("retail"),(0,t.jsxs)("span",{className:n.default["store-form__original-price-value"],children:[J," ",ee]})]}),(0,t.jsxs)("div",{className:n.default["store-form__final-price"],children:[p("nowOnly"),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:n.default["store-form__final-price-symbol"],children:J}),(0,t.jsx)("span",{className:n.default["store-form__final-price-value"],children:G})]})]})]}):(0,t.jsxs)("div",{className:n.default["store-form__final-price"],children:[p("totalPrice"),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:n.default["store-form__final-price-symbol"],children:J}),(0,t.jsx)("span",{className:n.default["store-form__final-price-value"],children:G})]})]})}),(0,t.jsxs)(d.CometButton,{className:(0,s.cn)(n.default["store-form__submit"]),trigger:"always",onClick:ei,type:"button",disabled:!(()=>
8{if("company"===W){if(!X.trim()||!V.trim())return!1}else if(!q.trim())return!1;return!!T.trim()&&!!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(T)&&(!b||!C&&!j)})()||j,children:[(0,t.jsx)("img",{src:"/images/purchase-form/credit-card.png",alt:p("payNow"),width:24,height:18}),p("payNow")]})]})]})]})})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.