vendor: 4,418 bytes, line 1
1"use strict";(self.webpackChunkportals_ui=self.webpackChunkportals_ui||[]).push([[3188],{17663(t,e,n){function o(t,e,n){return Q(t,K(e,n))}function i(t,e){return"function"==typeof t?t(e):t}function r(t){return t.split("-")[0]}function l(t){return t.split("-")[1]}function c(t){return"x"===t?"y":"x"}function s(t){return"y"===t?"height":"width"}function a(t){return["top","bottom"].includes(r(t))?"y":"x"}function f(t){return c(a(t))}function u(t){return t.replace(/start|end/g,(t=>ot[t]))}function d(t){return t.replace(/left|right|bottom|top/g,(t=>nt[t]))}function h(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function m(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function p(t,e,n){let{reference:o,floating:i}=t;const c=a(e),u=f(e),d=s(u),h=r(e),m="y"===c,p=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[d]/2-i[d]/2;let w;switch(h){case"top":w={x:p,y:o.y-i.height};break;case"bottom":w={x:p,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-i.width,y:g};break;default:w={x:o.x,y:o.y}}switch(l(e)){case"start":w[u]-=y*(n&&m?-1:1);break;case"end":w[u]+=y*(n&&m?-1:1)}return w}async function g(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:l,rects:c,elements:s,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=i(e,t),y=h(g),w=s[p?"floating"===d?"reference":"floating":d],x=m(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(w)))||n?w:w.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:a})),v="floating"===d?{x:o,y:r,width:c.floating.width,height:c.floating.height}:c.reference,b=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),R=await(null==l.isElement?void 0:l.isElement(b))&&await(null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},T=m(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:a}):v);return{top:(x.top-T.top+y.top)/R.y,bottom:(T.bottom-x.bottom+y.bottom)/R.y,left:(x.left-T.left+y.left)/R.x,right:(T.right-x.right+y.right)/R.x}}function y(){return"undefined"!=typeof window}function w(t){return b(t)?(t.nodeName||"").toLowerCase():"#document"}function x(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function v(t){var e;return null==(e=(b(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function b(t){return!!y()&&(t instanceof Node||t instanceof x(t).Node)}function R(t){return!!y()&&(t instanceof Element||t instanceof x(t).Element)}function T(t){return!!y()&&(t instanceof HTMLElement||t instanceof x(t).HTMLElement)}function L(t){return!(!y()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof x(t).ShadowRoot)}function E(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=k(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function A(t){return["table","td","th"].includes(w(t))}function D(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function O(t){const e=C(),n=R(t)?k(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function C(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function S(t){return["html","body","#document"].includes(w(t))}function k(t){return x(t).getComputedStyle(t)}function P(t){return R(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function F(t){if("html"===w(t))return t;const e=t.assignedSlot||t.parentNode||L(t)&&t.host||v(t);return L(e)?e.host:e}function B(t){const e=F(t);return S(e)?t.ownerDocument?t.ownerDocument.body:t.body:T(e)&&E(e)?e:B(e)}function H(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=B(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=x(i);if(r){const t=W(l);
vendor: 11,317 bytes, line 1
1return e.concat(l,l.visualViewport||[],E(i)?i:[],t&&n?H(t):[])}return e.concat(i,H(i,[],n))}function W(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function V(t){const e=k(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=T(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,c=Z(n)!==r||Z(o)!==l;return c&&(n=r,o=l),{width:n,height:o,$:c}}function M(t){return R(t)?t:t.contextElement}function N(t){const e=M(t);if(!T(e))return et(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=V(e);let l=(r?Z(n.width):n.width)/o,c=(r?Z(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}function z(t){const e=x(t);return C()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:it}function _(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=M(t);let l=et(1);e&&(o?R(o)&&(l=N(o)):l=N(t));const c=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==x(t))&&e}(r,n,o)?z(r):et(0);let s=(i.left+c.x)/l.x,a=(i.top+c.y)/l.y,f=i.width/l.x,u=i.height/l.y;if(r){const t=x(r),e=o&&R(o)?x(o):o;let n=t,i=W(n);for(;i&&o&&e!==n;){const t=N(i),e=i.getBoundingClientRect(),o=k(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,a*=t.y,f*=t.x,u*=t.y,s+=r,a+=l,n=x(i),i=W(n)}}return m({width:f,height:u,x:s,y:a})}function I(t,e){const n=P(t).scrollLeft;return e?e.left+n:_(v(t)).left+n}function U(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:I(t,o)),y:o.top+e.scrollTop}}function Y(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=x(t),o=v(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=C();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}(t,n);else if("document"===e)o=function(t){const e=v(t),n=P(t),o=t.ownerDocument.body,i=Q(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=Q(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+I(t);const c=-n.scrollTop;return"rtl"===k(o).direction&&(l+=Q(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:c}}(v(t));else if(R(e))o=function(t,e){const n=_(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=T(t)?N(t):et(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=z(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return m(o)}function j(t,e){const n=F(t);return!(n===e||!R(n)||S(n))&&("fixed"===k(n).position||j(n,e))}function q(t,e,n){const o=T(e),i=v(e),r="fixed"===n,l=_(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const s=et(0);if(o||!o&&!r)if(("body"!==w(e)||E(i))&&(c=P(e)),o){const t=_(e,!0,r,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=I(i));const a=!i||o||r?et(0):U(i,c);return{x:l.left+c.scrollLeft-s.x-a.x,y:l.top+c.scrollTop-s.y-a.y,width:l.width,height:l.height}}function X(t){return"static"===k(t).position}function $(t,e){if(!T(t)||"fixed"===k(t).position)return null;if(e)return e(t);let n=t.offsetParent;return v(t)===n&&(n=n.ownerDocument.body),n}function G(t,e){const n=x(t);if(D(t))return n;if(!T(t)){let e=F(t);for(;e&&!S(e);){if(R(e)&&!X(e))return e;e=F(e)}return n}let o=$(t,e);for(;o&&A(o)&&X(o);)o=$(o,e);return o&&S(o)&&X(o)&&!O(o)?n:o||function(t){let e=F(t);for(;T(e)&&!S(e);){if(O(e))return e;if(D(e))return null;e=F(e)}return null}(t)||n}function J(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,a=M(t),f=i||r?[...a?H(a):[],...H(e)]:[];f.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=a&&c?function(t,e){function n(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}let o,i=null;const r=v(t);return function l(c,s){function a(t){const e=t[0].intersectionRatio;if(e!==s){if(!p)return l();e?l(!1,e):o=setTimeout((()=>{l(!1,1e-7)}),1e3)}p=!1}void 0===c&&(c=!1),void 0===s&&(s=1),n();const{left:f,top:u,width:d,height:h}=t.getBoundingClientRect();if(c||e(),!d||!h)return;const m={rootMargin:-tt(u)+"px "+-tt(r.clientWidth-(f+d))+"px "+-tt(r.clientHeight-(u+h))+"px "+-tt(f)+"px",threshold:Q(0,K(1,s))||1};let p=!0;try{i=new IntersectionObserver(a,{...m,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(a,m)}i.observe(t)}(!0),n}(a,n):null;let d,h=-1,m=null;l&&(m=new ResizeObserver((t=>{let[o]=t;o&&o.target===a&&m&&(m.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var t;null==(t=m)||t.observe(e)}))),n()})),a&&!s&&m.observe(a),m.observe(e));let p=s?_(t):null;return s&&function e(){const o=_(t);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,d=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=m)||t.disconnect(),m=null,s&&cancelAnimationFrame(d)}}n.d(e,{UE:()=>at,ll:()=>J,rD:()=>ft,UU:()=>st,cY:()=>lt,BN:()=>ct});const K=Math.min,Q=Math.max,Z=Math.round,tt=Math.floor,et=t=>({x:t,y:t}),nt={left:"right",right:"left",bottom:"top",top:"bottom"},ot={start:"end",end:"start"};const it=et(0),rt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=v(o),c=!!e&&D(e.floating);if(o===l||c&&r)return n;let s={scrollLeft:0,scrollTop:0},a=et(1);const f=et(0),u=T(o);if((u||!u&&!r)&&(("body"!==w(o)||E(l))&&(s=P(o)),T(o))){const t=_(o);a=N(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const d=!l||u||r?et(0):U(l,s,!0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+f.x+d.x,y:n.y*a.y-s.scrollTop*a.y+f.y+d.y}},getDocumentElement:v,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?D(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=H(t,[],!1).filter((t=>R(t)&&"body"!==w(t))),i=null;const r="fixed"===k(t).position;let l=r?F(t):t;for(;R(l)&&!S(l);){const e=k(l),n=O(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||E(l)&&!n&&j(t,l))?o=o.filter((t=>t!==l)):i=e,l=F(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=Y(e,n,i);return t.top=Q(o.top,t.top),t.right=K(o.right,t.right),t.bottom=K(o.bottom,t.bottom),t.left=Q(o.left,t.left),t}),Y(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:G,getElementRects:async function(t){const e=this.getOffsetParent||G,n=this.getDimensions,o=await n(t.floating);return{reference:q(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=V(t);return{width:e,height:n}},getScale:N,isElement:R,isRTL:function(t){return"rtl"===k(t).direction}},lt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:c,y:s,placement:f,middlewareData:u}=e,d=await async function(t,e){const{placement:n,platform:o,elements:c}=t,s=await(null==o.isRTL?void 0:o.isRTL(c.floating)),f=r(n),u=l(n),d="y"===a(n),h=["left","top"].includes(f)?-1:1,m=s&&d?-1:1,p=i(e,t);let{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof w&&(y="end"===u?-1*w:w),d?{x:y*m,y:g*h}:{x:g*h,y:y*m}}(e,t);return f===(null==(n=u.offset)?void 0:n.placement)&&null!=(o=u.arrow)&&o.alignmentOffset?{}:{x:c+d.x,y:s+d.y,data:{...d,placement:f}}}}},ct=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:l,placement:s}=e,{mainAxis:f=!0,crossAxis:u=!1,limiter:d={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...h}=i(t,e),m={x:n,y:l},p=await g(e,h),y=a(r(s)),w=c(y);let x=m[w],v=m[y];if(f){const t="y"===w?"bottom":"right";x=o(x+p["y"===w?"top":"left"],x,x-p[t])}if(u){const t="y"===y?"bottom":"right";v=o(v+p["y"===y?"top":"left"],v,v-p[t])}const b=d.fn({...e,[w]:x,[y]:v});return{...b,data:{x:b.x-n,y:b.y-l,enabled:{[w]:f,[y]:u}}}}}},st=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:c,middlewareData:h,rects:m,initialPlacement:p,platform:y,elements:w}=e,{mainAxis:x=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:L=!0,...E}=i(t,e);if(null!=(n=h.arrow)&&n.alignmentOffset)return{};const A=r(c),D=a(p),O=r(p)===p,C=await(null==y.isRTL?void 0:y.isRTL(w.floating)),S=b||(O||!L?[d(p)]:function(t){const e=d(t);return[u(t),e,u(e)]}(p)),k="none"!==T;!b&&k&&S.push(...function(t,e,n,o){const i=l(t);let c=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(r(t),"start"===n,o);return i&&(c=c.map((t=>t+"-"+i)),e&&(c=c.concat(c.map(u)))),c}(p,L,T,C));const P=[p,...S],F=await g(e,E),B=[];let H=(null==(o=h.flip)?void 0:o.overflows)||[];if(x&&B.push(F[A]),v){const t=function(t,e,n){void 0===n&&(n=!1);const o=l(t),i=f(t),r=s(i);let c="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(c=d(c)),[c,d(c)]}(c,m,C);B.push(F[t[0]],F[t[1]])}if(H=[...H,{placement:c,overflows:B}],!B.every((t=>t<=0))){var W,V;const t=((null==(W=h.flip)?void 0:W.index)||0)+1,e=P[t];if(e)return{data:{index:t,overflows:H},reset:{placement:e}};let n=null==(V=H.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:V.placement;if(!n)switch(R){case"bestFit":{var M;const t=null==(M=H.filter((t=>{if(k){const e=a(t.placement);return e===D||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0];t&&(n=t);break}case"initialPlacement":n=p}if(c!==n)return{reset:{placement:n}}}return{}}}},at=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:c,rects:a,platform:u,elements:d,middlewareData:m}=e,{element:p,padding:g=0}=i(t,e)||{};if(null==p)return{};const y=h(g),w={x:n,y:r},x=f(c),v=s(x),b=await u.getDimensions(p),R="y"===x,T=R?"top":"left",L=R?"bottom":"right",E=R?"clientHeight":"clientWidth",A=a.reference[v]+a.reference[x]-w[x]-a.floating[v],D=w[x]-a.reference[x],O=await(null==u.getOffsetParent?void 0:u.getOffsetParent(p));let C=O?O[E]:0;C&&await(null==u.isElement?void 0:u.isElement(O))||(C=d.floating[E]||a.floating[v]);const S=A/2-D/2,k=C/2-b[v]/2-1,P=K(y[T],k),F=K(y[L],k),B=P,H=C-b[v]-F,W=C/2-b[v]/2+S,V=o(B,W,H),M=!m.arrow&&null!=l(c)&&W!==V&&a.reference[v]/2-(W<B?P:F)-b[v]/2<0,N=M?W<B?W-B:W-H:0;return{[x]:w[x]+N,data:{[x]:V,centerOffset:W-V-N,...M&&{alignmentOffset:N}},reset:M}}}),ft=(t,e,n)=>{const o=new Map,i={platform:rt,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}
vendor: 677 bytes, lines 1-2
1),{x:f,y:u}=p(a,o,s),d=o,h={},m=0;for(let n=0;n<c.length;n++){const{name:r,fn:g}=c[n],{x:y,y:w,data:x,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=w?w:u,h={...h,[r]:{...h[r],...x}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(a=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:u}=p(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:h}})(t,e,{...i,platform:r})}}}]); 2//# sourceMappingURL=chunk_16b6190b.21906c3d17268d5ddb12.15add473ca015c596ed42a73afca5d2fc49bcb41.js.map
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.