PageSourceSearch

https://mapas.semil.sp.gov.br/portal/apps/dashboards/assets/chunk.947.33861be0f4b8c22207d0.js

js semil.sp.gov.br collected 2026-09-24 09:30:10 UTC 21,967 bytes, 156 lines download raw bytes

1/*! For license information please see chunk.947.33861be0f4b8c22207d0.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[947],{37946:(e,t,n)=>{n.d(t,{V:()=>o})
3var i=n(68762),a=n(9314)
4const o=({scale:e,status:t,id:n,icon:o,message:r})=>i.qy`<div class=${(0,a.CP)("validation-container")}><calcite-input-message aria-live=polite .icon=${o} id=${n??i.s6} .scale=${e} .status=${t}>${r}</calcite-input-message></div>`},59225:(e,t,n)=>{n.d(t,{A:()=>L,B:()=>S,C:()=>C,D:()=>_,a:()=>z,b:()=>$,c:()=>x,d:()=>j,e:()=>V,f:()=>q,g:()=>k,h:()=>T,i:()=>W,j:()=>P,k:()=>D,l:()=>X,m:()=>Z,n:()=>I,o:()=>w,p:()=>E,q:()=>M,r:()=>U,s:()=>H,t:()=>F,u:()=>B,v:()=>O,w:()=>G,x:()=>R,y:()=>A,z:()=>K})
5var i=n(4544),a=n(2445),o=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),r=typeof Element>"u",l=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!r&&Element.prototype.getRootNode?function(e){var t
6return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return e?.ownerDocument},c=function e(t,n){var i
7void 0===n&&(n=!0)
8var a=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert")
9return""===a||"true"===a||n&&t&&e(t.parentNode)},d=function e(t,n,i){for(var a=[],r=Array.from(t);r.length;){var s=r.shift()
10if(!c(s,!1))if("SLOT"===s.tagName){var d=s.assignedElements(),u=e(d.length?d:s.children,!0,i)
11i.flatten?a.push.apply(a,u):a.push({scopeParent:s,candidates:u})}else{l.call(s,o)&&i.filter(s)&&(n||!t.includes(s))&&a.push(s)
12var f=s.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(s),h=!c(f,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s))
13if(f&&h){var m=e(!0===f?s.children:f.children,!0,i)
14i.flatten?a.push.apply(a,m):a.push({scopeParent:s,candidates:m})}else r.unshift.apply(r,s.children)}}return a},u=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided")
15return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable")
16return""===n||"true"===n}(e))&&!u(e)?0:e.tabIndex},h=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},m=function(e){return"INPUT"===e.tagName},p=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height
17return 0===n&&0===i},v=function(e,t){return!(function(e){return function(e){return m(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0
18var t,n=e.form||s(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')}
19if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name))
20else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form)
21return!a||a===e}(e)}(t)||f(t)<0||!function(e,t){return!(t.disabled||c(t)||function(e){return m(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot
22if("hidden"===getComputedStyle(e).visibility)return!0
23var a=l.call(e,"details>summary:first-of-type")?e.parentElement:e
24if(l.call(a,"details:not([open]) *"))return!0
25if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return p(e)}else{if("function"==typeof i){for(var o=e;e;){var r=e.parentElement,c=s(e)
26if(r&&!r.shadowRoot&&!0===i(r))return p(e)
27e=e.assignedSlot?e.assignedSlot:r||c===e.ownerDocument?r:c.host}e=o}if(function(e){var t,n,i,a,o=e&&s(e),r=null===(t=o)||void 0===t?void 0:t.host,l=!1
28if(o&&o!==e)for(l=!!(null!==(n=r)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(r)||null!=e&&null!==(a=e.ownerDocument)&&void 0!==a&&a.contains(e));!l&&r;){var c,d,u
29l=!(null===(d=r=null===(c=o=s(r))||void 0===c?void 0:c.host)||void 0===d||null===(u=d.ownerDocument)||void 0===u||!u.contains(r))}return l}(e))return!e.getClientRects().length
30if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}
30(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n)
31if("LEGEND"===i.tagName)return!!l.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))}(e,t))},g=function(e){var t=parseInt(e.getAttribute("tabindex"),10)
32return!!(isNaN(t)||t>=0)},b=function e(t){var n=[],i=[]
33return t.forEach((function(t,a){var o=!!t.scopeParent,r=o?t.scopeParent:t,l=function(e,t){var n=f(e)
34return n<0&&t&&!u(e)?0:n}(r,o),s=o?e(t.candidates):r
350===l?o?n.push.apply(n,s):n.push(r):i.push({documentOrder:a,tabIndex:l,item:t,isScope:o,content:s})})),i.sort(h).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},y=function(e,t){var n
36return n=(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:v.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:g}):function(e,t,n){if(c(e))return[]
37var i=Array.prototype.slice.apply(e.querySelectorAll(o))
38return t&&l.call(e,o)&&i.unshift(e),i.filter(n)}(e,t.includeContainer,v.bind(null,t)),b(n)}
39const E={getShadowRoot:!0}
40function w(e){return e?e.id=e.id||`${e.tagName.toLowerCase()}-${(0,i.g)()}`:""}function I(e){return Array.isArray(e)?e:Array.from(e)}function C(e){const t=D(e,`.${a.C.darkMode}, .${a.C.lightMode}, .${a.C.autoMode}`)
41return t?.classList.contains("calcite-mode-dark")||t?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function k(e){const t=D(e,"[dir]")
42return t?t.getAttribute("dir"):"ltr"}function S(e){return e?parseFloat(getComputedStyle(e).inlineSize):0}function A(e){return e.getRootNode()}function x(e){const t=A(e)
43return"host"in t?t:null}function L(e,t){if(!e)return 0
44const n=document.createElement("canvas").getContext("2d")
45return n.font=t,n.measureText(e).width}function N(e){return e.host||null}function M(e,{selector:t,id:n}){if(!e)return null
46e.assignedSlot&&(e=e.assignedSlot)
47const i=A(e)
48return(n?"getElementById"in i?i.getElementById(n):null:t?i.querySelector(t):null)||M(N(i),{selector:t,id:n})}function D(e,t){return e?e.closest(t)||D(N(A(e)),t):null}async function $(e){if(e)return function(e){return"function"==typeof e?.setFocus}(e)?e.setFocus():e.focus()}function R(e){if(e)return y(e,E)[0]??e}function T(e){R(e)?.focus()}function q(e,t){return Array.from(e.children).filter((e=>e.matches(t)))}function O(e,t,n){return"string"==typeof t&&""!==t?t:""===t||!0===t?e[n]:void 0}function P(e,t){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)}function F(e){return(!!e).toString()}function U(e){return z(e)||function(e){return!!function(e){return function(e){return e.currentTarget.assignedNodes({flatten:!0})}(e).filter((e=>e.nodeType===Node.TEXT_NODE)).map((e=>e.textContent)).join("").trim()}(e)}(e)}function _(e){for(const t of e.childNodes)if(t.nodeType===Node.TEXT_NODE&&""!==t.textContent?.trim()||t.nodeType===Node.ELEMENT_NODE)return!0
49return!1}function z(e){return!!H(e).length}function H(e,t){return V(e.target,t)}function V(e,t){const n=e.assignedElements({flatten:!0})
50return t?function(e,t){return e.filter((e=>e.matches(t)))}(n,t):n}function W(e){return!(!e.isPrimary||0!==e.button)}function B(e){return 0===e.detail}const j=(e,t,n,i=!0)=>{const a=e.indexOf(t),o=0===a,r=a===e.length-1
51let l
52return i&&(n="previous"===n&&o?"last":"next"===n&&r?"first":n),l="previous"===n?e[a-1]||e[i?e.length-1:a]:"next"===n?e[a+1]||e[i?0:a]:"last"===n?e[e.length-1]:e[0],$(l),l}
53function X(e,t){if(e.parentNode!==t.parentNode)return!1
54const n=Array.from(e.parentNode.children)
55return n.indexOf(e)<n.indexOf(t)}async function K(e,t,n,i){return J(e,t,"animation",n,i)}async function G(e,t,n,i){return J(e,t,"transition",n,i)}function Y(e,t,n){const i="transition"===t?"transitionProperty":"animationName"
56return e.getAnimations().find((e=>e[i]===n))}async function J(e,t,n,i,a){let o=Y(e,n,t)
57if(o||(await Q(),o=Y(e,n,t)),!o)return async function(e,t){await Q(),e?.(),await Q(),t?.()}(i,a)
58i?.()
59try{await o.finished}catch{}finally{a?.()}}function Q(){return new Promise((e=>requestAnimationFrame((()=>e()))))}function Z(e){return e.endsWith("px")}},93811:(e,t,n)=>{n.d(t,{H:()=>k,a:()=>y,c:()=>p,d:()=>b,f:()=>v,i:()=>E,r:()=>m,s:()=>h})
60var i=n(68762),a=n(59225)
61const o=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"],r="hidden-form-input"
62function l(e){return"checked"in e}const s=new WeakMap,c=new WeakSet
63function d(e){return"CALCITE-RADIO-BUTTON"===e.nodeName?(0,a.k)(e,"calcite-radio-button-group"):e}const u=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0})
64function f(e){const t=e?.target,n=t?.validationMessage,i=d(t?.parentElement)
65if(!i)return
66const a=i?.nodeName?.toLowerCase(),r=a?.split("-")
67if(r.length<2||"calcite"!==r[0])return
68e?.preventDefault(),"validity"in i&&(i.validity=t?.validity),i.dispatchEvent(u),function(e,{status:t,message:n,icon:i}){"status"in e&&(e.status=t),"validationIcon"in e&&"string"!=typeof e.validationIcon&&(e.validationIcon=i),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=n)}(i,{message:n,icon:!0,status:"invalid"})
69const l=function(e){return`${e.split("-").map(((e,t)=>0===t?e:`${e[0].toUpperCase()}${e.slice(1)}`)).join("")}${o.includes(e)?"Input":"Change"}`}(a)
70i.addEventListener(l,(()=>{"status"in i&&(i.status="idle"),"validationIcon"in i&&(""===i.validationIcon||!0===i.validationIcon)&&(i.validationIcon=!1),"validationMessage"in i&&i.validationMessage===n&&(i.validationMessage=""),"validity"in i&&(i.validity=t?.validity)}),{once:!0})}function h(e){const{formEl:t}=e
71return!!t&&(t.addEventListener("invalid",f,!0),t.requestSubmit(),t.removeEventListener("invalid",f,!0),requestAnimationFrame((()=>{const e=t.querySelectorAll("[status=invalid]")
72for(const t of e)if(t?.validationMessage){t?.setFocus()
73break}})),!0)}function m(e){e.formEl?.reset()}function p(e){const{el:t,value:n}=e,i=v(e)
74if(!i||function(e,t){if((0,a.k)(t.parentElement,"[form]"))return!0
75const n="calciteInternalFormComponentRegister"
76let i=!1
77return e.addEventListener(n,(e=>{i=e.composedPath().some((e=>c.has(e))),e.stopPropagation()}),{once:!0}),t.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0})),i}(i,t))return
78e.formEl=i,e.defaultValue=n,l(e)&&(e.defaultChecked=e.checked)
79const o=g.bind(e)
80i.addEventListener("reset",o),s.set(e.el,o),c.add(t)}function v(e){const{el:t,form:n}=e
81return n?(0,a.q)(t,{id:n}):(0,a.k)(t,"form")}function g(){"status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),l(this)?this.checked=this.defaultChecked:(this.value=this.defaultValue,this.onFormReset?.())}function b(e){const{el:t,formEl:n}=e
82if(!n)return
83const i=s.get(t)
84n.removeEventListener("reset",i),s.delete(t),e.formEl=null,c.delete(t)}function y(e,t){e.defaultValue=t}const E="calciteInternalHiddenInputInput",w=e=>{e.target.dispatchEvent(new CustomEvent(E,{bubbles:!0}))},I=e=>e.removeEventListener("input",w)
85function C(e,t,n){const{defaultValue:i,disabled:a,form:o,name:r,required:s}=e
86t.defaultValue=i,t.disabled=a,t.name=r,t.required=s,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),l(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?n||"on":""):t.value=n||"",e.syncHiddenFormInput?.(t)
87const c=d(e.el)
88if(c&&"validity"in c)for(const l in{...t?.validity})c.validity[l]=t.validity[l]}const k=({component:e})=>(function(e){const{el:t,formEl:n,name:i,value:a}=e,{ownerDocument:o}=t,l=t.querySelectorAll(`input[slot="${r}"]`)
89if(!n||!i)return void l.forEach((e=>{I(e),e.remove()}))
90const s=Array.isArray(a)?a:[a],c=[],d=new Set
91let u
92l.forEach((t=>{const n=s.find((e=>e==t.value))
93null!=n?(d.add(n),C(e,t,n)):c.push(t)})),s.forEach((t=>{if(d.has(t))return
94let n=c.pop()
95n||(n=o.createElement("input"),n.ariaHidden="true",n.slot=r),u||(u=o.createDocumentFragment()),u.append(n),n.addEventListener("input",w),C(e,n,t)})),u&&t.append(u),c.forEach((e=>{I(e),e.remove()}))}(e),i.qy`<slot name=${r}></slot>`)},4544:(e,t,n)=>{n.d(t,{g:()=>i})
96const i=()=>[2,1,1,1,3].map((e=>{let t=""
97for(let n=0;n<e;n++)t+=(65536*(1+Math.random())|0).toString(16).substring(1)
98return t})).join("-")},85069:(e,t,n)=>{n.d(t,{I:()=>u,u:()=>d})
99var i=n(68762),a=n(9314)
100function o(){const{disabled:e}=this
101e||HTMLElement.prototype.click.call(this)}function r(e){e.target.disabled&&e.preventDefault()}const l=["mousedown","mouseup","click"]
102function s(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const c={capture:!0}
103function d(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){e.el.click=o,function(e){e.addEventListener("pointerdown",r,c),l.forEach((t=>e.addEventListener(t,s,c)))}(e.el)}(e);(function(e){delete e.el.click,function(e){e.removeEventListener("pointerdown",r,c),l.forEach((t=>e.removeEventListener(t,s,c)))}(e.el)})(e),e.el.removeAttribute("aria-disabled")}const u=({children:e,disabled:t})=>i.qy`<div class=${(0,a.CP)("interaction-container")} .inert=${t}>${e}</div>`},16919:(e,t,n)=>{n.d(t,{a:()=>w,b:()=>r,c:()=>m,d:()=>p,g:()=>g,l:()=>o})
104var i=n(59225)
105const a="calciteInternalLabelClick",o="calciteInternalLabelConnected",r="calciteInternalLabelDisconnected",l="calcite-label",s=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,f=new Set,h=e=>{const{id:t}=e,n=t&&(0,i.q)(e,{selector:`${l}[for="${t}"]`})
106if(n)return n
107const a=(0,i.k)(e,l)
108return!a||function(e,t){let n
109const i="custom-element-ancestor-check",a=i=>{i.stopImmediatePropagation()
110const a=i.composedPath()
111n=a.slice(a.indexOf(t),a.indexOf(e))}
112return e.addEventListener(i,a,{once:!0}
112),t.dispatchEvent(new CustomEvent(i,{composed:!0,bubbles:!0})),e.removeEventListener(i,a),n.filter((n=>n!==t&&n!==e)).filter((e=>e.tagName?.includes("-"))).length>0}(a,e)?null:a}
113function m(e){if(!e)return
114const t=h(e.el)
115if(c.has(t)&&t===e.labelEl||!t&&f.has(e))return
116const n=E.bind(e)
117if(t){e.labelEl=t
118const i=s.get(t)||[]
119i.push(e),s.set(t,i.sort(v)),c.has(e.labelEl)||(c.set(e.labelEl,b),e.labelEl.addEventListener(a,b)),f.delete(e),document.removeEventListener(o,d.get(e)),u.set(e,n),document.addEventListener(r,n)}else f.has(e)||(n(),document.removeEventListener(r,u.get(e)))}function p(e){if(!e||(f.delete(e),document.removeEventListener(o,d.get(e)),document.removeEventListener(r,u.get(e)),d.delete(e),u.delete(e),!e.labelEl))return
120const t=s.get(e.labelEl)
1211===t.length&&(e.labelEl.removeEventListener(a,c.get(e.labelEl)),c.delete(e.labelEl)),s.set(e.labelEl,t.filter((t=>t!==e)).sort(v)),e.labelEl=null}function v(e,t){return(0,i.l)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function b(e){const t=e.detail.sourceEvent.target,n=s.get(this),i=n.find((e=>e.el===t))
122if(n.includes(i))return
123const a=n[0]
124a.disabled||a.onLabelClick(e)}function y(){f.has(this)&&m(this)}function E(){f.add(this)
125const e=d.get(this)||y.bind(this)
126d.set(this,e),document.addEventListener(o,e)}async function w(e){if(await e.componentOnReady(),s.has(e))return
127const t=e.ownerDocument?.getElementById(e.for)
128t&&requestAnimationFrame((()=>{for(const e of f)if(e.el===t){m(e)
129break}}))}},48913:(e,t,n)=>{n.d(t,{a:()=>a,c:()=>o})
130var i=n(2445)
131async function a(e){await e.componentOnReady()}async function o(e){if(await e.componentOnReady(),(0,i.i)())return e.requestUpdate(),new Promise((e=>requestAnimationFrame((()=>e()))))}},947:(e,t,n)=>{n.r(t),n.d(t,{SegmentedControl:()=>v})
132var i,a=n(2445),o=n(94251),r=n(9314),l=n(59225),s=n(93811),c=n(85069),d=n(16919),u=n(48913),f=n(37946),h=n(59832)
133const m="segmentedControlValidationMessage",p=h.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}.item-wrapper{display:flex;background-color:var(--calcite-color-foreground-1);inline-size:fit-content;outline:1px solid var(--calcite-segmented-control-border-color, var(--calcite-color-border-input));outline-offset:-1px}:host([appearance=outline])>.item-wrapper{background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([layout=vertical])>.item-wrapper{flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full])>.item-wrapper{inline-size:100%;min-inline-size:fit-content}:host([width=full])>.item-wrapper ::slotted(calcite-segmented-control-item){flex:1 1 auto}:host([width=full][layout=vertical])>.item-wrapper ::slotted(calcite-segmented-control-item){justify-content:flex-start}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`
134class v extends r.WF{constructor(){super(),this.items=[],this.appearance="solid",this.disabled=!1,this.layout="horizontal",this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.value=null,this.width="auto",this.calciteSegmentedControlChange=(0,r.lh)({cancelable:!1}),this.listen("calciteInternalSegmentedControlItemChange",this.handleSelected),this.listen("keydown",this.handleKeyDown),this.listen("click",this.handleClick)}async setFocus(){await(0,u.c)(this),(this.selectedItem||this.items[0])?.focus()}connectedCallback(){super.connectedCallback(),(0,d.c)(this),(0,s.c)(this)}load(){}willUpdate(e){(e.has("appearance")&&(this.hasUpdated||"solid"!==this.appearance)||e.has("layout")&&(this.hasUpdated||"horizontal"!==this.layout)||e.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.handleItemPropChange(),e.has("value")&&(this.hasUpdated||null!==this.value)&&this.valueHandler(this.value),e.has("selectedItem")&&this.handleSelectedItemChange(this.selectedItem,e.get("selectedItem"))}updated(){(0,c.u)(this)}loaded(){(0,s.a)(this,this.value)}disconnectedCallback(){super.disconnectedCallback(),(0,d.d)(this),(0,s.d)(this)}valueHandler(e){const{items:t}=this
135t.forEach((t=>t.checked=t.value===e))}handleSelectedItemChange(e,t){if(this.value=e?.value,e===t)return
136const{items:n}=this,i=n.filter((t=>t===e)).pop()
137i?this.selectItem(i):n[0]&&(n[0].tabIndex=0)}handleClick(e){this.disabled||"calcite-segmented-control-item"===e.target.localName&&this.selectItem(e.target,!0)}handleSelected(e){e.preventDefault()
138const t=e.target
139t.checked&&this.selectItem(t),e.stopPropagation()}handleKeyDown(e){const{key:t}=e,{el:n,selectedItem:i}=this
140if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(t))return
141let a=t
142"rtl"===(0,l.g)(n)&&("ArrowRight"===t&&(a="ArrowLeft"),"ArrowLeft"===t&&(a="ArrowRight"))
143const{items:o}=this
144let r=-1
145switch(o.forEach(((e,t)=>{e===i&&(r=t)})),a){case"ArrowLeft":case"ArrowUp":{e.preventDefault()
146const t=r<1?o[o.length-1]:o[r-1]
147return void this.selectItem(t,!0)}case"ArrowRight":case"ArrowDown":{e.preventDefault()
148const t=-1===r?o[1]:o[r+1]||o[0]
149return void this.selectItem(t,!0)}case" ":return e.preventDefault(),void this.selectItem(e.target,!0)
150default:return}}handleItemPropChange(){const{items:e}=this
151e.forEach((e=>{e.appearance=this.appearance,e.layout=this.layout,e.scale=this.scale}))}handleSelectedItem(){const{items:e}=this,t=e.filter((e=>e.checked)).pop()
152t?this.selectItem(t):e[0]&&(e[0].tabIndex=0)}async handleDefaultSlotChange(e){const t=(0,l.s)(e).filter((e=>e.matches("calcite-segmented-control-item")))
153await Promise.all(t.map((e=>e.componentOnReady()))),this.items=t,this.handleSelectedItem(),this.handleItemPropChange()}onLabelClick(){this.setFocus()}async selectItem(e,t=!1){if(e===this.selectedItem)return
154const{items:n}=this
155let i=null
156n.forEach((t=>{const n=t===e;(n&&!t.checked||!n&&t.checked)&&(t.checked=n),t.tabIndex=n?0:-1,n&&(i=t)})),this.selectedItem=i,i&&t&&(await this.updateComplete,this.calciteSegmentedControlChange.emit()),(0,a.i)()&&i&&i.focus()}render(){return this.el.role="radiogroup",o.qy`<div aria-errormessage=${m} .ariaInvalid=${"invalid"===this.status} class=${(0,r.CP)("item-wrapper")}>${(0,c.I)({disabled:this.disabled,children:o.qy`<slot @slotchange=${this.handleDefaultSlotChange}></slot>${(0,s.H)({component:this})}`})}</div>${this.validationMessage&&"invalid"===this.status?(0,f.V)({icon:this.validationIcon,id:m,message:this.validationMessage,scale:this.scale,status:this.status}):null}`}}(i=v).properties={appearance:3,disabled:7,form:3,layout:3,name:3,required:7,scale:3,selectedItem:0,status:3,validationIcon:[3,{converter:r.pf}],validationMessage:1,validity:0,value:1,width:3},i.styles=p,(0,a.c)("calcite-segmented-control",v)}}])

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.