1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,621482,e=>{"use strict";var t=e.i(869230),n=e.i(992571),r=class extends t.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,n.infiniteQueryBehavior)()})}getOptimisticResult(e){return e.behavior=(0,n.infiniteQueryBehavior)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,i=super.createResult(e,t),{isFetching:o,isRefetching:a,isError:u,isRefetchError:s}=i,c=r.fetchMeta?.fetchMore?.direction,l=u&&"forward"===c,d=o&&"forward"===c,f=u&&"backward"===c,p=o&&"backward"===c;return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.hasNextPage)(t,r.data),hasPreviousPage:(0,n.hasPreviousPage)(t,r.data),isFetchNextPageError:l,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:s&&!l&&!f,isRefetching:a&&!d&&!p}}},i=e.i(469637);e.s(["useInfiniteQuery",0,function(e,t){return(0,i.useBaseQuery)(e,r,t)}],621482)},500187,363689,323211,e=>{"use strict";var t=e.i(475254);let n=(0,t.default)("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);e.s(["default",0,n],500187);let r=(0,t.default)("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);e.s(["default",0,r],363689);var i=e.i(843476),o=e.i(271645);function a(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function u(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],i=t[n];return"function"==typeof r?`${r}`==`${i}`:a(r)&&a(i)?u(r,i):r===i})}function s(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function c(e){return"number"==typeof e}function l(e){return"string"==typeof e}function d(e){return"boolean"==typeof e}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e){return Math.abs(e)}function m(e){return Math.sign(e)}function g(e){return y(e).map(Number)}function h(e){return e[w(e)]}function w(e){return Math.max(0,e.length-1)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),(e,n)=>t+n)}function y(e){return Object.keys(e)}function b(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function k(){let e=[],t={add:function(n,r,i){let o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in n?(n.addEventListener(r,i,a),o=()=>n.removeEventListener(r,i,a)):(n.addListener(i),o=()=>n.removeListener(i)),e.push(o),t},clear:function(){e=e.filter(e=>e())}};return t}function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=p(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,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 E(e){let t=e;function n(e){return c(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 P(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=null,o=!1;return{clear:function(){!o&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let a=Math.round(100*e.direction(t))/100;a!==i&&(r.transform=n(a),i=a)},toggleActive:function(e){o=!e}}}let S={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 A(e,t,n){let r,i,o,a,u,s,j,D,O=e.ownerDocument,M=O.defaultView,C=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>
1(y(n).forEach(r=>{let i=t[r],o=n[r],a=f(i)&&f(o);t[r]=a?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=y(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(M),I=(D=[],{init:function(e,t){return(D=t.filter(e=>{let{options:t}=e;return!1!==C.optionsAtMedia(t).active})).forEach(t=>t.init(e,C)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){D=D.filter(e=>e.destroy())}}),L=k(),R=(i={},o={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),o},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),o},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),o},clear:function(){i={}}}),{mergeOptions:F,optionsAtMedia:N,optionsMediaQueries:T}=C,{on:z,off:W,emit:$}=R,B=!1,U=F(S,A.globalOptions),H=F(U),_=[];function q(t,n){B||(H=N(U=F(U,t)),_=n||_,function(){let{container:t,slides:n}=H;s=(l(t)?e.querySelector(t):t)||e.children[0];let r=l(n)?s.querySelectorAll(n):n;j=[].slice.call(r||s.children)}(),a=function t(n){let r=function(e,t,n,r,i,o,a){var u,s;let f,S,A,j,D,O,M,C,I,L,R,F,N,T,{align:z,axis:W,direction:$,startIndex:B,loop:U,duration:H,dragFree:_,dragThreshold:q,inViewThreshold:V,slidesToScroll:Q,skipSnaps:K,containScroll:J,watchResize:G,watchSlides:Y,watchDrag:X,watchFocus:Z}=o,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(S="rtl"===$,j=(A="y"===W)||!S?1:-1,D=A?"top":S?"right":"left",O=A?"bottom":S?"left":"right",{scroll:A?"y":"x",cross:A?"x":"y",startEdge:D,endEdge:O,measureSize:function(e){let{height:t,width:n}=e;return A?t:n},direction:function(e){return e*j}}),ei=er.measureSize(et),eo={measure:function(e){return e/100*ei}},ea=(u=z,s=ei,f={start:function(){return 0},center:function(e){return(s-e)/2},end:function(e){return s-e}},{measure:function(e,t){return l(u)?f[u](e):u(s,e,t)}}),eu=!U&&!!J,{slideSizes:es,slideSizesWithGaps:ec,startGap:el,endGap:ed}=function(e,t,n,r,i,o){let{measureSize:a,startEdge:u,endEdge:s}=e,c=n[0]&&i,l=function(){if(!c)return 0;let e=n[0];return p(t[u]-e[u])}(),d=c?parseFloat(o.getComputedStyle(h(r)).getPropertyValue(`margin-${s}`)):0,f=n.map(a),m=n.map((e,t,n)=>{let r=t===w(n);return t?r?f[t]+d:n[t+1][u]-e[u]:f[t]+l}).map(p);return{slideSizes:f,slideSizesWithGaps:m,startGap:l,endGap:d}}(er,et,en,n,U||!!J,i),ef=function(e,t,n,r,i,o,a,u){let{startEdge:s,endEdge:l,direction:d}=e,f=c(n);return{groupSlides:function(e){return f?g(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?g(e).reduce((n,c,f)=>{let m=h(n)||0,g=c===w(e),v=i[s]-o[m][s],y=i[s]-o[c][l],b=r||0!==m?0:d(a),k=p(y-(!r&&g?d(u):0)-(v+b));return f&&k>t+2&&n.push(c),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,Q,U,et,en,el,ed),{snaps:ep,snapsAligned:em}=function(e,t,n,r,i){let{startEdge:o,endEdge:a}=e,{groupSlides:u}=i,s=u(r).map(e=>h(e)[a]-e[0][o]).map(p).map(t.measure),c=r.map(e=>n[o]-e[o]).map(e=>-p(e)),l=u(c).map(e=>e[0]).map((e,t)=>e+s[t]);return{snaps:c,snapsAligned:l}}(er,ea,et,en,ef),eg=-h(ep)+h(ec),{snapsContained:eh,scrollContainLimit:ew}=function(e,t,n,r){let i,o,a=x(-t+e,0),u=n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),u=t===w(n);return t?u||function(e,t){return 1>=p(e-t)}(r,o)?r:function(e,t){return 1>=p(e-t)}(i,o)?i:o:i}).map(e=>parseFloat(e.toFixed(3))),s=(i=u[0],o=h(u),x(u.lastIndexOf(i),u.indexOf(o)+1));return{snapsContained:function(){if(t<=e+2)return[a.max];if("keepSnaps"===r)return u;let{min:n,max:i}=s;return u.slice(n,i)}(),scrollContainLimit:s}}(ei,eg,em,J),ev=eu?eh:em,{limit:ey}=(M=ev[0],{limit:x(U?M-eg:h(ev),M)}),eb=function e(t,n,r){let{constrain:i}=x(0,t),o=t+1,a=u(n);function u(e){return r?p((o+e)%o):i(e)}function s(){return e(t,a,r)}let c={get:function(){return a}
1,set:function(e){return a=u(e),c},add:function(e){return s().set(a+e)},clone:s};return c}(w(ev),B,U),ek=eb.clone(),ex=g(n),eE=function(e,t,n,r){let i=k(),o=1e3/60,a=null,u=0,s=0;function c(e){if(!s)return;a||(a=e,n(),n());let i=e-a;for(a=e,u+=i;u>=o;)n(),u-=o;r(u/o),s&&(s=t.requestAnimationFrame(c))}function l(){t.cancelAnimationFrame(s),a=null,u=0,s=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,u=0)})},destroy:function(){l(),i.clear()},start:function(){s||(s=t.requestAnimationFrame(c))},stop:l,update:n,render:r}}(r,i,()=>(e=>{let{dragHandler:t,scrollBody:n,scrollBounds:r,options:{loop:i}}=e;i||r.constrain(t.pointerDown()),n.seek()})(eT),e=>((e,t)=>{let{scrollBody:n,translate:r,location:i,offsetLocation:o,previousLocation:a,scrollLooper:u,slideLooper:s,dragHandler:c,animation:l,eventHandler:d,scrollBounds:f,options:{loop:p}}=e,m=n.settled(),g=!f.shouldConstrain(),h=p?m:m&&g,w=h&&!c.pointerDown();w&&l.stop();let v=i.get()*t+a.get()*(1-t);o.set(v),p&&(u.loop(n.direction()),s.loop()),r.to(o.get()),w&&d.emit("settle"),h||d.emit("scroll")})(eT,e)),eP=ev[eb.get()],eS=E(eP),eA=E(eP),ej=E(eP),eD=E(eP),eO=function(e,t,n,r,i){let o=0,a=0,u=i,s=.68,c=e.get(),l=0;function d(e){return u=e,g}function f(e){return s=e,g}let g={direction:function(){return a},duration:function(){return u},velocity:function(){return o},seek:function(){let t=r.get()-e.get(),i=0;return u?(n.set(e),o+=t/u,o*=s,c+=o,e.add(o),i=c-l):(o=0,n.set(r),e.set(r),i=t),a=m(i),l=c,g},settled:function(){return .001>p(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(i)},useFriction:f,useDuration:d};return g}(eS,ej,eA,eD,H),eM=function(e,t,n,r,i){let{reachedAny:o,removeOffset:a,constrain:u}=r;function s(e){return e.concat().sort((e,t)=>p(e)-p(t))[0]}function c(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return s(i);let o=i.filter(e=>m(e)===r);return o.length?s(o):h(i)-n}return{byDistance:function(n,r){let s=i.get()+n,{index:l,distance:d}=function(n){let r=e?a(n):u(n),{index:i}=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>p(e.diff)-p(t.diff))[0];return{index:i,distance:r}}(s),f=!e&&o(s);if(!r||f)return{index:l,distance:n};let m=n+c(t[l]-d,0);return{index:l,distance:m}},byIndex:function(e,n){let r=c(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:c}}(U,ev,eg,ey,eD),eC=function(e,t,n,r,i,o,a){function u(i){let u=i.distance,s=i.index!==t.get();
1o.add(u),u&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(n.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){u(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);u(i.byIndex(r.get(),n))}}}(eE,eb,ek,eO,eM,eD,a),eI=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ey),eL=k(),eR=(I={},L=null,R=null,F=!1,{init:function(){C=new IntersectionObserver(e=>{F||(e.forEach(e=>{I[n.indexOf(e.target)]=e}),L=null,R=null,a.emit("slidesInView"))},{root:t.parentElement,threshold:V}),n.forEach(e=>C.observe(e))},destroy:function(){C&&C.disconnect(),F=!0},get:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(e&&L)return L;if(!e&&R)return R;let t=y(I).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=I[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(L=t),e||(R=t),t}}),{slideRegistry:eF}=function(e,t,n,r,i,o){let a,{groupSlides:u}=i,{min:s,max:c}=r;return{slideRegistry:(a=u(o),1===n.length?[o]:e&&"keepSnaps"!==t?a.slice(s,c).map((e,t,n)=>{let r=t===w(n);return t?r?v(w(o)-h(n)[0]+1,h(n)[0]):e:v(h(n[0])+1)}):a)}}(eu,J,ev,ew,ef,ex),eN=function(e,t,n,r,i,o,a,u){let s={passive:!0,capture:!0},l=0;function f(e){"Tab"===e.code&&(l=new Date().getTime())}return{init:function(p){u&&(o.add(document,"keydown",f,!1),t.forEach((t,f)=>{o.add(t,"focus",t=>{(d(u)||u(p,t))&&function(t){if(new Date().getTime()-l>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));c(o)&&(i.useDuration(0),r.index(o,0),a.emit("slideFocus"))}(f)},s)}))}}}(e,n,eF,eC,eO,eL,a,Z),eT={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:et,slideRects:en,animation:eE,axis:er,dragHandler:function(e,t,n,r,i,o,a,u,s,c,l,f,g,h,w,v,y,E){let{cross:P,direction:S}=e,A=["INPUT","SELECT","TEXTAREA"],j={passive:!1},D=k(),O=k(),M=x(50,225).constrain(h.measure(20)),C={mouse:300,touch:400},I={mouse:500,touch:600},L=w?43:25,R=!1,F=0,N=0,T=!1,z=!1,W=!1,$=!1;function B(e){if(!b(e,r)&&e.touches.length>=2)return U(e);let t=o.readPoint(e),n=o.readPoint(e,P),a=p(t-F),s=p(n-N);if(!z&&!$&&(!e.cancelable||!(z=a>s)))return U(e);let l=o.pointerMove(e);a>v&&(W=!0),c.useFriction(.3).useDuration(.75),u.start(),i.add(S(l)),e.preventDefault()}function U(e){var t;let n,r,i=l.byDistance(0,!1).index!==f.get(),a=o.pointerUp(e)*(w?I:C)[$?"mouse":"touch"],u=(t=S(a),n=f.add(-1*m(t)),r=l.byDistance(t,!w).distance,w||p(t)<M?r:y&&i?.5*r:l.byIndex(n.get(),0).distance),d=function(e,t){var n,r;if(0===e||0===t||p(e)<=p(t))return 0;let i=(n=p(e),r=p(t),p(n-r));return p(i/e)}(a,u);z=!1,T=!1,O.clear(),c.useDuration(L-10*d).useFriction(.68+d/50),s.distance(u,!w),$=!1,g.emit("pointerUp")}function H(e){W&&(e.stopPropagation(),e.preventDefault(),W=!1)}return{init:function(e){E&&D.add(t,"dragstart",e=>e.preventDefault(),j).add(t,"touchmove",()=>void 0,j).add(t,"touchend",()=>void 0).add(t,"touchstart",u).add(t,"mousedown",u).add(t,"touchcancel",U).add(t,"contextmenu",U).add(t,"click",H,!0);function u(u){(d(E)||E(e,u))&&function(e){let u,s=b(e,r);if(($=s,W=w&&s&&!e.buttons&&R,R=p(i.get()-a.get())>=2,!s||0===e.button)&&(u=e.target.nodeName||"",!A.includes(u))){let r;T=!0,o.pointerDown(e),c.useFriction(0).useDuration(0),i.set(a),r=$?n:t,O.add(r,"touchmove",B,j).add(r,"touchend",U).add(r,"mousemove",B,j).add(r,"mouseup",U),F=o.readPoint(e),N=o.readPoint(e,P),g.emit("pointerDown")}}(u)}},destroy:function(){D.clear(),O.clear()},pointerDown:function(){return T}}}(er,e,r,i,eD,function(e,t){let n,r;function i(e){return e.timeStamp}function o(n,r){let i=r||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(b(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){let t=o(e)-o(r),a=i(e)-i(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=o(r)-o(n),a=i(e)-i(n),u=i(e)-i(r)>170,s=t/a;return a&&!u&&p(s)>.1?s:0},readPoint:o}}(er,i),eS,eE,eC,eO,eM,eb,a,eo,_,q,K,X),eventStore:eL,percentOfView:eo,index:eb,indexPrevious:ek,limit:ey,location:eS,offsetLocation:ej,previousLocation:eA,options:o,resizeHandler:function(e,t,n,r,i,o,a){let u,s,c=[e].concat(r),l=[],f=!1;function m(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(s=m(e),l=r.map(m),u=new ResizeObserver(n=>{(d(o)||o(i,n))&&function(n){for(let o of n){if(f)return;let n=o.target===e,a=r.indexOf(o.target),u=n?s:l[a];if(p(m(n?e:r[a])-u)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>
1{c.forEach(e=>u.observe(e))}))},destroy:function(){f=!0,u&&u.disconnect()}}}(t,a,i,n,er,G,ee),scrollBody:eO,scrollBounds:function(e,t,n,r,i){let o=i.measure(10),a=i.measure(50),u=x(.1,.99),s=!1;function c(){return!s&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(i){if(!c())return;let s=e.reachedMin(t.get())?"min":"max",l=p(e[s]-t.get()),d=n.get()-t.get(),f=u.constrain(l/a);n.subtract(d*f),!i&&p(d)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){s=!e}}}(ey,ej,eD,eO,eo),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:o}=x(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(n.get()):-1===t&&i(n.get())))return;let a=-1*t*e;r.forEach(e=>e.add(a))}}}(eg,ey,ej,[eS,ej,eA,eD]),scrollProgress:eI,scrollSnapList:ev.map(eI.get),scrollSnaps:ev,scrollTarget:eM,scrollTo:eC,slideLooper:function(e,t,n,r,i,o,a,u,s){let c=g(i),l=g(i).reverse(),d=m(p(l,a[0]),n,!1).concat(m(p(c,t-a[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function p(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(i,a,c){let l=o.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return i.map(t=>{let r=c?0:-n,i=c?n:0,o=l[t][c?"end":"start"];return{index:t,loopPoint:o,slideLocation:E(-1),translate:P(e,s[t]),target:()=>u.get()>o?r:i}})}return{canLoop:function(){return d.every(e=>{let{index:n}=e;return .1>=f(c.filter(e=>e!==n),t)})},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:d}}(er,ei,eg,es,ec,ep,ev,ej,n),slideFocus:eN,slidesHandler:(T=!1,{init:function(e){Y&&(N=new MutationObserver(t=>{!T&&(d(Y)||Y(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){N&&N.disconnect(),T=!0}}),slidesInView:eR,slideIndexes:ex,slideRegistry:eF,slidesToScroll:ef,target:eD,translate:P(er,t)};return eT}(e,s,j,O,M,n,R);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(H),T([U,..._.map(e=>{let{options:t}=e;return t})]).forEach(e=>L.add(e,"change",V)),H.active&&(a.translate.to(a.location.get()),a.animation.init(),a.slidesInView.init(),a.slideFocus.init(G),a.eventHandler.init(G),a.resizeHandler.init(G),a.slidesHandler.init(G),a.options.loop&&a.slideLooper.loop(),s.offsetParent&&j.length&&a.dragHandler.init(G),u=I.init(G,_)))}function V(e,t){let n=J();Q(),q(F({startIndex:n},e),t),R.emit("reInit")}function Q(){a.dragHandler.destroy(),a.eventStore.clear(),a.translate.clear(),a.slideLooper.clear(),a.resizeHandler.destroy(),a.slidesHandler.destroy(),a.slidesInView.destroy(),a.animation.destroy(),I.destroy(),L.clear()}function K(e,t,n){H.active&&!B&&(a.scrollBody.useBaseFriction().useDuration(!0===t?0:H.duration),a.scrollTo.index(e,n||0))}function J(){return a.index.get()}let G={canScrollNext:function(){return a.index.add(1).get()!==J()},canScrollPrev:function(){return a.index.add(-1).get()!==J()},containerNode:function(){return s},internalEngine:function(){return a},destroy:function(){B||(B=!0,L.clear(),Q(),R.emit("destroy"),R.clear())},off:W,on:z,emit:$,plugins:function(){return u},previousScrollSnap:function(){return a.indexPrevious.get()},reInit:V,rootNode:function(){return e},scrollNext:function(e){K(a.index.add(1).get(),e,-1)},scrollPrev:function(e){K(a.index.add(-1).get(),e,1)},scrollProgress:function(){return a.scrollProgress.get(a.offsetLocation.get())},scrollSnapList:function(){return a.scrollSnapList},scrollTo:K,selectedScrollSnap:J,slideNodes:function(){return j},slidesInView:function(){return a.slidesInView.get()},slidesNotInView:function(){return a.slidesInView.get(!1)}};return q(t,n),setTimeout(()=>R.emit("init"),0),G}function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,o.useRef)(e),r=(0,o.useRef)(t),[i,a]=(0,o.useState)(),[c,l]=(0,o.useState)(),d=(0,o.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,o.useEffect)(()=>{u(n.current,e)||(n.current=e,d())},[e,d]),(0,o.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=s(e),r=s(t);return n.every((e,t)=>u(e,r[t]))}(r.current,t)&&(r.current=t,d())},[t,d]),(0,o.useEffect)(()=>
1{if("u">typeof window&&window.document&&window.document.createElement&&c){A.globalOptions=j.globalOptions;let e=A(c,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[c,a]),[l,i]}A.globalOptions=void 0,j.globalOptions=void 0,e.i(871689),e.i(972520);var D=e.i(975157);e.i(519455);let O=o.createContext(null);function M(){let e=o.useContext(O);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}e.s(["Carousel",0,function(e){let{orientation:t="horizontal",opts:n,setApi:r,plugins:a,className:u,children:s,...c}=e,[l,d]=j({...n,axis:"horizontal"===t?"x":"y"},a),[f,p]=o.useState(!1),[m,g]=o.useState(!1),h=o.useCallback(e=>{e&&(p(e.canScrollPrev()),g(e.canScrollNext()))},[]),w=o.useCallback(()=>{d?.scrollPrev()},[d]),v=o.useCallback(()=>{d?.scrollNext()},[d]),y=o.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),w()):"ArrowRight"===e.key&&(e.preventDefault(),v())},[w,v]);return o.useEffect(()=>{d&&r&&r(d)},[d,r]),o.useEffect(()=>{if(d)return h(d),d.on("reInit",h),d.on("select",h),()=>{d?.off("select",h)}},[d,h]),(0,i.jsx)(O.Provider,{value:{carouselRef:l,api:d,opts:n,orientation:t||(n?.axis==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:v,canScrollPrev:f,canScrollNext:m},children:(0,i.jsx)("div",{onKeyDownCapture:y,className:(0,D.cn)("relative",u),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...c,children:s})})},"CarouselContent",0,function(e){let{className:t,...n}=e,{carouselRef:r,orientation:o}=M();return(0,i.jsx)("div",{ref:r,className:"overflow-hidden","data-slot":"carousel-content",children:(0,i.jsx)("div",{className:(0,D.cn)("flex","horizontal"===o?"-ml-4":"-mt-4 flex-col",t),...n})})},"CarouselItem",0,function(e){let{className:t,...n}=e,{orientation:r}=M();return(0,i.jsx)("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:(0,D.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",t),...n})}],323211)},322710,e=>{"use strict";var t=e.i(835721);function n(e){return e.map(e=>({...e,isDirectory:"dir"===e.type,children:"dir"===e.type?n(e.children??[]):void 0}))}class r extends Error{code;constructor(e,t){super(e),this.code=t,this.name="WorkspaceApiError"}}async function i(e,n){let i=await fetch("/api/e2b/workspace",{method:"POST",headers:{"content-type":"application/json",...(0,t.getChatAdminRequestHeaders)()},body:JSON.stringify(e),signal:n}),o=await i.json();if(200!==o.code||void 0===o.data)throw new r(o.message||"Failed to load workspace",o.code);return o.data}e.s(["WorkspaceApiError",0,r,"workspaceApi",0,{initialize:(e,t)=>i({sessionId:e,operation:"initialize",path:"/",locale:t}),list:async(e,t,r)=>n((await i({sessionId:e,operation:"list",path:t},r)).items),tree:async(e,t,r)=>n((await i({sessionId:e,operation:"tree",path:"/",paths:t},r)).items),read:(e,t,n,r)=>i({sessionId:e,operation:"read",path:t,encoding:n},r),remove:(e,t)=>i({sessionId:e,operation:"delete",path:t}),removeMany:(e,t)=>i({sessionId:e,operation:"delete",paths:t}),createDir:(e,t)=>i({sessionId:e,operation:"createDir",path:t}),createFile(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i({sessionId:e,operation:"createFile",path:t,content:n})},write:(e,t,n)=>i({sessionId:e,operation:"write",path:t,content:n}),removeDir:(e,t)=>i({sessionId:e,operation:"deleteDir",path:t}),rename:(e,t,n)=>i({sessionId:e,operation:"rename",path:t,name:n}),move:(e,t,n)=>i({sessionId:e,operation:"move",paths:t,targetPath:n}),async listFolders(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=arguments.length>2?arguments[2]:void 0;return(await i({sessionId:e,operation:"listFolders",path:t},n)).folders}}])},443247,830801,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let r=null;async function i(){return r||(r=(async()=>{let e=Function("url","return import(url)"),t=await e("/assets/tailwind/tailwind_wasm.js");return await t.default("/assets/tailwind/tailwind_wasm_bg.wasm"),{generate_tailwind_css:t.generate_tailwind_css}})())}let o=()=>({generateTailwindCss:(0,n.useCallback)(async e=>{if(!e)return"";try{let{generate_tailwind_css:t}=await i();return t(e)}catch(e){return console.error("Failed to generate Tailwind CSS:",e),""}},[])});e.s(["useTailwindGenerator",0,o],830801);var a=e.i(975157),u=e.i(559469);let s=` 2<script> 3 (function() { 4 console.log("[Preview Protection] Script initialized"); 5 var prevent = function(e) { 6 console.log("[Preview Protection] Prevented event:", e.type, e.target); 7 e.preventDefault(); 8 e.stopPropagation(); 9 return false;
10 }; 11 12 window.open = function(url, target, features) { 13 console.log("[Preview Protection] Blocked window.open:", url); 14 return null; 15 }; 16 17 document.addEventListener('click', function(e) { 18 var target = e.target; 19 while (target && target.tagName !== 'A') { 20 target = target.parentElement; 21 } 22 if (target && target.tagName === 'A') { 23 console.log("[Preview Protection] Blocked link click:", target.href); 24 prevent(e); 25 } 26 }, true); 27 28 document.addEventListener('submit', function(e) { 29 console.log("[Preview Protection] Blocked form submission"); 30 prevent(e); 31 }, true); 32 33 // é¿å å½±å页颿¡æ¶çå é¨è·¯ç±/åå§åé»è¾ï¼åªæ¦æªç¨æ·è§¦åçè·³è½¬å ¥å£ 34 })(); 35</script> 36`;function c(e,t){let n=e.contentDocument;if(!n)return!1;let r=n.getElementById("canvas-root");return!!r&&(r.innerHTML=t,d(e),!0)}function l(e,t){let n=e.contentDocument;if(!n)return!1;let r=n.getElementById("tailwind-css");return r||((r=n.createElement("style")).id="tailwind-css",n.head.appendChild(r)),r.textContent=t,!0}function d(e){let t=e.contentWindow;try{t.tailwind?.refresh?.()}catch{}}e.s(["ProjectIframeRenderer",0,function(e){let{projectId:r,htmlContent:i,baseWidth:f=1200,type:p="preview",className:m,allowSameOrigin:g=!1,onIframeReady:h,tailwindRuntime:w="v4-browser",streamCoalesceMs:v=0,workspaceSessionId:y}=e,b=(0,n.useRef)(null),k=(0,n.useRef)(null),x=(0,n.useRef)(null),E="v3-play-cdn"===w,P="thumbnail"===p,S=E&&!g&&v>0,[A,j]=(0,n.useState)(()=>E?"":null),[D,O]=(0,n.useState)(1),[M,C]=(0,n.useState)(i),I=(0,n.useRef)(null),L=(0,n.useRef)(!1),R=(0,n.useRef)(null),F=(0,n.useRef)([]),{generateTailwindCss:N}=o(),T=async e=>{if(!y||!e.contentDocument)return;F.current.forEach(e=>{URL.revokeObjectURL(e)}),F.current=[];let t=await (0,u.hydrateWorkspaceMediaImages)(e.contentDocument,y);F.current.push(...t)};(0,n.useEffect)(()=>()=>{F.current.forEach(e=>{URL.revokeObjectURL(e)}),F.current=[]},[]);let z=g?i:S?M:i;(0,n.useEffect)(()=>{if(S){let e=window.setTimeout(()=>{C(i)},v);return()=>window.clearTimeout(e)}C(i)},[i,S,v]),(0,n.useEffect)(()=>{x.current=null,I.current=null,L.current=!1},[r]);let W=E?'<script src="https://cdn.tailwindcss.com"></script>':'<script id="tailwind-browser-script" src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>',$=(0,n.useMemo)(()=>` 37<!DOCTYPE html> 38<html lang="zh-CN"> 39<head> 40 <meta charset="UTF-8"> 41 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 42 <title>Preview</title> 43 <style> 44 * { box-sizing: border-box; } 45 html, body { 46 margin: 0; 47 padding: 0; 48 width: 100%; 49 height: 100%; /* ç¡®ä¿é«åº¦ææ»¡ï¼å 许æ»å¨ */ 50 overflow-x: hidden; 51 overflow-y: auto; /* å è®¸çºµåæ»å¨ */ 52 } 53 #canvas-root { 54 min-height: 100%; 55 width: 100%; 56 display: block; 57 } 58 /* èªå®ä¹æ»å¨æ¡æ ·å¼ï¼ä½¿å ¶å¨ç¼©æ¾åä¾ç¶ç¾è§ */ 59 ::-webkit-scrollbar {
60 width: 8px; 61 height: 8px; 62 } 63 ::-webkit-scrollbar-track { 64 background: transparent; 65 } 66 ::-webkit-scrollbar-thumb { 67 background: #cbd5e1; 68 border-radius: 4px; 69 } 70 ::-webkit-scrollbar-thumb:hover { 71 background: #94a3b8; 72 } 73 </style> 74 <!-- åºç¡æ ·å¼ --> 75 <!-- <link rel="stylesheet" href="/assets/tailwind/tailwind.css"> --> 76 <!-- <link rel="stylesheet" href="/assets/tailwind/tailwind-animate.css"> --> 77 ${W} 78 <script> 79 (function() { 80 var cssFiles = [ 81 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css' 82 ]; 83 cssFiles.forEach(function(href) { 84 var link = document.createElement('link'); 85 link.rel = 'stylesheet'; 86 link.href = href; 87 document.head.appendChild(link); 88 }); 89 })(); 90 </script> 91 ${P?s:""} 92 <style id="tailwind-css">${A||""}</style> 93</head> 94<body> 95 <!-- éèæ ·å¼ï¼ç¡®ä¿ WeTip ä¸å¹²æ° UI --> 96 <style> WeTip { display: none !important; } weTip { display: none !important; } wetip { display: none !important; }</style> 97 <div id="canvas-root"> 98 ${z} 99 </div> 100</body> 101</html>`,[z,P,A,E]);return(0,n.useEffect)(()=>{if(E)return void j("");let e=!1;return N(i).then(t=>{e||j(t)}),()=>{e=!0}},[N,i,E]),(0,n.useEffect)(()=>{let e=k.current;!e||null===A||g&&I.current===r||g&&L.current||$!==x.current&&(x.current=$,g&&(L.current=!0),e.srcdoc=$)},[$,A,r,g]),(0,n.useEffect)(()=>{if(!g||I.current!==r)return;let e=k.current;if(e)return null!==R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{R.current=null,c(e,i),T(e)}),()=>{null!==R.current&&(cancelAnimationFrame(R.current),R.current=null)}},[i,r,g]),(0,n.useEffect)(()=>{if(!g||E||null===A||I.current!==r)return;let e=k.current;e&&(l(e,A),d(e))},[A,r,g,E]),(0,n.useEffect)(()=>{let e=b.current;if(!e)return;let t=()=>{O(e.clientWidth/f)};t();let n=new ResizeObserver(()=>{t()});return n.observe(e),()=>{n.disconnect()}},[f]),(0,t.jsx)("div",{ref:b,className:(0,a.cn)("relative w-full h-full overflow-hidden bg-background",m),children:(0,t.jsx)("iframe",{ref:k,className:"border-0 bg-white",onLoad:()=>{let e=k.current;e&&null!==A&&(g&&(L.current=!1),I.current=r,g&&(c(e,i),E||null===A||l(e,A)),T(e),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{h?.(e)})}))},sandbox:g?"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation":"allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation",title:`preview-${r}`,style:{width:f,height:`${100/D}%`,transform:`scale(${D})`,transformOrigin:"top left",pointerEvents:P?"none":"auto",userSelect:P?"none":"auto"}})})}],443247)},559469,e=>{"use strict";var t=e.i(322710),n=e.i(483541);let r="data-workspace-media-src",i={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",webp:"image/webp",gif:"image/gif",avif:"image/avif"};async function o(e,o,a){let u=Array.from(e.querySelectorAll("img")),s=[];return await Promise.all(u.map(async e=>{if(a?.aborted)return;let u=function(e){let t=e.getAttribute(r);if(t)return t;let n=e.getAttribute("src");return n&&!n.startsWith("blob:")?n:null}(e),c=(0,n.workspaceMediaPath)(u);if(c&&u)try{let n=await t.workspaceApi.read(o,c,"base64",a);if(a?.aborted||"base64"!==n.encoding)return;let l=Uint8Array.from(atob(n.content),e=>e.charCodeAt(0)),d=URL.createObjectURL(new Blob([l],{type:i[c.split(".").pop()?.toLowerCase()??""]??"application/octet-stream"}));s.push(d),e.setAttribute(r,u),e.src=d}catch{}})),s}e.s(["hydrateWorkspaceMediaImages",0,o,"resolveWorkspaceMediaAttributeValue",0,function(e,t,n){return"src"!==t?n:e.getAttribute(r)||n},"restoreWorkspaceMediaImageSrcs",0,function(e){e.querySelectorAll(`img[${r}]`).forEach(e=>{let t=e.getAttribute(r);t&&(e.setAttribute("src",t),e.removeAttribute(r))})}])},483541,e=>{"use strict";var t=e.i(934122);let n={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",webp:"image/webp",gif:"image/gif",avif:"image/avif",mp4:"video/mp4",webm:"video/webm"};function r(e){if("string"!=typeof e)return null;
101let t=e.trim(),r="/home/user/workspace/we0project/public/work/";return(t.startsWith(r)?t=t.slice(r.length):t.startsWith("public/work/")?t=t.slice(12):t.startsWith("/work/")&&(t=t.slice(6)),!(t=t.replace(/^\//,"")).startsWith("workImage/")||t.split("/").some(e=>".."===e||"."===e)||!n[t.split(".").pop()?.toLowerCase()??""])?null:`/${t}`}function i(e){if(e.status!==t.EnumToolStatus.completed||!["image_artifact","video_artifact"].includes(String(e.metadata?.kind))&&!["GenerateImage","EditImage","GenerateVideo"].includes(e.toolName))return null;for(let t of[e.metadata?.file_path,e.metadata?.public_url]){let e=r(t);if(e)return e}let n=[e.title,e.outputPreview,"string"==typeof e.output?e.output:""].join("\n").match(/\/work\/workImage\/[^\s"'<>`]+\.(?:png|jpe?g|webp|gif|avif|mp4|webm)\b/i);return r(n?.[0])}e.s(["reconcileWorkspaceMediaRows",0,function(e,t,i){let o=`workspace-media:${t}`,a=e.find(e=>e.id===o),u=[],s=new Set;for(let e of[...i].reverse()){let t=r(e);!t||s.has(t)||(s.add(t),u.push(t))}let c=Date.now(),l=new Set(a?.designs.map(e=>e.media?.path).filter(e=>!!e)??[]),d=u.map((e,r)=>{let i=a?.designs.find(t=>t.media?.path===e);return i||{id:`${o}:${e}`,title:e.split("/").pop()??e,imageUrl:"",status:"ready",createdAt:c-r,deviceType:"pc",media:{sessionId:t,path:e,mimeType:n[e.split(".").pop().toLowerCase()]}}}).sort((e,t)=>{let n=!l.has(e.media?.path);return!l.has(t.media?.path)!==n?n?-1:1:t.createdAt-e.createdAt||e.title.localeCompare(t.title,void 0,{numeric:!0})}),f=e.filter(e=>!e.id.startsWith("workspace-media:"));return d.length?a&&f.length===e.length-1&&a.designs.length===d.length&&a.designs.every((e,t)=>e===d[t])?e:[...f,{id:o,label:"workImage",status:"completed",createdAt:a?.createdAt??Date.now(),designs:d,coldDesigns:d,hotDesigns:[],currentIndex:d.length}]:f.length===e.length?e:f},"toolWorkspaceMediaPath",0,i,"workspaceMediaPath",0,r,"workspaceMediaSnapshot",0,function(e){let t=new Set;for(let n of e.timeline){let r=e.message[n];if(r)for(let n of r.partIds){let r=e.part[n];if(r?.type!=="tool")continue;let o=i(r);o&&t.add(o)}}return JSON.stringify([...t].sort())}])},835721,e=>{"use strict";function t(){let e=new URLSearchParams(window.location.search).get("key");return e?.trim()||null}e.s(["CHAT_ADMIN_KEY_PARAM",0,"key","getChatAdminKeyFromLocation",0,t,"getChatAdminRequestHeaders",0,function(){let e=t();return e?{"x-chat-admin-key":e}:{}}])},934122,e=>{"use strict";var t,n,r,i,o,a,u,s=((t={}).user="user",t.assistant="assistant",t.system="system",t),c=((n={}).streaming="streaming",n.done="done",n.error="error",n.cancelled="cancelled",n.stale="stale",n),l=((r={}).general="general",r.design="design",r),d=((i={}).pending="pending",i.running="running",i.paused="paused",i.completed="completed",i.error="error",i.stale="stale",i),f=((o={}).pending="pending",o.answered="answered",o.declined="declined",o),p=((a={}).idle="idle",a.busy="busy",a.retry="retry",a.waiting="waiting",a.error="error",a.cancelled="cancelled",a.stale="stale",a),m=((u={}).idle="idle",u.running="running",u.waiting="waiting",u.done="done",u.error="error",u.cancelled="cancelled",u.stale="stale",u);e.s(["EnumAgentName",()=>l,"EnumLaneRunStatus",()=>p,"EnumMessageRole",()=>s,"EnumMessageStatus",()=>c,"EnumQuestionStatus",()=>f,"EnumRootChatStatus",()=>m,"EnumToolStatus",()=>d])}]);
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.