PageSourceSearch

https://www.tremglobal.com/_next/static/chunks/4111-70042cbfe90f1e38.js

js tremglobal.com collected 2026-10-02 06:48:07 UTC 7,671 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4111],{67037:function(){},30706:function(){},38056:function(){},92:function(){},68770:function(){},75083:function(){},92703:function(e,t,n){"use strict";var r=n(50414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,l){if(l!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},59026:function(e,t,n){"use strict";n.d(t,{ri:function(){return w},ck:function(){return O}});var r=n(15826),o=n(67294),i=n(73935),l=n(45697);class a extends Error{constructor(){super(...arguments),this.message=`No valid \`ref\` provided.
2You should use \`ref\` from render prop of Item component.
3Example:
4<Item>{({ ref }) => <div ref={ref}></div>}</Item>
5`}}var u=function(e,t){if(!(e instanceof Element)||!(t instanceof Element))throw new a;return e===t?0:2&e.compareDocumentPosition(t)?1:-1},s=function(e){return Object.entries(e).map(([e,t])=>t?`${e}=${t}`:e).join("&")},c=function(e){return e.split("&").reduce((e,t)=>{let[n,r]=t.split("=");return n&&(e[n]=r),e},{})},p=function(e){let t=c(e);return delete t.gid,delete t.pid,s(t)},d=function(){return window.location.hash.substring(1)},f=function(){return`${window.location.pathname}${window.location.search}`};let h=e=>{let t=c(e);return Boolean(t.gid)&&Boolean(t.pid)},y=o.createContext({remove(){},set(){},handleClick(){},open(){}});class b{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let v=null,w=({children:e,options:t,plugins:n,uiElements:l,id:a,onBeforeOpen:w,onOpen:g,withCaption:O,withDownloadButton:E})=>{let[S,x]=(0,o.useState)(null),k=(0,o.useRef)(new Map),C=(0,o.useRef)(null),T=(0,o.useCallback)((e,o,c,y)=>{var S,C;if(v)return;let T=c||null,j=[],_=Array.from(k.current),P=(t,n)=>{let[r,i]=t,{width:l,height:a,original:u,originalSrcset:s,thumbnail:c,cropped:p,content:d,id:f}=i,h=m(i,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);(e===r||void 0!==f&&String(f)===o)&&(T=n),j.push(Object.assign(Object.assign(Object.assign({w:Number(l),h:Number(a),src:u,srcset:s,msrc:c,element:r.current,thumbCropped:p,content:d},void 0!==d?{type:"html"}:{}),void 0!==f?{pid:f}:{}),h))};k.current.size>1?_.sort(([{current:e}],[{current:t}])=>u(e,t)).forEach(P):_.forEach(P);let I=y&&void 0!==y.clientX&&void 0!==y.clientY?{x:y.clientX,y:y.clientY}:null,R=new r.Z(Object.assign({dataSource:j,index:null!==(S=T)?S:o?parseInt(o,10)-1:0,initialPointerPos:I},t||{}));v=R,R.on("contentActivate",({content:e})=>{e.data.content?x((0,i.createPortal)(e.data.content,e.element)):x(null)}),R.on("close",()=>{x(null)}),E&&R.on("uiRegister",()=>{var e;null===(e=R.ui)||void 0===e||e.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'<path d="M20.5 14.3 17.1 18V10h-2.2v7.9l-3.4-3.6L10 16l6 6.1 6-6.1ZM23 23H9v2h14Z" id="pswp__icn-download"/>',outlineID:"pswp__icn-download"},onInit(e,t){e.setAttribute("download",""),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener"),R.on("change",()=>{var n;if(!(null===(n=t.currSlide)||void 0===n?void 0:n.data.src))return;let r=e;r.href=t.currSlide.data.src})}})}),O&&R.on("uiRegister",()=>{var e;null===(e=R.ui)||void 0===e||e.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit(e,t){e.style.position="absolute",e.style.bottom="15px",e.style.left="0",e.style.right="0",e.style.padding="0 20px",e.style.color="var(--pswp-icon-color)",e.style.textAlign="center",e.style.fontSize="14px",e.style.lineHeight="1.5",e.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",R.on("change",()=>{if(!t.currSlide)return;let{caption:n,alt:r}=t.currSlide.data;e.innerHTML=n||r||""})}})}
5),Array.isArray(l)&&l.forEach(e=>{R.on("uiRegister",()=>{var t;null===(t=R.ui)||void 0===t||t.registerElement(e)})}),"function"==typeof n&&n(new b(R)),"function"==typeof w&&w(R);let $=()=>({gallery:{galleryUID:a}});R.on("beforeOpen",()=>{var e;if(void 0===a)return;let t=h(d());if(!t){window.history.pushState($(),document.title);return}let n=Boolean(null===(e=window.history.state)||void 0===e?void 0:e.gallery);if(n)return;let r=f(),o=d(),i=p(o),l=`${r}${i?`#${i}`:""}`,u=`${r}#${o}`;window.history.replaceState(window.history.state,document.title,l),window.history.pushState($(),document.title,u)}),R.on("change",()=>{var e;if(void 0===a)return;let t=(null===(e=R.currSlide)||void 0===e?void 0:e.data.pid)||R.currIndex+1,n=f(),r=p(d()),o=s({gid:a,pid:t}),i=`${n}#${r}&${o}`;window.history.replaceState($(),document.title,i)});let A=()=>{void 0!==a&&null!==v&&v.close()};window.addEventListener("popstate",A),R.on("destroy",()=>{void 0!==a&&(window.removeEventListener("popstate",A),h(d())&&window.history.back()),v=null}),R.init(),"function"==typeof g&&g(R)},[t,n,l,a,w,g,O,E]);(0,o.useEffect)(()=>()=>{v&&v.close()},[]);let j=(0,o.useCallback)(()=>{if(void 0===a||null!==v)return;let e=d();if(e.length<5)return;let t=c(e),{pid:n,gid:r}=t;if(n&&r){if(0===k.current.size){C.current=n;return}n&&r===String(a)&&T(null,n)}},[T,a]);(0,o.useEffect)(()=>(j(),window.addEventListener("popstate",j),()=>{window.removeEventListener("popstate",j)}),[j]);let _=(0,o.useCallback)(e=>{k.current.delete(e)},[]),P=(0,o.useCallback)((e,t)=>{let{id:n}=t;if(k.current.set(e,t),null!==C.current){if(n===C.current){T(e),C.current=null;return}if(!n){let r=parseInt(C.current,10)-1,o=Array.from(k.current.keys())[r];o&&(T(o),C.current=null)}}},[T]),I=(0,o.useCallback)(e=>{T(null,null,e)},[T]),R=(0,o.useMemo)(()=>({remove:_,set:P,handleClick:T,open:I}),[_,P,T,I]);return o.createElement(y.Provider,{value:R},e,S)};w.propTypes={children:l.any,options:l.object,plugins:l.func,uiElements:l.array,id:l.oneOfType([l.string,l.number]),onBeforeOpen:l.func,onOpen:l.func,withCaption:l.bool,withDownloadButton:l.bool};var g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let O=e=>{var{children:t}=e,n=g(e,["children"]);let r=(0,o.useRef)(),{remove:i,set:l,handleClick:a}=(0,o.useContext)(y),u=(0,o.useCallback)(e=>a(r,null,null,e),[]);return(0,o.useLayoutEffect)(()=>(l(r,n),()=>i(r)),Object.values(n)),t({ref:r,open:u})};O.propTypes={children:l.func.isRequired,original:l.string,originalSrcset:l.string,thumbnail:l.string,width:l.oneOfType([l.number,l.string]),height:l.oneOfType([l.number,l.string]),alt:l.string,caption:l.string,content:l.element,html:l.string,id:l.oneOfType([l.number,l.string]),cropped:l.bool}}}]);

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.