MCPcopy Index your code
hub / github.com/google/adk-python / zIA

Function zIA

src/google/adk/cli/browser/main-3CUQG2IN.js:696–696  ·  view source on GitHub ↗
(i,e)

Source from the content-addressed store, hash-verified

694 display: inline-flex;
695 color: var(--jse-value-color-number, #ee422e);
696}`);var HIA=TA('<div class="jse-timestamp svelte-1jcpman"><!></div>');function zIA(i,e){Jt(e,!1);var A=cA(void 0,!0),t=s1("absolute-popup"),n=K(e,"value",9);KA(()=>Y(n()),()=>{N(A,"Time: ".concat(new Date(n()).toString()))}),Vn(),di(!0);var o=HIA();Bn(gA(o),{get data(){return qO}}),Ms(o,(a,r)=>tE?.(a,r),()=>Fe({text:c(A)},t)),sA(i,o),Yt()}function PIA(i){var e=[];return!i.isEditing&&zdA(i.value)&&e.push({component:mIA,props:i}),!i.isEditing&&PdA(i.value)&&e.push({component:vIA,props:i}),i.isEditing&&e.push({component:FIA,props:i}),i.isEditing||e.push({component:OIA,props:i}),!i.isEditing&&__(i.value)&&e.push({component:zIA,props:i}),e}function El(i){return i.map((e,A)=>VIA.test(e)?"["+e+"]":/[.[\]]/.test(e)||e===""?'["'+(function(t){return t.replace(/"/g,'\\"')})(e)+'"]':(A>0?".":"")+e).join("")}function jIA(i){for(var e=[],A=0;A<i.length;)i[A]==="."&&A++,i[A]==="["?(A++,i[A]==='"'?(A++,e.push(t(o=>o==='"',!0)),n('"')):e.push(t(o=>o==="]")),n("]")):e.push(t(o=>o==="."||o==="["));function t(o){for(var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r="";A<i.length&&!o(i[A]);)a&&i[A]==="\\"&&i[A+1]==='"'?(r+='"',A+=2):(r+=i[A],A++);return r}function n(o){if(i[A]!==o)throw new SyntaxError("Invalid JSON path: ".concat(o," expected at position ").concat(A));A++}return e}function j2(i){return{value:i,label:An(i)?"(item root)":El(i)}}var VIA=/^\d+$/,qIA={},WIA={showWizard:!0,showOriginal:!0},A5=Math.min,Wd=Math.max,e5=Math.round,Dw=Math.floor,b0=i=>({x:i,y:i}),ZIA={left:"right",right:"left",bottom:"top",top:"bottom"},XIA={start:"end",end:"start"};function aV(i,e,A){return Wd(i,A5(e,A))}function h5(i,e){return typeof i=="function"?i(e):i}function oI(i){return i.split("-")[0]}function E5(i){return i.split("-")[1]}function nW(i){return i==="x"?"y":"x"}function oW(i){return i==="y"?"height":"width"}var $IA=new Set(["top","bottom"]);function Z2(i){return $IA.has(oI(i))?"y":"x"}function aW(i){return nW(Z2(i))}function J_(i){return i.replace(/start|end/g,e=>XIA[e])}var rV=["left","right"],sV=["right","left"],ABA=["top","bottom"],eBA=["bottom","top"];function tBA(i,e,A,t){var n=E5(i),o=(function(a,r,s){switch(a){case"top":case"bottom":return s?r?sV:rV:r?rV:sV;case"left":case"right":return r?ABA:eBA;default:return[]}})(oI(i),A==="start",t);return n&&(o=o.map(a=>a+"-"+n),e&&(o=o.concat(o.map(J_)))),o}function vw(i){return i.replace(/left|right|bottom|top/g,e=>ZIA[e])}function iBA(i){return typeof i!="number"?(function(e){return Fe({top:0,right:0,bottom:0,left:0},e)})(i):{top:i,right:i,bottom:i,left:i}}function t5(i){var{x:e,y:A,width:t,height:n}=i;return{width:t,height:n,top:A,left:e,right:e+t,bottom:A+n,x:e,y:A}}function lV(i,e,A){var t,{reference:n,floating:o}=i,a=Z2(e),r=aW(e),s=oW(r),l=oI(e),g=a==="y",C=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,B=n[s]/2-o[s]/2;switch(l){case"top":t={x:C,y:n.y-o.height};break;case"bottom":t={x:C,y:n.y+n.height};break;case"right":t={x:n.x+n.width,y:d};break;case"left":t={x:n.x-o.width,y:d};break;default:t={x:n.x,y:n.y}}switch(E5(e)){case"start":t[r]-=B*(A&&g?-1:1);break;case"end":t[r]+=B*(A&&g?-1:1)}return t}var nBA=(function(){var i=Xt(function*(e,A,t){for(var{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:r}=t,s=a.filter(Boolean),l=yield r.isRTL==null?void 0:r.isRTL(A),g=yield r.getElementRects({reference:e,floating:A,strategy:o}),{x:C,y:d}=lV(g,n,l),B=n,u={},E=0,f=0;f<s.length;f++){var{name:m,fn:v}=s[f],{x:S,y:k,data:M,reset:x}=yield v({x:C,y:d,initialPlacement:n,placement:B,strategy:o,middlewareData:u,rects:g,platform:r,elements:{reference:e,floating:A}});C=S??C,d=k??d,u=Fe(Fe({},u),{},{[m]:Fe(Fe({},u[m]),M)}),x&&E<=50&&(E++,typeof x=="object"&&(x.placement&&(B=x.placement),x.rects&&(g=x.rects===!0?yield r.getElementRects({reference:e,floating:A,strategy:o}):x.rects),{x:C,y:d}=lV(g,B,l)),f=-1)}return{x:C,y:d,placement:B,strategy:o,middlewareData:u}});return function(e,A,t){return i.apply(this,arguments)}})();function rW(i,e){return Y_.apply(this,arguments)}function Y_(){return Y_=Xt(function*(i,e){var A;e===void 0&&(e={});var{x:t,y:n,platform:o,rects:a,elements:r,strategy:s}=i,{boundary:l="clippingAncestors",rootBoundary:g="viewport",elementContext:C="floating",altBoundary:d=!1,padding:B=0}=h5(e,i),u=iBA(B),E=r[d?C==="floating"?"reference":"floating":C],f=t5(yield o.getClippingRect({element:(A=yield o.isElement==null?void 0:o.isElement(E))==null||A?E:E.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(r.floating)),boundary:l,rootBoundary:g,strategy:s})),m=C==="floating"?{x:t,y:n,width:a.floating.width,height:a.floating.height}:a.reference,v=yield o.getOffsetParent==null?void 0:o.getOffsetParent(r.floating),S=(yield o.isElement==null?void 0:o.isElement(v))&&(yield o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},k=t5(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:m,offsetParent:v,strategy:s}):m);return{top:(f.top-k.top+u.top)/S.y,bottom:(k.bottom-f.bottom+u.bottom)/S.y,left:(f.left-k.left+u.left)/S.x,right:(k.right-f.right+u.right)/S.x}}),Y_.apply(this,arguments)}var oBA=new Set(["left","top"]);function H_(){return H_=Xt(function*(i,e){var{placement:A,platform:t,elements:n}=i,o=yield t.isRTL==null?void 0:t.isRTL(n.floating),a=oI(A),r=E5(A),s=Z2(A)==="y",l=oBA.has(a)?-1:1,g=o&&s?-1:1,C=h5(e,i),{mainAxis:d,crossAxis:B,alignmentAxis:u}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:{mainAxis:C.mainAxis||0,crossAxis:C.crossAxis||0,alignmentAxis:C.alignmentAxis};return r&&typeof u=="number"&&(B=r==="end"?-1*u:u),s?{x:B*g,y:d*l}:{x:d*l,y:B*g}}),H_.apply(this,arguments)}function Q5(){return typeof window<"u"}function iE(i){return sW(i)?(i.nodeName||"").toLowerCase():"#document"}function Yl(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function M0(i){var e;return(e=(sW(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function sW(i){return!!Q5()&&(i instanceof Node||i instanceof Yl(i).Node)}function uc(i){return!!Q5()&&(i instanceof Element||i instanceof Yl(i).Element)}function S0(i){return!!Q5()&&(i instanceof HTMLElement||i instanceof Yl(i).HTMLElement)}function gV(i){return!(!Q5()||typeof ShadowRoot>"u")&&(i instanceof ShadowRoot||i instanceof Yl(i).ShadowRoot)}var aBA=new Set(["inline","contents"]);function tp(i){var{overflow:e,overflowX:A,overflowY:t,display:n}=pc(i);return/auto|scroll|overlay|hidden|clip/.test(e+t+A)&&!aBA.has(n)}var rBA=new Set(["table","td","th"]);function sBA(i){return rBA.has(iE(i))}var lBA=[":popover-open",":modal"];function i5(i){return lBA.some(e=>{try{return i.matches(e)}catch(A){return!1}})}var gBA=["transform","translate","scale","rotate","perspective"],cBA=["transform","translate","scale","rotate","perspective","filter"],CBA=["paint","layout","strict","content"];function z_(i){var e=yx(),A=uc(i)?pc(i):i;return gBA.some(t=>!!A[t]&&A[t]!=="none")||!!A.containerType&&A.containerType!=="normal"||!e&&!!A.backdropFilter&&A.backdropFilter!=="none"||!e&&!!A.filter&&A.filter!=="none"||cBA.some(t=>(A.willChange||"").includes(t))||CBA.some(t=>(A.contain||"").includes(t))}function yx(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}var dBA=new Set(["html","body","#document"]);function Yh(i){return dBA.has(iE(i))}function pc(i){return Yl(i).getComputedStyle(i)}function u5(i){return uc(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function X2(i){if(iE(i)==="html")return i;var e=i.assignedSlot||i.parentNode||gV(i)&&i.host||M0(i);return gV(e)?e.host:e}function lW(i){var e=X2(i);return Yh(e)?i.ownerDocument?i.ownerDocument.body:i.body:S0(e)&&tp(e)?e:lW(e)}function ip(i,e,A){var t;e===void 0&&(e=[]),A===void 0&&(A=!0);var n=lW(i),o=n===((t=i.ownerDocument)==null?void 0:t.body),a=Yl(n);if(o){var r=P_(a);return e.concat(a,a.visualViewport||[],tp(n)?n:[],r&&A?ip(r):[])}return e.concat(n,ip(n,[],A))}function P_(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function gW(i){var e=pc(i),A=parseFloat(e.width)||0,t=parseFloat(e.height)||0,n=S0(i),o=n?i.offsetWidth:A,a=n?i.offsetHeight:t,r=e5(A)!==o||e5(t)!==a;return r&&(A=o,t=a),{width:A,height:t,$:r}}function Dx(i){return uc(i)?i:i.contextElement}function Hh(i){var e=Dx(i);if(!S0(e))return b0(1);var A=e.getBoundingClientRect(),{width:t,height:n,$:o}=gW(e),a=(o?e5(A.width):A.width)/t,r=(o?e5(A.height):A.height)/n;return a&&Number.isFinite(a)||(a=1),r&&Number.isFinite(r)||(r=1),{x:a,y:r}}var IBA=b0(0);function cW(i){var e=Yl(i);return yx()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:IBA}function aI(i,e,A,t){e===void 0&&(e=!1),A===void 0&&(A=!1);var n=i.getBoundingClientRect(),o=Dx(i),a=b0(1);e&&(t?uc(t)&&(a=Hh(t)):a=Hh(i));var r=(function(M,x,F){return x===void 0&&(x=!1),!(!F||x&&F!==Yl(M))&&x})(o,A,t)?cW(o):b0(0),s=(n.left+r.x)/a.x,l=(n.top+r.y)/a.y,g=n.width/a.x,C=n.height/a.y;if(o)for(var d=Yl(o),B=t&&uc(t)?Yl(t):t,u=d,E=P_(u);E&&t&&B!==u;){var f=Hh(E),m=E.getBoundingClientRect(),v=pc(E),S=m.left+(E.clientLeft+parseFloat(v.paddingLeft))*f.x,k=m.top+(E.clientTop+parseFloat(v.paddingTop))*f.y;s*=f.x,l*=f.y,g*=f.x,C*=f.y,s+=S,l+=k,E=P_(u=Yl(E))}return t5({width:g,height:C,x:s,y:l})}function n5(i,e){var A=u5(i).scrollLeft;return e?e.left+A:aI(M0(i)).left+A}function CW(i,e){var A=i.getBoundingClientRect();return{x:A.left+e.scrollLeft-n5(i,A),y:A.top+e.scrollTop}}var BBA=new Set(["absolute","fixed"]);function cV(i,e,A){var t;if(e==="viewport")t=(function(o,a){var r=Yl(o),s=M0(o),l=r.visualViewport,g=s.clientWidth,C=s.clientHeight,d=0,B=0;if(l){g=l.width,C=l.height;var u=yx();(!u||u&&a==="fixed")&&(d=l.offsetLeft,B=l.offsetTop)}var E=n5(s);if(E<=0){var f=s.ownerDocument,m=f.body,v=getComputedStyle(m),S=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,k=Math.abs(s.clientWidth-m.clientWidth-S);k<=25&&(g-=k)}else E<=25&&(g+=E);return{width:g,height:C,x:d,y:B}})(i,A);else if(e==="document")t=(function(o){var a=M0(o),r=u5(o),s=o.ownerDocument.body,l=Wd(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),g=Wd(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight),C=-r.scrollLeft+n5(o),d=-r.scrollTop;return pc(s).direction==="rtl"&&(C+=Wd(a.clientWidth,s.clientWidth)-l),{width:l,height:g,x:C,y:d}})(M0(i));else if(uc(e))t=(function(o,a){var r=aI(o,!0,a==="fixed"),s=r.top+o.clientTop,l=r.left+o.clientLeft,g=S0(o)?Hh(o):b0(1);return{width:o.clientWidth*g.x,height:o.clientHeight*g.y,x:l*g.x,y:s*g.y}})(e,A);else{var n=cW(i);t={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return t5(t)}function dW(i,e){var A=X2(i);return!(A===e||!uc(A)||Yh(A))&&(pc(A).position==="fixed"||dW(A,e))}function hBA(i,e,A){var t=S0(e),n=M0(e),o=A==="fixed",a=aI(i,!0,o,e),r={scrollLeft:0,scrollTop:0},s=b0(0);function l(){s.x=n5(n)}if(t||!t&&!o)if((iE(e)!=="body"||tp(n))&&(r=u5(e)),t){var g=aI(e,!0,o,e);s.x=g.x+e.clientLeft,s.y=g.y+e.clientTop}else n&&l();o&&!t&&n&&l();var C=!n||t||o?b0(0):CW(n,r);return{x:a.left+r.scrollLeft-s.x-C.x,y:a.top+r.scrollTop-s.y-C.y,width:a.width,height:a.height}}function B_(i){return pc(i).position==="static"}function CV(i,e){if(!S0(i)||pc(i).position==="fixed")return null;if(e)return e(i);var A=i.offsetParent;return M0(i)===A&&(A=A.ownerDocument.body),A}function dV(i,e){var A=Yl(i);if(i5(i))return A;if(!S0(i)){for(var t=X2(i);t&&!Yh(t);){if(uc(t)&&!B_(t))return t;t=X2(t)}return A}for(var n=CV(i,e);n&&sBA(n)&&B_(n);)n=CV(n,e);return n&&Yh(n)&&B_(n)&&!z_(n)?A:n||(function(o){for(var a=X2(o);S0(a)&&!Yh(a);){if(z_(a))return a;if(i5(a))return null;a=X2(a)}return null})(i)||A}var EBA={convertOffsetParentRelativeRectToViewportRelativeRect:function(i){var{elements:e,rect:A,offsetParent:t,strategy:n}=i,o=n==="fixed",a=M0(t),r=!!e&&i5(e.floating);if(t===a||r&&o)return A;var s={scrollLeft:0,scrollTop:0},l=b0(1),g=b0(0),C=S0(t);if((C||!C&&!o)&&((iE(t)!=="body"||tp(a))&&(s=u5(t)),S0(t))){var d=aI(t);l=Hh(t),g.x=d.x+t.clientLeft,g.y=d.y+t.clientTop}var B=!a||C||o?b0(0):CW(a,s);return{width:A.width*l.x,height:A.height*l.y,x:A.x*l.x-s.scrollLeft*l.x+g.x+B.x,y:A.y*l.y-s.scrollTop*l.y+g.y+B.y}},getDocumentElement:M0,getClippingRect:function(i){var{element:e,boundary:A,rootBoundary:t,strategy:n}=i,o=A==="clippingAncestors"?i5(e)?[]:(function(l,g){var C=g.get(l);if(C)return C;for(var d=ip(l,[],!1).filter(v=>uc(v)&&iE(v)!=="body"),B=null,u=pc(l).position==="fixed",E=u?X2(l):l;uc(E)&&!Yh(E);){var f=pc(E),m=z_(E);m||f.position!=="fixed"||(B=null),(u?!m&&!B:!m&&f.position==="static"&&B&&BBA.has(B.position)||tp(E)&&!m&&dW(l,E))?d=d.filter(v=>v!==E):B=f,E=X2(E)}return g.set(l,d),d})(e,this._c):[].concat(A),a=[...o,t],r=a[0],s=a.reduce((l,g)=>{var C=cV(e,g,n);return l.top=Wd(C.top,l.top),l.right=A5(C.right,l.right),l.bottom=A5(C.bottom,l.bottom),l.left=Wd(C.left,l.left),l},cV(e,r,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:dV,getElementRects:(function(){var i=Xt(function*(e){var A=this.getOffsetParent||dV,t=this.getDimensions,n=yield t(e.floating);return{reference:hBA(e.reference,yield A(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}});return function(e){return i.apply(this,arguments)}})(),getClientRects:function(i){return Array.from(i.getClientRects())},getDimensions:function(i){var{width:e,height:A}=gW(i);return{width:e,height:A}},getScale:Hh,isElement:uc,isRTL:function(i){return pc(i).direction==="rtl"}};function IV(i,e){return i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height}function QBA(i,e,A,t){t===void 0&&(t={});var{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:s=!1}=t,l=Dx(i),g=n||o?[...l?ip(l):[],...ip(e)]:[];g.forEach(f=>{n&&f.addEventListener("scroll",A,{passive:!0}),o&&f.addEventListener("resize",A)});var C,d=l&&r?(function(f,m){var v,S=null,k=M0(f);function M(){var x;clearTimeout(v),(x=S)==null||x.disconnect(),S=null}return(function x(F,z){F===void 0&&(F=!1),z===void 0&&(z=1),M();var j=f.getBoundingClientRect(),{left:X,top:eA,width:Z,height:CA}=j;if(F||m(),Z&&CA){var wA={rootMargin:-Dw(eA)+"px "+-Dw(k.clientWidth-(X+Z))+"px "+-Dw(k.clientHeight-(eA+CA))+"px "+-Dw(X)+"px",threshold:Wd(0,A5(1,z))||1},BA=!0;try{S=new IntersectionObserver(QA,Fe(Fe({},wA),{},{root:k.ownerDocument}))}catch(RA){S=new IntersectionObserver(QA,wA)}S.observe(f)}function QA(RA){var dA=RA[0].intersectionRatio;if(dA!==z){if(!BA)return x();dA?x(!1,dA):v=setTimeout(()=>{x(!1,1e-7)},1e3)}dA!==1||IV(j,f.getBoundingClientRect())||x(),BA=!1}})(!0),M})(l,A):null,B=-1,u=null;a&&(u=new ResizeObserver(f=>{var[m]=f;m&&m.target===l&&u&&(u.unobserve(e),cancelAnimationFrame(B),B=requestAnimationFrame(()=>{var v;(v=u)==null||v.observe(e)})),A()}),l&&!s&&u.observe(l),u.observe(e));var E=s?aI(i):null;return s&&(function f(){var m=aI(i);E&&!IV(E,m)&&A(),E=m,C=requestAnimationFrame(f)})(),A(),()=>{var f;g.forEach(m=>{n&&m.removeEventListener("scroll",A),o&&m.removeEventListener("resize",A)}),d?.(),(f=u)==null||f.disconnect(),u=null,s&&cancelAnimationFrame(C)}}var uBA=function(i){return i===void 0&&(i=0),{name:"offset",options:i,fn:e=>Xt(function*(){var A,t,{x:n,y:o,placement:a,middlewareData:r}=e,s=yield(function(l,g){return H_.apply(this,arguments)})(e,i);return a===((A=r.offset)==null?void 0:A.placement)&&(t=r.arrow)!=null&&t.alignmentOffset?{}:{x:n+s.x,y:o+s.y,data:Fe(Fe({},s),{},{placement:a})}})()}},pBA=function(i){return i===void 0&&(i={}),{name:"shift",options:i,fn:e=>Xt(function*(){var{x:A,y:t,placement:n}=e,o=h5(i,e),{mainAxis:a=!0,crossAxis:r=!1,limiter:s={fn:S=>{var{x:k,y:M}=S;return{x:k,y:M}}}}=o,l=mV(o,odA),g={x:A,y:t},C=yield rW(e,l),d=Z2(oI(n)),B=nW(d),u=g[B],E=g[d];if(a){var f=B==="y"?"bottom":"right";u=aV(u+C[B==="y"?"top":"left"],u,u-C[f])}if(r){var m=d==="y"?"bottom":"right";E=aV(E+C[d==="y"?"top":"left"],E,E-C[m])}var v=s.fn(Fe(Fe({},e),{},{[B]:u,[d]:E}));return Fe(Fe({},v),{},{data:{x:v.x-A,y:v.y-t,enabled:{[B]:a,[d]:r}}})})()}},fBA=function(i){return i===void 0&&(i={}),{name:"flip",options:i,fn:e=>Xt(function*(){var A,t,{placement:n,middlewareData:o,rects:a,initialPlacement:r,platform:s,elements:l}=e,g=h5(i,e),{mainAxis:C=!0,crossAxis:d=!0,fallbackPlacements:B,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:f=!0}=g,m=mV(g,ndA);if((A=o.arrow)!=null&&A.alignmentOffset)return{};var v=oI(n),S=Z2(r),k=oI(r)===r,M=yield s.isRTL==null?void 0:s.isRTL(l.floating),x=B||(k||!f?[vw(r)]:(function(xA){var qA=vw(xA);return[J_(xA),qA,J_(qA)]})(r)),F=E!=="none";!B&&F&&x.push(...tBA(r,f,E,M));var z=[r,...x],j=yield rW(e,m),X=[],eA=((t=o.flip)==null?void 0:t.overflows)||[];if(C&&X.push(j[v]),d){var Z=(function(xA,qA,ue){ue===void 0&&(ue=!1);var HA=E5(xA),bA=aW(xA),PA=oW(bA),it=bA==="x"?HA===(ue?"end":"start")?"right":"left":HA==="start"?"bottom":"top";return qA.reference[PA]>qA.floating[PA]&&(it=vw(it)),[it,vw(it)]})(n,a,M);X.push(j[Z[0]],j[Z[1]])}if(eA=[...eA,{placement:n,overflows:X}],!X.every(xA=>xA<=0)){var CA,wA,BA=(((CA=o.flip)==null?void 0:CA.index)||0)+1,QA=z[BA];if(QA&&(!(d==="alignment"&&S!==Z2(QA))||eA.every(xA=>Z2(xA.placement)!==S||xA.overflows[0]>0)))return{data:{index:BA,overflows:eA},reset:{placement:QA}};var RA=(wA=eA.filter(xA=>xA.overflows[0]<=0).sort((xA,qA)=>xA.overflows[1]-qA.overflows[1])[0])==null?void 0:wA.placement;if(!RA)switch(u){case"bestFit":var dA,IA=(dA=eA.filter(xA=>{if(F){var qA=Z2(xA.placement);return qA===S||qA==="y"}return!0}).map(xA=>[xA.placement,xA.overflows.filter(qA=>qA>0).reduce((qA,ue)=>qA+ue,0)]).sort((xA,qA)=>xA[1]-qA[1])[0])==null?void 0:dA[0];IA&&(RA=IA);break;case"initialPlacement":RA=r}if(n!==RA)return{reset:{placement:RA}}}return{}})()}};function mBA(i){var e,A,t={autoUpdate:!0},n=i,o=s=>Fe(Fe(Fe({},t),i||{}),s||{}),a=s=>{e&&A&&(n=o(s),((l,g,C)=>{var d=new Map,B=Fe({platform:EBA},C),u=Fe(Fe({},B.platform),{},{_c:d});return nBA(l,g,Fe(Fe({},B),{},{platform:u}))})(e,A,n).then(l=>{var g;Object.assign(A.style,{position:l.strategy,left:"".concat(l.x,"px"),top:"".concat(l.y,"px")}),!((g=n)===null||g===void 0)&&g.onComputed&&n.onComputed(l)}))},r=s=>{Dg(s.subscribe(l=>{e===void 0?(e=l,a()):(Object.assign(e,l),a())}))};return[s=>{if("subscribe"in s)return r(s),{};e=s,a()},(s,l)=>{var g;A=s,n=o(l),setTimeout(()=>a(l),0),a(l);var C=()=>{g&&(g(),g=void 0)},d=function(){var{autoUpdate:B}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n||{};C(),B!==!1&&Cq().then(()=>QBA(e,A,()=>a(n),B===!0?{}:B))};return g=d(),{update(B){a(B),g=d(B)},destroy(){C()}}},a]}function wBA(i){var{loadOptions:e,filterText:A,items:t,multiple:n,value:o,itemId:a,groupBy:r,filterSelectedItems:s,itemFilter:l,convertStringItemsToObjects:g,filterGroupedItems:C,label:d}=i;if(t&&e)return t;if(!t)return[];t&&t.length>0&&typeof t[0]!="object"&&(t=g(t));var B=t.filter(u=>{var E=l(u[d],A,u);return E&&n&&o!=null&&o.length&&(E=!o.some(f=>!!s&&f[a]===u[a])),E});return r&&(B=C(B)),B}function yBA(i){return IW.apply(this,arguments)}function IW(){return(IW=Xt(function*(i){var{dispatch:e,loadOptions:A,convertStringItemsToObjects:t,filterText:n}=i,o=yield A(n).catch(a=>{console.warn("svelte-select loadOptions error :>> ",a),e("error",{type:"loadOptions",details:a})});if(o&&!o.cancelled)return o?(o&&o.length>0&&typeof o[0]!="object"&&(o=t(o)),e("loaded",{items:o})):o=[],{filteredItems:o,loading:!1,focused:!0,listOpen:!0}})).apply(this,arguments)}oi(`
697 svg.svelte-1kxu7be {
698 width: var(--chevron-icon-width, 20px);
699 height: var(--chevron-icon-width, 20px);

Callers

nothing calls this directly

Calls 15

KFunction · 0.90
YFunction · 0.90
nFunction · 0.90
NFunction · 0.90
cFunction · 0.90
concatMethod · 0.80
JtFunction · 0.70
cAFunction · 0.70
s1Function · 0.70
KAFunction · 0.70
VnFunction · 0.70
diFunction · 0.70

Tested by

no test coverage detected