PageSourceSearch

https://interscribe.io/assets/Combination-Bx-bxrRf.js

js interscribe.io collected 2026-10-02 01:04:06 UTC 18,364 bytes, 41 lines download raw bytes

vendor: 4,500 bytes, line 1
1import{r as s}from"./chunk-OB3PAWPO-CrLP7qWp.js";import{u as he}from"./index-BhSMh_Q6.js";import{P as me}from"./index-LroTIYiI.js";import{d as z}from"./index-B58C8f4i.js";import{j as pe}from"./jsx-runtime-C-_spy54.js";var D=0;function yt(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Z()),document.body.insertAdjacentElement("beforeend",e[1]??Z()),D++,()=>{D===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),D--}},[])}function Z(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var j="focusScope.autoFocusOnMount",U="focusScope.autoFocusOnUnmount",q={bubbles:!1,cancelable:!0},ye="FocusScope",ge=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:a,...l}=e,[o,b]=s.useState(null),i=z(c),v=z(a),d=s.useRef(null),m=he(t,u=>b(u)),p=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let u=function(y){if(p.paused||!o)return;const g=y.target;o.contains(g)?d.current=g:k(d.current,{select:!0})},f=function(y){if(p.paused||!o)return;const g=y.relatedTarget;g!==null&&(o.contains(g)||k(d.current,{select:!0}))},h=function(y){if(document.activeElement===document.body)for(const S of y)S.removedNodes.length>0&&k(o)};document.addEventListener("focusin",u),document.addEventListener("focusout",f);const E=new MutationObserver(h);return o&&E.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",f),E.disconnect()}}},[r,o,p.paused]),s.useEffect(()=>{if(o){$.add(p);const u=document.activeElement;if(!o.contains(u)){const h=new CustomEvent(j,q);o.addEventListener(j,i),o.dispatchEvent(h),h.defaultPrevented||(be(ke(oe(o)),{select:!0}),document.activeElement===u&&k(o))}return()=>{o.removeEventListener(j,i),setTimeout(()=>{const h=new CustomEvent(U,q);o.addEventListener(U,v),o.dispatchEvent(h),h.defaultPrevented||k(u??document.body,{select:!0}),o.removeEventListener(U,v),$.remove(p)},0)}}},[o,i,v,p]);const w=s.useCallback(u=>{if(!n&&!r||p.paused)return;const f=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,h=document.activeElement;if(f&&h){const E=u.currentTarget,[y,g]=Se(E);y&&g?!u.shiftKey&&h===g?(u.preventDefault(),n&&k(y,{select:!0})):u.shiftKey&&h===y&&(u.preventDefault(),n&&k(g,{select:!0})):h===E&&u.preventDefault()}},[n,r,p.paused]);return pe.jsx(me.div,{tabIndex:-1,...l,ref:m,onKeyDown:w})});ge.displayName=ye;function be(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(k(r,{select:t}),document.activeElement!==n)return}function Se(e){const t=oe(e),n=Q(t,e),r=Q(t.reverse(),e);return[n,r]}function oe(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Q(e,t){for(const n of e)if(!Ee(n,{upTo:t}))return n}function Ee(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function we(e){return e instanceof HTMLInputElement&&"select"in e}function k(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&we(e)&&t&&e.select()}}var $=Ce();function Ce(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=J(e,t),e.unshift(t)},remove(t){e=J(e,t),e[0]?.resume()}}}function J(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ke(e){return e.filter(t=>t.tagName!=="A")}var Ae=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},R=new WeakMap,N=new WeakMap,P={},K=0,ce=function(e){return e&&(e.host||ce(e.parentNode))},Re=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ce(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Te=function(e,t,n,r){var c=Re(t,Array.isArray(e)?e:[e]);P[n]||(P[n]=new WeakMap);var a=P[n],l=[],o=new Set,b=new Set(c),i=function(d){!d||o.has(d)||(o.add(d),i(d.parentNode))};
1c.forEach(i);var v=function(d){!d||b.has(d)||Array.prototype.forEach.call(d.children,function(m){if(o.has(m))v(m);else try{var p=m.getAttribute(r),w=p!==null&&p!=="false",u=(R.get(m)||0)+1,f=(a.get(m)||0)+1;R.set(m,u),a.set(m,f),l.push(m),u===1&&w&&N.set(m,!0),f===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",m,h)}})};return v(t),o.clear(),K++,function(){l.forEach(function(d){var m=R.get(d)-1,p=a.get(d)-1;R.set(d,m),a.set(d,p),m||(N.has(d)||d.removeAttribute(r),N.delete(d)),p||d.removeAttribute(n)}),K--,K||(R=new WeakMap,R=new WeakMap,N=new WeakMap,P={})}},gt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=Ae(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live]"))),Te(r,c,n,"aria-hidden")):function(){return null}},C=function(){return C=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},C.apply(this,arguments)};function ue(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function bt(e,t,n,r){function c(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function o(v){try{i(r.next(v))}catch(d){l(d)}}function b(v){try{i(r.throw(v))}catch(d){l(d)}}function i(v){v.done?a(v.value):c(v.value).then(o,b)}i((r=r.apply(e,t||[])).next())})}function St(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,c,a,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=o(0),l.throw=o(1),l.return=o(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(i){return function(v){return b([i,v])}}function b(i){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,i[0]&&(n=0)),n;
1)try{if(r=1,c&&(a=i[0]&2?c.return:i[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,i[1])).done)return a;switch(c=0,a&&(i=[i[0]&2,a.value]),i[0]){case 0:case 1:a=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,c=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1],a=i;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(i);break}a[2]&&n.ops.pop(),n.trys.pop();continue}i=t.call(e,n)}catch(v){i=[6,v],c=0}finally{r=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function Fe(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),c,a=[],l;try{for(;(t===void 0||t-- >0)&&!(c=r.next()).done;)a.push(c.value)}catch(o){l={error:o}}finally{try{c&&!c.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return a}function Et(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Fe(arguments[t]));return e}function Me(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,a;r<c;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var _="right-scroll-bar-position",W="width-before-scroll-bar",Oe="with-scroll-bars-hidden",xe="--removed-body-scroll-bar-size";function H(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ne(e,t){var n=s.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var Pe=typeof window<"u"?s.useLayoutEffect:s.useEffect,ee=new WeakMap;function Le(e,t){var n=Ne(null,function(r){return e.forEach(function(c){return H(c,r)})});return Pe(function(){var r=ee.get(n);if(r){var c=new Set(r),a=new Set(e),l=n.current;c.forEach(function(o){a.has(o)||H(o,null)}),a.forEach(function(o){c.has(o)||H(o,l)})}ee.set(n,e)},[e]),n}function Ie(e){return e}function _e(e,t){t===void 0&&(t=Ie);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var l=t(a,r);return n.push(l),function(){n=n.filter(function(o){return o!==l})}},assignSyncMedium:function(a){for(r=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(o){return a(o)},filter:function(){return n}}},assignMedium:function(a){r=!0;var l=[];if(n.length){var o=n;n=[],o.forEach(a),l=n}var b=function(){var v=l;l=[],v.forEach(a)},i=function(){return Promise.resolve().then(b)};i(),n={push:function(v){l.push(v),i()},filter:function(v){return l=l.filter(v),n}}}};return c}function We(e){e===void 0&&(e={});var t=_e(null);return t.options=C({async:!0,ssr:!1},e),t}var ie=function(e){var t=e.sideCar,n=ue(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,C({},n))};ie.isSideCarExport=!0;function Be(e,t){return e.useMedium(t),ie}var le=We(),V=function(){},B=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:V,onWheelCapture:V,onTouchMoveCapture:V}),c=r[0],a=r[1],l=e.forwardProps,o=e.children,b=e.className,i=e.removeScrollBar,v=e.enabled,d=e.shards,m=e.sideCar,p=e.noIsolation,w=e.inert,u=e.allowPinchZoom,f=e.as,h=f===void 0?"div":f,E=e.gapMode,y=ue(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),g=m,S=Le([n,t]),A=C(C({},y),c);return s.createElement(s.Fragment,null,v&&s.createElement(g,{sideCar:le,removeScrollBar:i,shards:d,noIsolation:p,inert:w,setCallbacks:a,allowPinchZoom:!!u,lockRef:n,gapMode:E}),l?s.cloneElement(s.Children.only(o),C(C({},A),{ref:S})):s.createElement(h,C({},A,{className:b,ref:S}),o))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};B.classNames={fullWidth:W,zeroRight:_};var De=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function je(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=De();return t&&e.setAttribute("nonce",t),e}function Ue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ke(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var He=function(){var e=0,t=null;return{add:function(n){e==0&&(t=je())&&(Ue(t,n),Ke(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ve=function(){var e=He();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},se=function(){var e=Ve(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Xe={left:0,top:0,right:0,gap:0},X=function(e){return parseInt(e||"",10)||0},Ye=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];
vendor: 6,053 bytes, lines 1-41
1return[X(n),X(r),X(c)]},Ge=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xe;var t=Ye(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ze=se(),M="data-scroll-locked",Ze=function(e,t,n,r){var c=e.left,a=e.top,l=e.right,o=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Oe,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(o,"px ").concat(r,`;
5  }
6  body[`).concat(M,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(c,`px;
11    padding-top: `).concat(a,`px;
12    padding-right: `).concat(l,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(o,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(_,` {
20    right: `).concat(o,"px ").concat(r,`;
21  }
22  
23  .`).concat(W,` {
24    margin-right: `).concat(o,"px ").concat(r,`;
25  }
26  
27  .`).concat(_," .").concat(_,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(W," .").concat(W,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(M,`] {
36    `).concat(xe,": ").concat(o,`px;
37  }
38`)},te=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},qe=function(){s.useEffect(function(){return document.body.setAttribute(M,(te()+1).toString()),function(){var e=te()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},Qe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;qe();var a=s.useMemo(function(){return Ge(c)},[c]);return s.createElement(ze,{styles:Ze(a,!t,c,n?"":"!important")})},Y=!1;if(typeof window<"u")try{var L=Object.defineProperty({},"passive",{get:function(){return Y=!0,!0}});window.addEventListener("test",L,L),window.removeEventListener("test",L,L)}catch{Y=!1}var T=Y?{passive:!1}:!1,$e=function(e){return e.tagName==="TEXTAREA"},fe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$e(e)&&n[t]==="visible")},Je=function(e){return fe(e,"overflowY")},et=function(e){return fe(e,"overflowX")},ne=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=de(e,r);if(c){var a=ve(e,r),l=a[1],o=a[2];if(l>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},de=function(e,t){return e==="v"?Je(t):et(t)},ve=function(e,t){return e==="v"?tt(t):nt(t)},rt=function(e,t){return e==="h"&&t==="rtl"?-1:1},at=function(e,t,n,r,c){var a=rt(e,window.getComputedStyle(t).direction),l=a*r,o=n.target,b=t.contains(o),i=!1,v=l>0,d=0,m=0;do{var p=ve(e,o),w=p[0],u=p[1],f=p[2],h=u-f-a*w;(w||h)&&de(e,o)&&(d+=h,m+=w),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!b&&o!==document.body||b&&(t.contains(o)||t===o));return(v&&Math.abs(d)<1||!v&&Math.abs(m)<1)&&(i=!0),i},I=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},re=function(e){return[e.deltaX,e.deltaY]},ae=function(e){return e&&"current"in e?e.current:e},ot=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ct=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},ut=0,F=[];function it(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),c=s.useState(ut++)[0],a=s.useState(se)[0],l=s.useRef(e);s.useEffect(function(){l.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var u=Me([e.lockRef.current],(e.shards||[]).map(ae),!0).filter(Boolean);return u.forEach(function(f){return f.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),u.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var o=s.useCallback(function(u,f){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!l.current.allowPinchZoom;var h=I(u),E=n.current,y="deltaX"in u?u.deltaX:E[0]-h[0],g="deltaY"in u?u.deltaY:E[1]-h[1],S,A=u.target,O=Math.abs(y)>Math.abs(g)?"h":"v";if("touches"in u&&O==="h"&&A.type==="range")return!1;var x=ne(O,A);if(!x)return!0;if(x?S=O:(S=O==="v"?"h":"v",x=ne(O,A)),!x)return!1;if(!r.current&&"changedTouches"in u&&(y||g)&&(r.current=S),!S)return!0;var G=r.current||S;return at(G,f,u,G==="h"?y:g)},[]),b=s.useCallback(function(u){var f=u;if(!(!F.length||F[F.length-1]!==a)){var h="deltaY"in f?re(f):I(f),E=t.current.filter(function(S){return S.name===f.type&&(S.target===f.target||f.target===S.shadowParent)&&ot(S.delta,h)})[0];if(E&&E.should){f.cancelable&&f.preventDefault();return}if(!E){var y=(l.current.shards||[]).map(ae).filter(Boolean).filter(function(S){return S.contains(f.target)}),g=y.length>0?o(f,y[0]):!l.current.noIsolation;g&&f.cancelable&&f.preventDefault()}}},[]),i=s.useCallback(function(u,f,h,E){var y={name:u,delta:f,target:h,should:E,shadowParent:lt(h)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(g){return g!==y})},1)},[]),v=s.useCallback(function(u){n.current=I(u),r.current=void 0},[]),d=s.useCallback(function(u){i(u.type,re(u),u.target,o(u,e.lockRef.current))},[]),m=s.useCallback(function(u){i(u.type,I(u),u.target,o(u,e.lockRef.current))},[]);s.useEffect(function(){return F.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",b,T),document.addEventListener("touchmove",b,T),document.addEventListener("touchstart",v,T),function(){F=F.filter(function(u){return u!==a}),document.removeEventListener("wheel",b,T),document.removeEventListener("touchmove",b,T),document.removeEventListener("touchstart",v,T)}
41},[]);var p=e.removeScrollBar,w=e.inert;return s.createElement(s.Fragment,null,w?s.createElement(a,{styles:ct(c)}):null,p?s.createElement(Qe,{gapMode:e.gapMode}):null)}function lt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const st=Be(le,it);var ft=s.forwardRef(function(e,t){return s.createElement(B,C({},e,{ref:t,sideCar:st}))});ft.classNames=B.classNames;export{ge as F,ft as R,ue as _,bt as a,St as b,Et as c,gt as h,yt as u};

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.