@spteck/react-controls-v2 2.0.9 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e,t,n,r,o,i,a=Object.defineProperty,s=(e,t,n)=>((e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./ILoggingProvider-C4FFlnQ0.js"),c=require("react/jsx-runtime"),u=require("react"),d=require("date-fns-tz"),p=require("@fluentui/react-components"),h=require("date-fns"),m=require("lodash"),f=require("@juggle/resize-observer"),g=require("@emotion/css"),y=require("embla-carousel-react"),v=require("@fluentui/react-icons"),b=require("react-dom"),x=require("@iconify/react"),C=require("@fluentui/react-button"),w=require("@fluentui/react-calendar-compat"),S=require("@fluentui/react-tooltip"),k=require("@fluentui-contrib/react-data-grid-react-window"),P=require("@fluentui/react-components/unstable"),E=require("react-player"),A=require("adaptivecards"),I=require("nano-css"),_=require("markdown-it"),T=require("@fluentui/react-datepicker-compat"),j=require("@fluentui/react-timepicker-compat"),M=require("@fluentui/react/lib/Icons"),N=require("adaptive-expressions"),D=require("adaptivecards-templating"),V=require("@fluentui-contrib/react-chat"),O=require("textarea-caret"),B=require("@fluentui/react-motion-components-preview");function R(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const z=R(c),L=R(u),H=R(b),F=R(A),W=R(_);var $=(e=>(e[e.XXXLarge=1900]="XXXLarge",e[e.ExtraExtraLarge=1400]="ExtraExtraLarge",e[e.ExtraLarge=1200]="ExtraLarge",e[e.Large=992]="Large",e[e.Medium=768]="Medium",e[e.Small=576]="Small",e[e.ExtraSmall=320]="ExtraSmall",e))($||{}),U=(e=>(e.INFO="info",e.ERROR="error",e.SUCCESS="success",e))(U||{});const J=u.createContext(void 0),G=()=>u.useContext(J),q=()=>{const e=G(),t=null==e?void 0:e.loggingProvider;return{log:(e,n=l.LogLevel.Info,r)=>{t?t.log(e,n,r):console.log(e,r)},error:(e,n,r)=>{t?t.error(e,n,r):console.error(e,n,r)},warn:(e,n)=>{t?t.warn(e,n):console.warn(e,n)},info:(e,n)=>{t?t.info(e,n):console.info(e,n)},verbose:(e,n)=>{t?t.verbose(e,n):console.debug(e,n)},LogLevel:l.LogLevel,ErrorType:l.ErrorType}},X=()=>{const e=G(),t=null==e?void 0:e.storageProvider;return{getCachedData:u.useCallback(async e=>{if(t)try{return await t.get(e)}catch(n){return void console.error("Error reading from cache:",n)}else console.warn("Storage provider not available")},[t]),setCachedData:u.useCallback(async(e,n,r)=>{if(t)try{await t.set(e,n,r)}catch(o){console.error("Error writing to cache:",o)}else console.warn("Storage provider not available")},[t]),removeCachedData:u.useCallback(async e=>{if(t)try{await t.remove(e)}catch(n){console.error("Error removing from cache:",n)}else console.warn("Storage provider not available")},[t]),clearCache:u.useCallback(async()=>{if(t)try{await t.clear()}catch(e){console.error("Error clearing cache:",e)}else console.warn("Storage provider not available")},[t])}},Y=(e,t,n=!0)=>{const[r,o]=u.useState(!1),i=u.useRef(null),a=u.useRef(e);u.useEffect(()=>{a.current=e},[e]);const s=u.useCallback(()=>{i.current||(o(!0),n&&a.current(),i.current=setInterval(()=>{a.current()},t))},[t,n]),l=u.useCallback(()=>{i.current&&(clearInterval(i.current),i.current=null,o(!1))},[]);return u.useEffect(()=>()=>{l()},[l]),{startPolling:s,stopPolling:l,isPolling:r}},Z=()=>{const e=L.useCallback((e,t)=>`${e}${t}`,[]),t=L.useCallback(e=>{if(!e)return!1;try{return!!new URL(e)}catch(t){return!1}},[]),n=e=>"/"===e.charAt(0)&&"/"===e.charAt(1)?e.substring(1,e.length):e,r=L.useCallback(e=>{const t=new RegExp(/^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$/);return!!e&&!0===t.test(e)},[]),o=L.useCallback(e=>{if(!e)return"";const t=e.split("/");return t[t.length-1]},[]),i=L.useCallback(e=>{const t=window.location.hostname,n=`https://${t}`;if(e.indexOf(`${n}/sites/`)>-1||e.indexOf(`${n}/teams/`)>-1){const r=e.split(t)[1].split("/")[2];let o=`https://${t}/sites/${r}`;return e.indexOf(`${n}/teams/`)>-1&&(o=`https://${t}/teams/${r}`),o}return n},[]),a=L.useCallback(e=>{let t=e.split(window.location.hostname)[1];return t=n(t),t},[]),s=L.useCallback(e=>encodeURIComponent(e.replace(/[%]/g,"%25")).replace(/[']/g,"%27%27").replace(/[&]/g,"%26").replace(/[#]/g,"%23").replace(/[?]/g,"%3F").replace(/[/]/g,"%2F").replace(/[+]/g,"%2B"),[]),l=L.useCallback(e=>null!=e&&(Object.prototype.hasOwnProperty.call(e,"extraSmall")||Object.prototype.hasOwnProperty.call(e,"small")||Object.prototype.hasOwnProperty.call(e,"medium")||Object.prototype.hasOwnProperty.call(e,"large")||Object.prototype.hasOwnProperty.call(e,"extraLarge")),[]),c=L.useCallback((e,t)=>e[t.toString().toLowerCase()],[]),u=L.useCallback(e=>e>=$.XXXLarge?"XXXLarge":e>=$.ExtraExtraLarge?"ExtraExtraLarge":e>=$.ExtraLarge?"ExtraLarge":e>=Number($.Large)?"Large":e>=Number($.Medium)?"Medium":e>=Number($.Small)?"Small":"ExtraSmall",[]),d=L.useCallback((e,t)=>{const n=u(t),r={ExtraSmall:"xs",Small:"s",Medium:"m",Large:"l",ExtraLarge:"xl",ExtraExtraLarge:"xxl"};let o=e;return l(e)&&(o=c(e,n??"Medium")||r[n]),o},[u,l,c]),h=L.useCallback((e,t,n)=>{if(!e)return"none";if("string"==typeof e&&(/^\d+px$/.test(e)||/^\d+%$/.test(e)))return e;const r=n,o={padding:"spacingHorizontal",vertical:"spacingVertical",horizontal:"spacingHorizontal"};switch(d(e,t)){case"none":return p.tokens[`${o[r]}None`];case"xxs":return p.tokens[`${o[r]}XXS`];case"xs":return p.tokens[`${o[r]}XS`];case"sNudge":return p.tokens[`${o[r]}SNudge`];case"s":return p.tokens[`${o[r]}S`];case"mNudge":return p.tokens[`${o[r]}MNudge`];case"m":default:return p.tokens[`${o[r]}M`];case"l":return p.tokens[`${o[r]}L`];case"xl":return p.tokens[`${o[r]}XL`];case"xxl":return p.tokens[`${o[r]}XXL`];case"xxxl":return p.tokens[`${o[r]}XXXL`]}},[d]),m=L.useCallback((e,t,n)=>{const{verticalSpacing:r,horizontalSpacing:o,paddingLeft:i,paddingRight:a,paddingBottom:s,background:l,width:c,maxWidth:u,height:d,maxHeight:p,marginLeft:m,marginRight:f,marginTop:g,marginBottom:y,paddingTop:v,padding:b,margin:x,styles:C}=e;let w=h(v,t,"padding"),S=h(i,t,"padding"),k=h(a,t,"padding"),P=h(s,t,"padding");const E=h(b,t,"padding");let A=h(m,t,"padding"),I=h(f,t,"padding"),_=h(g,t,"padding"),T=h(y,t,"padding");const j=h(x,t,"padding");E&&(w="none"===w?E:w,S="none"===S?E:S,k="none"===k?E:k,P="none"===P?E:P),j&&(A="none"===A?j:A,I="none"===I?j:I,_="none"===_?j:_,T="none"===T?j:T);return{...C,gap:`${h(r,t,"vertical")} ${h(o,t,"horizontal")}`,paddingTop:w,paddingLeft:S,paddingRight:k,paddingBottom:P,marginLeft:A,marginRight:I,marginTop:_,marginBottom:T,background:l,width:c??void 0,height:d??void 0,maxWidth:u??void 0,maxHeight:p??void 0,overflow:"auto"}},[h]),f=L.useCallback((e,t)=>{const n=u(t);let r=e;return l(e)&&(r=c(e,n??"Medium")||""),r},[u,l,c]);return{getCacheKey:e,validateUrl:t,trimBeginDoubleSlash:n,isValidGUID:r,getPageNameFromUrl:o,getSPSiteAbsoluteUrl:i,getFileServerRelativeUrlFromAbsoluteUrl:a,encodeRestUrl:s,getSpacing:h,getCurrentDevice:u,getBaseStyles:m,getLayoutBreakPoint:f}};function Q(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function K(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function ee(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}function te(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(o.length)}}}function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}var oe={};function ie(e,t){var n,r,o,i,a,s,l,c;re(1,arguments);var u=oe,d=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=function(e){re(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ne(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),h=p.getUTCDay(),m=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}var ae={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},se={date:Q({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Q({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},le={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ce={code:"en-US",formatDistance:function(e,t,n){var r,o=ae[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:se,formatRelative:function(e,t,n,r){return le[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:K({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function ue(e,t,n){re(2,arguments);var r=ie(e,n),o=ie(t,n);return r.getTime()===o.getTime()}var de={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},pe={date:Q({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},he={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},me={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},fe={narrow:me.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:me.wide},ge={code:"de",formatDistance:function(e,t,n){var r,o=null!=n&&n.addSuffix?de[e].withPreposition:de[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},formatLong:pe,formatRelative:function(e,t,n,r){return he[e]},localize:{ordinalNumber:function(e){return Number(e)+"."},era:K({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:me,formattingValues:fe,defaultWidth:"wide"}),day:K({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:ee({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ye={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},ve={date:Q({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},be={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},xe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},Ce={code:"es",formatDistance:function(e,t,n){var r,o=ye[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},formatLong:ve,formatRelative:function(e,t,n,r){return 1!==t.getUTCHours()?xe[e]:be[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:K({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:K({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},we={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Se={date:Q({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ke={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},Pe={code:"fr",formatDistance:function(e,t,n){var r,o=we[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},formatLong:Se,formatRelative:function(e,t,n,r){return ke[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:K({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:ee({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ee={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Ae={date:Q({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ie=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function _e(e){return"'"+Ie[e]+" alle' p"}var Te={lastWeek:function(e,t,n){var r=e.getUTCDay();return ue(e,t,n)?_e(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Ie[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return ue(e,t,n)?_e(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Ie[e]+" prossimo alle' p"}(r)},other:"P"},je={code:"it",formatDistance:function(e,t,n){var r,o=Ee[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},formatLong:Ae,formatRelative:function(e,t,n,r){var o=Te[e];return"function"==typeof o?o(t,n,r):o},localize:{ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:K({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Me={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Ne={date:Q({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:Q({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},De={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Ve={code:"ja",formatDistance:function(e,t,n){var r;n=n||{};var o=Me[e];return r="string"==typeof o?o:1===t?n.addSuffix&&o.oneWithSuffix?o.oneWithSuffix:o.one:n.addSuffix&&o.otherWithSuffix?o.otherWithSuffix.replace("{{count}}",String(t)):o.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+"後":r+"前":r},formatLong:Ne,formatRelative:function(e,t,n,r){return De[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(null==t?void 0:t.unit)){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},era:K({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:K({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Oe={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Be={date:Q({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:Q({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Re={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},ze={code:"ko",formatDistance:function(e,t,n){var r,o=Oe[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},formatLong:Be,formatRelative:function(e,t,n,r){return Re[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(null==t?void 0:t.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:K({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:K({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Le={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},He={date:Q({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Fe={lastWeek:function(e){var t=e.getUTCDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},We={code:"pt",formatDistance:function(e,t,n){var r,o=Le[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+r:"há "+r:r},formatLong:He,formatRelative:function(e,t,n,r){var o=Fe[e];return"function"==typeof o?o(t):o},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:K({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:K({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},$e={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},Ue={date:Q({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:Q({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function Je(e,t,n){var r="eeee p";return ue(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var Ge={lastWeek:Je,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Je,other:"PP p"},qe={ordinalNumber:function(e,t){var n=Number(e);switch(null==t?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:K({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:K({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},Xe={ordinalNumber:te({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})};const Ye={"en-US":ce,"es-ES":Ce,"fr-FR":Pe,"de-DE":ge,"it-IT":je,"pt-BR":We,"pt-PT":We,"ja-JP":Ve,"ko-KR":ze,"zh-CN":{code:"zh-CN",formatDistance:function(e,t,n){var r,o=$e[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r},formatLong:Ue,formatRelative:function(e,t,n,r){var o=Ge[e];return"function"==typeof o?o(t,n,r):o},localize:qe,match:Xe,options:{weekStartsOn:1,firstWeekContainsDate:4}}},Ze=(e,t)=>{const n=t&&Ye[t]||ce;return{getFormatRelative:e=>{try{const t="string"==typeof e?h.parseISO(e):e;return h.formatDistanceToNow(t,{addSuffix:!0,locale:n})}catch(t){return console.error("Error formatting relative time:",t),""}},convertDateToUTC:e=>{try{const t="string"==typeof e?h.parseISO(e):e;return new Date(t.toUTCString())}catch(t){return console.error("Error converting to UTC:",t),new Date}},formatDate:(e,t="PPpp")=>{try{const r="string"==typeof e?h.parseISO(e):e;return h.format(r,t,{locale:n})}catch(r){return console.error("Error formatting date:",r),""}},getTimezoneOffset:()=>(new Date).getTimezoneOffset(),convertToTimezone:(n,r)=>{try{const o="string"==typeof n?h.parseISO(n):n,i=r||e||Intl.DateTimeFormat().resolvedOptions().timeZone;return o.toLocaleString(t||"en-US",{timeZone:i})}catch(o){console.error("Error converting timezone:",o);return("string"==typeof n?new Date(n):n).toString()}}}},Qe="production"!==process.env.NODE_ENV;function Ke(e,t=0){let n=null;return function(...r){const o=this;n&&clearTimeout(n),n=setTimeout(()=>{e.apply(o,r)},t)}}const et=e=>{const{styles:t}=e,{getBaseStyles:n}=Z();return{cardStyles:L.useCallback((r,o)=>({...n(e,r,o),...t}),[n,e,t]),bodyCardDefaultStyles:L.useMemo(()=>({display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"stretch",overflow:"unset"}),[])}},tt=e=>{const{className:t,cardBody:n,cardBodyClassName:r,cardHeader:o,cardHeaderClassName:i,cardHeaderImage:a,cardHeaderAction:s,cardHeaderDescription:l,cardFooterAction:u,cardFooterClassName:d,cardFooterContent:h,cardPreviewImage:m,cardPreviewLogo:g,cardPreviewPosition:y="top"}=e,{cardStyles:v,bodyCardDefaultStyles:b}=et(e),x=L.useRef(null),[C,w]=L.useState(0),[S,k]=L.useState(0);return L.useEffect(()=>{let e;return x.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;w(e),k(n)}}),e.observe(x.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsx("div",{ref:x,children:c.jsxs(p.Card,{className:t,style:v(C,S),...e,children:[m&&"top"===y&&c.jsxs(p.CardPreview,{logo:g,children:[m," "]}),o&&c.jsx(p.CardHeader,{className:i,image:a,header:o,description:l,action:s}),m&&"afterHeader"===y&&c.jsxs(p.CardPreview,{logo:g,children:[m," "]}),n&&c.jsx("div",{className:p.mergeClasses(r),style:b,children:n}),m&&"bottom"===y&&c.jsxs(p.CardPreview,{logo:g,children:[m," "]}),h&&c.jsx(p.CardFooter,{action:u,className:d,children:h})]})})})},nt=e=>{const{cols:t,verticalSpacing:n,horizontalSpacing:r,styles:o,gridItemAutoFlow:i,minItemWidth:a}=e,{getSpacing:s,getCurrentDevice:l,getBaseStyles:c}=Z();return{gridStyles:L.useCallback((u,d)=>{const p=c(e,u,d),h=`${s(n,u,"vertical")} ${s(r,u,"horizontal")}`,m=l(u);let f=`repeat(auto-${i??"fill"}, minmax(${a??250}px, 1fr))`;if(t&&t>0){let e=t??0;switch(m){case"ExtraSmall":e=Math.min(t,1);break;case"Small":e=Math.min(t,2);break;case"Medium":e=Math.min(t,3);break;case"Large":case"ExtraLarge":e=Math.min(t,4);break;case"ExtraExtraLarge":e=Math.min(t,5);break;case"XXXLarge":e=Math.min(t,6);break;default:e=0}f=`repeat(${e}, minmax(auto, 1fr))`}return{...p,display:"grid",gridTemplateColumns:f,gap:h,overflow:"hidden",...o}},[c,e,s,n,r,l,t,o,i,a])}},rt=e=>{const{maxWith:t}=e,{getBaseStyles:n}=Z();return{rootStyles:L.useCallback((r,o)=>({...n(e,r,o),maxWidth:t}),[n,t,e]),layoutGridStyles:g.css({display:"grid",overflow:"hidden"})}},ot={areas:["header header header","sidebar content sidebar","footer footer footer"],columns:"1fr 3fr 1fr",rows:"auto 1fr auto"},it=e=>{const{verticalSpacing:t,horizontalSpacing:n}=e,{getSpacing:r}=Z();return{spaceStyles:L.useCallback(e=>{if(!e)return{};if(n){return{width:r(n,e,"horizontal")}}if(t){return{height:r(t,e,"vertical")}}return{}},[r,n,t])}},at=e=>{const{horizontal:t,horizontalAlign:n,verticalAlign:r,verticalFill:o,wrap:i,columnGap:a,RowGap:s}=e,{getBaseStyles:l}=Z();return{stackStyles:L.useCallback((c,u)=>{const d=r||"start",p=t?n:"start",h=t?{flexFlow:i?"row wrap":"row nowrap",height:"100%"}:{height:"100%",maxHeight:"100%"},m=l(e,c,u);return{columnGap:a,rowGap:s,display:"flex",flexDirection:t?"row":"column",alignItems:d,justifyContent:p,...h,height:o?"100%":m.height,...m,...e.styles}},[l,t,n,e,r,o,i])}},st=e=>{const{children:t,className:n}=e,{stackStyles:r}=at(e),o=L.useRef(null),[i,a]=L.useState(0),[s,l]=L.useState(0);return L.useEffect(()=>{let e;return o.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;a(e),l(n)}}),e.observe(o.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsx("div",{className:n,style:r(i,s),ref:o,children:t})})},lt=e=>{const{styles:t}=e,{getBaseStyles:n}=Z();return{centerStyles:L.useCallback((r,o)=>({...n(e,r,o),...t,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),[n,e,t]),childrenStyles:g.css({justifyContent:"center",textAlign:"center"})}},ct=e=>{const{className:t,children:n}=e,r=L.useRef(null),[o,i]=L.useState(0),[a,s]=L.useState(0),{centerStyles:l}=lt(e);return L.useEffect(()=>{const e=((e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}})(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;i(e),s(n)}},200),t=new f.ResizeObserver(t=>{e(t)});return r.current&&t.observe(r.current),()=>{t.disconnect()}},[]),c.jsx("div",{id:"center",className:t,style:{...l(o,a),display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},ref:r,children:n})},ut=e=>{const{maxWith:t}=e,{getBaseStyles:n}=Z();return{containerStyles:L.useCallback((r,o)=>{if(!r||!o)return{};return{...n(e,r,o),maxWidth:t}},[n,t,e])}},dt=e=>{const[t,n]=u.useState(!0),[r,o]=u.useState(!0),i=u.useCallback(()=>{e&&e.scrollPrev()},[e]),a=u.useCallback(()=>{e&&e.scrollNext()},[e]),s=u.useCallback(e=>{n(!e.canScrollPrev()),o(!e.canScrollNext())},[]);return u.useEffect(()=>{e&&(s(e),e.on("reInit",s),e.on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:i,onNextButtonClick:a}},pt=(e,t)=>{const{getCurrentDevice:n}=Z(),r=L.useCallback(()=>{let e="95%";switch(n(t)){case"Medium":e="45%";break;case"Large":e="calc(95% / 4)";break;case"ExtraLarge":e="calc(95% / 5)";break;default:e="95%"}return e},[t,n]),o=L.useCallback(()=>{const e=n(t);let r=p.tokens.spacingVerticalM;switch(e){case"Medium":default:r=p.tokens.spacingVerticalM;break;case"Large":r=p.tokens.spacingVerticalL;break;case"ExtraLarge":r=p.tokens.spacingVerticalXL}return r},[t,n]);return{enableControls:g.css({display:"flex",justifyContent:"space-between",alignItems:"stretch",gap:10,padding:5}),embla__viewport:g.css({overflow:"hidden",paddingTop:"10px",paddingBottom:"20px"}),embla__container:g.css({backfaceVisibility:"hidden",display:"flex",touchAction:"pan-y"}),embla:g.css({".embla":{}}),embla__slide:g.css({minWidth:0,flex:`0 0 ${r()}`,paddingLeft:`${o()}`}),embla__buttons:g.css({display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:0,alignItems:"center"})}},ht=e=>{const{styles:t}=e,{getBaseStyles:n}=Z();return{carouselStyles:L.useCallback((r,o)=>({...n(e,r,o),...t}),[n,e,t])}},mt=p.makeStyles({titleStyles:{display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",height:"25px"}}),ft=({anchorPoint:e,isOpen:t,onClose:n,excludeRefs:r,children:o,theme:i})=>{const a=u.useRef(null),[s,l]=u.useState(e),d={card:g.css({position:"absolute",zIndex:1e3})};u.useLayoutEffect(()=>{if(a.current){const t=a.current.getBoundingClientRect();let n=e.left,r=e.top;n+t.width>window.innerWidth&&(n=window.innerWidth-t.width-10),r+t.height>window.innerHeight&&(r=window.innerHeight-t.height-10),l({left:n,top:r})}},[e,o]);const h=u.useCallback(e=>{const t=e.target;if(a.current&&!a.current.contains(t)){if(r&&r.some(e=>e.current&&e.current.contains(t)))return;n()}},[n,r]);return u.useEffect(()=>{if(t){document.addEventListener("mousedown",h);const e=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}return()=>{document.removeEventListener("mousedown",h)}},[t,h]),t?b.createPortal(c.jsx(p.FluentProvider,{theme:i||p.teamsLightTheme,children:c.jsx(p.Card,{ref:a,className:d.card,style:{top:s.top,left:s.left},children:o})}),document.body):null},gt={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},yt=u.memo(({direction:e="vertical",justifyContent:t="flex-start",alignItems:n="stretch",gap:r,columnGap:o,rowGap:i,margin:a,padding:s,marginTop:l,marginBottom:u,marginLeft:d,marginRight:h,paddingTop:m,paddingBottom:f,paddingLeft:y,paddingRight:v,width:b,height:x,wrap:C=!1,children:w,style:S,className:k,overflow:P,background:E})=>{const A=g.css({display:"flex",flexDirection:"horizontal"===e?"row":"column",justifyContent:t,alignItems:n,gap:r&&gt[r]?gt[r]:r,columnGap:o&&gt[o]?gt[o]:o,rowGap:i&&gt[i]?gt[i]:i,margin:a&&gt[a]?gt[a]:a,padding:s&&gt[s]?gt[s]:s,marginTop:l&&gt[l]?gt[l]:l,marginBottom:u&&gt[u]?gt[u]:u,marginLeft:d&&gt[d]?gt[d]:d,marginRight:h&&gt[h]?gt[h]:h,paddingTop:m&&gt[m]?gt[m]:m,paddingBottom:f&&gt[f]?gt[f]:f,paddingLeft:y&&gt[y]?gt[y]:y,paddingRight:v&&gt[v]?gt[v]:v,width:b,height:x,overflow:P,flexWrap:C?"wrap":"nowrap",backgroundColor:E,...S});return c.jsx("div",{className:p.mergeClasses(k,A),children:w})}),vt=p.makeStyles({labelContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",...p.shorthands.gap("6px")},iconStyles:{width:"26px"},item:{paddingLeft:"15px"}}),bt=e=>{const{label:t,icon:n,isRequired:r}=e,o=vt();return c.jsx(c.Fragment,{children:c.jsxs("div",{className:o.labelContainer,children:[n&&L.isValidElement(n)?n:c.jsx(x.Icon,{icon:n,className:o.iconStyles,width:"20px",height:"20px",color:p.tokens.colorBrandForeground1}),c.jsx(p.Caption1,{style:{color:p.tokens.colorBrandForeground1},children:t}),c.jsx(p.Caption1,{style:{color:p.tokens.colorPaletteRedForeground1},children:r?" *":""})]})})},xt=p.makeStyles({root:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},spinner:{width:"100px",height:"100px"}}),Ct={xs:p.tokens.fontSizeBase200,s:p.tokens.fontSizeBase300,m:p.tokens.fontSizeBase400,l:p.tokens.fontSizeBase500,xl:p.tokens.fontSizeBase600,xxl:p.tokens.fontSizeHero700},wt={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},St={regular:p.tokens.fontWeightRegular,semibold:p.tokens.fontWeightSemibold,bold:p.tokens.fontWeightBold},kt=e=>{var t,n;const{onSelected:r,value:o,styles:i,options:a,apparence:s,shape:l,label:u}=e,d=L.useRef(),[h,m]=L.useState(o??a[0]),[f,g]=L.useState({option:[o?null==o?void 0:o.key:null==(t=null==a?void 0:a[0])?void 0:t.key]}),y=L.useRef(null);L.useEffect(()=>{var e;void 0!==o&&(m(o),g({option:[o.key]})),d.current=null==(e=a.find(e=>{var t;return e.key===((null==o?void 0:o.key)??(null==(t=a[0])?void 0:t.key))}))?void 0:e.icon},[o]);const[v,b]=L.useState(!1),x=L.useCallback((e,t)=>{b(t.open)},[]),C=L.useCallback(e=>(null==e?void 0:e.text)??"",[]),w=L.useCallback((e,{name:t,checkedItems:n})=>{var o;if("option"===t){const e=n[0];m(a.find(t=>t.key===e)),g({option:n}),d.current=null==(o=a.find(t=>t.key===e))?void 0:o.icon,r(a.find(t=>t.key===e))}},[a,r]);return c.jsx(c.Fragment,{children:c.jsx(p.Field,{label:u,style:i,ref:y,children:c.jsxs(p.Menu,{open:v,onOpenChange:x,children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:l??"circular",icon:d.current,appearance:s??"secondary",children:C(h)??"No data available"})}),c.jsx(p.MenuPopover,{children:c.jsx(p.MenuList,{onCheckedValueChange:w,checkedValues:f,style:{width:null==(n=y.current)?void 0:n.offsetWidth},children:a.map(e=>c.jsx(p.MenuItemRadio,{name:"option",value:e.key,icon:e.icon,disabled:e.disabled,children:C(e)},e.key))})})]})})})},Pt=()=>({styles:{container:g.css({display:"flex",alignItems:"center",alignContent:"center",overflow:"hidden",whiteSpace:"nowrap",padding:"8px",backgroundColor:"transparent"}),breadcrumbItem:g.css({minWidth:"fit-content",padding:0,margin:"0px"}),separator:g.css({marginRight:"8px"})},getStyles:(e,t)=>{const{icon:n}=e;switch(t){case"small":return g.css({fontSize:"12px",padding:"4px",paddingLeft:n?"0px":"4px"});case"medium":default:return g.css({fontSize:"14px",padding:"6px",paddingLeft:n?"0px":"6px"});case"large":return g.css({fontSize:"16px",padding:"8px",paddingLeft:n?"0px":"8px"});case"current":return g.css({fontWeight:p.tokens.fontWeightBold,cursor:"default",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word",fontFamily:p.tokens.fontFamilyBase})}}}),Et=({items:e,theme:t,size:n="medium"})=>{const[r,o]=u.useState(!1),i=u.useRef(null),a=u.useRef(null),[s,l]=u.useState({top:0,left:0,position:"absolute"}),{getStyles:d}=Pt();return u.useEffect(()=>{const e=e=>{var t,n;(null==(t=i.current)?void 0:t.contains(e.target))||(null==(n=a.current)?void 0:n.contains(e.target))||!r||o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),c.jsxs(c.Fragment,{children:[c.jsx(p.Button,{ref:i,icon:c.jsx(v.MoreHorizontalRegular,{}),appearance:"transparent",onClick:()=>{var e,t;if(i.current){const n=i.current.getBoundingClientRect(),r=window.innerWidth,s=window.innerHeight,c=(null==(e=a.current)?void 0:e.offsetWidth)||200,u=(null==(t=a.current)?void 0:t.offsetHeight)||100;let d=n.bottom+window.scrollY,p=n.left+window.scrollX;p+c>r&&(p=r-c-10),d+u>s&&(d=n.top+window.scrollY-u),l({top:d,left:p,position:"absolute"}),o(e=>!e)}}}),r&&b.createPortal(c.jsx(p.FluentProvider,{theme:t,children:c.jsx(p.Card,{ref:a,style:{...s,zIndex:1e3,padding:"8px",minWidth:"150px"},children:e.map((e,t)=>c.jsx(p.Button,{icon:e.icon?e.icon:null,appearance:"transparent",onClick:()=>{var t;null==(t=e.onClick)||t.call(e),o(!1)},children:c.jsx(p.Text,{className:d(e,n),children:e.label})},`overflow-${t}`))})}),document.body)]})},At=()=>{const e=L.useCallback((e,t)=>{const n=new Date(e),r=new Date(t),o=2*n.getHours()+(n.getMinutes()>=1?1:0),i=2*r.getHours()+(r.getMinutes()>=1?2:0);return{spanSlots:i-o,startSlot:o,endSlot:i}},[]),t=L.useCallback((e,t=20,n=10)=>{const r=(e,t,n)=>{const r=t*Math.min(n,100-n)/100,o=t=>{const o=(t+e/30)%12,i=n-r*Math.max(Math.min(o-3,9-o,1),-1);return Math.round(255*i).toString(16).padStart(2,"0")};return`#${o(0)}${o(8)}${o(4)}`},{h:o,s:i,l:a}=(e=>{const t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,o=Math.max(t,n,r),i=Math.min(t,n,r),a=o-i;let s=0,l=0;const c=(o+i)/2;if(0!==a){switch(l=c>.5?a/(2-o-i):a/(o+i),o){case t:s=(n-r)/a+(n<r?6:0);break;case n:s=(r-t)/a+2;break;case r:s=(t-n)/a+4}s/=6}return{h:360*s,s:100*l,l:100*c}})(e);return{lightColor:r(o,i,Math.min(a+t,100)),hoverColor:r(o,i,Math.min(a+n,100))}},[]),n=L.useCallback(e=>{const t={backgroundColor:p.tokens.colorNeutralBackground3,hoverColor:p.tokens.colorNeutralBackground3Hover};return{"no category":t,meeting:{backgroundColor:p.tokens.colorPaletteBlueBackground2,hoverColor:p.tokens.colorPaletteBlueBorderActive},appointment:{backgroundColor:p.tokens.colorPaletteGreenBackground2,hoverColor:p.tokens.colorPaletteGreenBorderActive},task:{backgroundColor:p.tokens.colorPaletteRedBackground2,hoverColor:p.tokens.colorPaletteRedBorderActive},deadline:{backgroundColor:p.tokens.colorPaletteYellowBackground2,hoverColor:p.tokens.colorPaletteYellowBorderActive},holiday:{backgroundColor:p.tokens.colorPalettePurpleBackground2,hoverColor:p.tokens.colorPalettePurpleBorderActive},celebration:{backgroundColor:p.tokens.colorPaletteDarkOrangeBackground2,hoverColor:p.tokens.colorPaletteDarkOrangeBorderActive},reminder:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},workshop:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},webinar:{backgroundColor:p.tokens.colorPaletteMagentaBackground2,hoverColor:p.tokens.colorPaletteMagentaBorderActive},conference:{backgroundColor:p.tokens.colorPaletteBrownBackground2,hoverColor:p.tokens.colorPaletteBrownBorderActive}}[e.toLowerCase()]||t},[]),r=L.useCallback(e=>{let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);const n=(16777215&t).toString(16).toUpperCase();return`#${"00000".substring(0,6-n.length)+n}`},[]);return{getSpanSlots:e,generateLightAndHoverColors:t,getEventColors:n,generateColor:r,getCalendarColors:L.useCallback(e=>{const t={beige:{backgroundColor:p.tokens.colorPaletteBeigeBackground2,hoverColor:p.tokens.colorPaletteBeigeBorderActive},blue:{backgroundColor:p.tokens.colorPaletteBlueBackground2,hoverColor:p.tokens.colorPaletteBlueBorderActive},brown:{backgroundColor:p.tokens.colorPaletteBrownBackground2,hoverColor:p.tokens.colorPaletteBrownBorderActive},gold:{backgroundColor:p.tokens.colorPaletteGoldBackground2,hoverColor:p.tokens.colorPaletteGoldBorderActive},lavender:{backgroundColor:p.tokens.colorPaletteLavenderBackground2,hoverColor:p.tokens.colorPaletteLavenderBorderActive},magenta:{backgroundColor:p.tokens.colorPaletteMagentaBackground2,hoverColor:p.tokens.colorPaletteMagentaBorderActive},navy:{backgroundColor:p.tokens.colorPaletteNavyBackground2,hoverColor:p.tokens.colorPaletteNavyBorderActive},pink:{backgroundColor:p.tokens.colorPalettePinkBackground2,hoverColor:p.tokens.colorPalettePinkBorderActive},plum:{backgroundColor:p.tokens.colorPalettePlumBackground2,hoverColor:p.tokens.colorPalettePlumBorderActive},purple:{backgroundColor:p.tokens.colorPalettePurpleBackground2,hoverColor:p.tokens.colorPalettePurpleBorderActive},red:{backgroundColor:p.tokens.colorPaletteRedBackground2,hoverColor:p.tokens.colorPaletteRedBorderActive},teal:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},anchor:{backgroundColor:p.tokens.colorPaletteAnchorBackground2,hoverColor:p.tokens.colorPaletteAnchorBorderActive},"dark-red":{backgroundColor:p.tokens.colorPaletteDarkRedBackground2,hoverColor:p.tokens.colorPaletteDarkRedBorderActive},cranberry:{backgroundColor:p.tokens.colorPaletteCranberryBackground2,hoverColor:p.tokens.colorPaletteCranberryBorderActive},pumpkin:{backgroundColor:p.tokens.colorPalettePumpkinBackground2,hoverColor:p.tokens.colorPalettePumpkinBorderActive},peach:{backgroundColor:p.tokens.colorPalettePeachBackground2,hoverColor:p.tokens.colorPalettePeachBorderActive},marigold:{backgroundColor:p.tokens.colorPaletteMarigoldBackground2,hoverColor:p.tokens.colorPaletteMarigoldBorderActive},brass:{backgroundColor:p.tokens.colorPaletteBrassBackground2,hoverColor:p.tokens.colorPaletteBrassBorderActive},forest:{backgroundColor:p.tokens.colorPaletteForestBackground2,hoverColor:p.tokens.colorPaletteForestBorderActive},seafoam:{backgroundColor:p.tokens.colorPaletteSeafoamBackground2,hoverColor:p.tokens.colorPaletteSeafoamBorderActive},"dark-green":{backgroundColor:p.tokens.colorPaletteDarkGreenBackground2,hoverColor:p.tokens.colorPaletteDarkGreenBorderActive},"light-teal":{backgroundColor:p.tokens.colorPaletteLightTealBackground2,hoverColor:p.tokens.colorPaletteLightTealBorderActive},steel:{backgroundColor:p.tokens.colorPaletteSteelBackground2,hoverColor:p.tokens.colorPaletteSteelBorderActive},"royal-blue":{backgroundColor:p.tokens.colorPaletteRoyalBlueBackground2,hoverColor:p.tokens.colorPaletteRoyalBlueBorderActive},cornflower:{backgroundColor:p.tokens.colorPaletteCornflowerBackground2,hoverColor:p.tokens.colorPaletteCornflowerBorderActive},grape:{backgroundColor:p.tokens.colorPaletteGrapeBackground2,hoverColor:p.tokens.colorPaletteGrapeBorderActive},lilac:{backgroundColor:p.tokens.colorPaletteLilacBackground2,hoverColor:p.tokens.colorPaletteLilacBorderActive},mink:{backgroundColor:p.tokens.colorPaletteMinkBackground2,hoverColor:p.tokens.colorPaletteMinkBorderActive},platinum:{backgroundColor:p.tokens.colorPalettePlatinumBackground2,hoverColor:p.tokens.colorPalettePlatinumBorderActive}};return t[e]||t["royal-blue"]},[]),formatDate:L.useCallback((e,t)=>{const n=h.parseISO(e);return h.format(n,t)},[])}},It={start:"Start",end:"End",location:"Location",attendees:"Attendees",details:"Details"},_t="32px",Tt=({fieldLabel:e,fieldValue:t,icon:n})=>c.jsxs(st,{children:[c.jsx(bt,{label:e,icon:n}),c.jsx(st,{paddingLeft:_t,children:c.jsx(p.Body1,{children:t})})]}),jt=e=>{const{event:t,strings:n=It}=e,{title:r,start:o,end:i,location:a,category:s,attendees:l,weblink:u}=t,{styles:d}={styles:{banner:g.css({display:"flex",justifyContent:"center",alignContent:"center",alignItems:"center",padding:"5px 10px 0px 10px"}),fieldContainer:g.css({paddingLeft:_t}),title:g.css({lineClamp:2,overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word",WebkitLineClamp:2})}},{formatDate:h}=At(),m=h(o,"PPp"),f=h(i,"PPp"),y=p.partitionAvatarGroupItems({items:(null==l?void 0:l.map(e=>e.id))||[]}),v=L.useCallback(e=>(null==l?void 0:l.find(t=>t.id===e))||void 0,[l]),b=L.useCallback(()=>c.jsxs(st,{children:[c.jsx(bt,{label:n.attendees,icon:"ph:users-three"}),c.jsx(st,{paddingLeft:_t,children:c.jsxs(p.AvatarGroup,{layout:"stack",children:[y.inlineItems.map(e=>{var t,n;return c.jsx(p.AvatarGroupItem,{name:null==(t=v(e))?void 0:t.name,image:{src:null==(n=v(e))?void 0:n.imageUrl}},e)}),y.overflowItems&&c.jsx(p.AvatarGroupPopover,{children:y.overflowItems.map(e=>{var t,n;return c.jsx(p.AvatarGroupItem,{name:null==(t=v(e))?void 0:t.name,image:{src:null==(n=v(e))?void 0:n.imageUrl}},e)})})]})})]}),[y,v,n.attendees]);return c.jsx(c.Fragment,{children:c.jsx(tt,{appearance:"subtle",padding:"m",paddingTop:"s",width:"250px",cardBody:c.jsxs(st,{RowGap:10,children:[c.jsx("div",{className:d.banner,children:c.jsx(p.Subtitle1,{className:d.title,children:r})}),c.jsx(p.Divider,{}),s&&c.jsx(st,{horizontal:!0,horizontalAlign:"end",width:"100%",children:c.jsx(p.Badge,{appearance:"filled",children:s})}),c.jsx(Tt,{fieldLabel:n.start,fieldValue:m,icon:"mingcute:time-line"}),c.jsx(Tt,{fieldLabel:n.end,fieldValue:f,icon:"mingcute:time-line"}),c.jsx(Tt,{fieldLabel:n.location,fieldValue:a,icon:"mingcute:location-line"}),c.jsx(b,{})]}),cardFooterContent:c.jsx(st,{horizontal:!0,horizontalAlign:"end",width:"100%",children:c.jsx(p.Button,{appearance:"subtle",onClick:()=>{window.open(u,"_blank")},children:n.details})})})})},Mt=()=>({styles:{calendarWrapper:g.css({padding:"20px",paddingTop:"10px",overflow:"auto",flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gridTemplateRows:"auto",gridAutoRows:"minmax(100px, 1fr)",gap:"1px",width:"calc(100% - 40px)"}),header:g.css({display:"flex",justifyContent:"start",gap:"10px",alignItems:"center",padding:"16px"}),dayHeader:g.css({textAlign:"start",padding:"8px",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),day:g.css({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:`1px solid ${p.tokens.colorNeutralStroke1}`,backgroundColor:p.tokens.colorNeutralBackground1,position:"relative"}),otherMonthDay:g.css({color:p.tokens.colorNeutralStroke2,backgroundColor:p.tokens.colorNeutralBackground2}),cardDay:g.css({height:"100%",minHeight:100,borderRadius:0,overflow:"hidden !important",rowGap:5}),cardDayOnHover:g.css({":hover":{backgroundColor:p.tokens.colorNeutralBackground2}}),currentDay:g.css({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),currentDayLabel:g.css({color:p.tokens.colorBrandBackground,fontWeight:600}),eventCard:g.css({display:"flex",flexDirection:"column",alignItems:"flex-start",zIndex:1}),eventContainer:g.css({display:"flex",flexDirection:"column",overflowY:"auto",paddingTop:"5px",paddingBottom:"5px",paddingLeft:"5px",paddingRight:"5px","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),eventCardWeekView:g.css({backgroundColor:p.tokens.colorBrandBackground,color:p.tokens.colorNeutralForegroundOnBrand,borderRadius:"4px",padding:"4px",margin:"2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",height:"100%"}),popoverContent:g.css({padding:0,borderTopWidth:20,borderTopStyle:"solid"}),cardMonthTitle:g.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"})},applyEventHouverColorClass:(e,t)=>g.css({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}})}),Nt=e=>{const t=p.useId(),{events:n,date:r,onCardHoverChange:o,columnHeight:i}=e,{styles:a,applyEventHouverColorClass:s}=Mt(),l=L.useRef(null),{getEventColors:u,getCalendarColors:d}=At(),m=L.useCallback(e=>{o&&o(!0,e)},[o]),f=L.useCallback(e=>{o&&o(!1,e)},[o]),g=L.useCallback(e=>{var t;null==(t=l.current)||t.setTarget(e)},[l]),y=L.useCallback((e,t,n)=>c.jsx("div",{ref:g,children:c.jsx(tt,{className:p.mergeClasses(a.eventCard,s(n.backgroundColor,n.backgroundColor)),paddingTop:"4px",paddingBottom:"4px",paddingLeft:"8px",paddingRight:"8px",marginTop:0===e?"0px":"5px",cardHeader:c.jsx(p.Caption1,{className:a.cardMonthTitle,children:t.title}),onMouseEnter:()=>m(t.title),onMouseLeave:()=>f(t.title)},e)}),[m,f,s]),v=L.useCallback((e,n,r)=>c.jsxs(p.Popover,{withArrow:!0,mouseLeaveDelay:30,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[c.jsx(p.PopoverTrigger,{children:y(n,e,r)}),c.jsx(p.PopoverSurface,{"aria-labelledby":t,className:p.mergeClasses(a.popoverContent),children:c.jsx(jt,{event:e})})]},n),[y,t,a.popoverContent]);return n&&(null==n?void 0:n.length)?c.jsx("div",{style:{height:i},className:a.eventContainer,children:n.map((e,t)=>{var n;const o=h.startOfDay(new Date(e.start)),i=h.endOfDay(new Date(e.end));if(!h.isWithinInterval(r,{start:o,end:i}))return null;let s;s=e.color?d(e.color):u(e.category);const l=null==(n=e.onRenderInMonthView)?void 0:n.call(e,e);return L.isValidElement(l)?L.cloneElement(l,{className:p.mergeClasses(l.props.className,a.eventCard)}):e.enableOnHouver?v(e,t,s):y(t,e,s)})}):c.jsx(c.Fragment,{children:" "})},Dt=e=>{const{day:t,currentMonth:n,events:r,date:o,columnHeight:i,onDayClick:a}=e,{styles:s}=Mt(),l=new Date,[u,d]=L.useState(!1),m=L.useMemo(()=>h.isSameDay(o,l),[o,l]),f=L.useMemo(()=>c.jsx(st,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",paddingLeft:"m",paddingRight:"m",children:c.jsxs(p.Body2,{className:s.currentDayLabel,children:[t," ",l.toLocaleString("default",{month:"short"})]})}),[t]),g=L.useCallback(e=>{d(e)},[]);return c.jsx(c.Fragment,{children:c.jsx(tt,{onClick:a?()=>a(o):void 0,className:p.mergeClasses(s.cardDay,n?"":s.otherMonthDay,m?s.currentDay:"",u?"":s.cardDayOnHover),cardHeader:m?f:c.jsx(st,{horizontal:!0,paddingLeft:"m",paddingRight:"m",children:c.jsx(p.Body2,{children:t})}),paddingTop:"m",paddingBottom:"m",paddingLeft:"0px",paddingRight:"0px",cardBody:c.jsx(Nt,{events:r,date:o,onCardHoverChange:g,columnHeight:i-60})})})},Vt=()=>({styles:{container:g.css({display:"flex",flexDirection:"column",width:"calc(100% - 40px)",height:"100vh",overflow:"hidden",padding:"20px"}),header:g.css({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),weekGrid:g.css({display:"grid",gridTemplateColumns:"80px repeat(7, 1fr)",gridTemplateRows:"50px 40px repeat(48, 33px)",height:"fit-content",overflowY:"auto",border:`1px solid ${p.tokens.colorNeutralStroke1}`,maxHeight:"calc(100vh - 100px)",scrollbarWidth:"thin",scrollbarColor:`${p.tokens.colorBrandBackground} ${p.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandBackground,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorBrandBackgroundHover}}),blankHeader:g.css({gridColumn:"1",backgroundColor:p.tokens.colorNeutralBackground3,borderBottom:`3px solid ${p.tokens.colorNeutralStroke3}`,position:"sticky",top:0,zIndex:10}),timeColumn:g.css({gridColumn:"1",gridRow:"3 / span 49",display:"flex",flexDirection:"column",backgroundColor:p.tokens.colorNeutralBackground1,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`}),timeCell:g.css({height:"100%",display:"flex",alignItems:"center",fontSize:"12px",color:p.tokens.colorNeutralForeground3,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,justifyContent:"center"}),fullDayRow:g.css({gridRow:"2",display:"grid",gridTemplateColumns:"80px repeat(7, 1fr)",gap:"0",padding:"0",backgroundColor:p.tokens.colorNeutralBackground2,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayLabel:g.css({gridColumn:"1",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",color:p.tokens.colorBrandBackground,padding:"5px",borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayCell:g.css({borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,display:"flex",flexDirection:"row",gap:"0px",padding:"4px",borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`,overflow:"hidden"}),fullDayEvent:g.css({flex:"1 1 auto",minWidth:"24px",height:"24px",padding:"4px 8px",backgroundColor:p.tokens.colorBrandBackground,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}),dayHeaderCell:g.css({textAlign:"center",backgroundColor:p.tokens.colorNeutralBackground2,padding:"8px",fontWeight:"bold",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,position:"sticky",top:0,zIndex:10}),todayHeaderCell:g.css({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),eventCard:g.css({padding:2,alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",overflow:"hidden",":hover":{pointerEvents:"auto",cursor:"pointer"}}),event:g.css({height:"100%",backgroundColor:p.tokens.colorBrandBackground,borderRadius:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",":hover":{pointerEvents:"auto",cursor:"pointer"}}),dayCell:g.css({borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,position:"relative",overflow:"visible",FlexDirection:"column",gap:"4px"}),currentTimeIndicator:g.css({position:"absolute",left:0,height:"2px",backgroundColor:p.tokens.colorPaletteRedBorderActive,width:"100%",zIndex:1}),currentHalfHourCell:g.css({border:`2px solid ${p.tokens.colorPaletteRedBorderActive}`}),eventTitle:g.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"}),popoverContent:g.css({padding:0,borderTopWidth:20,borderTopStyle:"solid"})},applyEventHouverColorClass:u.useCallback((e,t)=>g.css({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}}),[p.tokens.colorBrandBackground,p.tokens.colorBrandBackgroundHover]),appyDynamicStyles:u.useCallback((e,t,n,r)=>g.css({flex:`0 0 calc(100% / ${t})`,height:n*r+"px",left:10*e+"%",width:`calc(${100-10*e}% - 8px)`,margin:4,marginTop:0,marginBottom:0}),[])}),Ot={timeSeparator:" - ",hourSuffix:"H"},Bt=({event:e,colors:t,spanSlots:n,rowHeight:r,eventIndex:o,eventCount:i,strings:a=Ot})=>{const s=p.useId(),{styles:l,applyEventHouverColorClass:u,appyDynamicStyles:d}=Vt(),h=L.useRef(null),{formatDate:m}=At(),f=L.useMemo(()=>c.jsx("div",{children:c.jsxs(st,{columnGap:4,verticalAlign:"center",children:[c.jsx(p.Caption1Strong,{className:l.eventTitle,children:e.title}),c.jsxs(st,{columnGap:4,horizontal:!0,verticalAlign:"center",horizontalAlign:"start",children:[c.jsxs(p.Caption1,{children:[m(e.start,"HH:mm"),a.hourSuffix]}),a.timeSeparator,c.jsxs(p.Caption1,{children:[m(e.end,"HH:mm"),a.hourSuffix]})]})]})}),[e,m,a,l.eventTitle]);return c.jsx(p.Card,{ref:h,className:p.mergeClasses(l.eventCard,u(t.backgroundColor,t.backgroundColor),d(o,i,r,n)),children:e.enableOnHouver?c.jsxs(p.Popover,{withArrow:!0,mouseLeaveDelay:50,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[c.jsx(p.PopoverTrigger,{children:f}),c.jsx(p.PopoverSurface,{"aria-labelledby":s,className:p.mergeClasses(l.popoverContent),children:c.jsx(jt,{event:e})})]}):f},e.id)},Rt=({event:e,eventCount:t,spanSlots:n,rowHeight:r,eventIndex:o,view:i})=>{var a,s;const{styles:l,appyDynamicStyles:u}=Vt(),{getEventColors:d,getCalendarColors:h}=At(),m=e.color?h(e.color):d(e.category),f="day"===i?null==(a=e.onRenderInDayView)?void 0:a.call(e,e):null==(s=e.onRenderInWeekView)?void 0:s.call(e,e);return L.isValidElement(f)?L.cloneElement(f,{event:e,className:p.mergeClasses(f.props.className,l.eventCard,u(o,t,r,n)),style:{...f.props.style}}):c.jsx(Bt,{event:e,colors:m,spanSlots:n,rowHeight:r,eventIndex:o,eventCount:t},e.id)};for(var zt,Lt=[],Ht=0;Ht<256;++Ht)Lt.push((Ht+256).toString(16).slice(1));var Ft=new Uint8Array(16);function Wt(){if(!zt&&!(zt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zt(Ft)}const $t={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ut(e,t,n){if($t.randomUUID&&!e)return $t.randomUUID();var r=(e=e||{}).random||(e.rng||Wt)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(Lt[e[t+0]]+Lt[e[t+1]]+Lt[e[t+2]]+Lt[e[t+3]]+"-"+Lt[e[t+4]]+Lt[e[t+5]]+"-"+Lt[e[t+6]]+Lt[e[t+7]]+"-"+Lt[e[t+8]]+Lt[e[t+9]]+"-"+Lt[e[t+10]]+Lt[e[t+11]]+Lt[e[t+12]]+Lt[e[t+13]]+Lt[e[t+14]]+Lt[e[t+15]]).toLowerCase()}(r)}const Jt=e=>{const t=u.useCallback(e=>e.map(e=>({...e,id:e.id||Ut()})),[]),n=u.useCallback(t=>new Date(new Date(t).toLocaleString(void 0,{timeZone:e})),[e]),r=u.useCallback((e,r,o)=>{const i=t(e),a=new Date(r,o+1,0).getDate(),s={};for(let t=1;t<=a;t++){const e=new Date(r,o,t),n=h.format(e,"yyyy-MM-dd");s[n]=[]}return i.forEach(e=>{const t=n(e.start),r=n(e.end),o=new Date(t);for(;o<=r;){const t=h.format(o,"yyyy-MM-dd");s[t]&&s[t].push(e),o.setDate(o.getDate()+1)}}),s},[n]),o=u.useCallback((e,r)=>{const o=[],i=n(r),a=t(e);for(let t=0;t<7;t++){const e=new Date(i);e.setDate(i.getDate()+t);const r=h.format(e,"yyyy-MM-dd"),s=Array.from({length:48},(e,t)=>({time:`${String(Math.floor(t/2)).padStart(2,"0")}:${t%2==0?"00":"30"}`,events:[]})),l=[];a.forEach(e=>{const t=n(e.start),o=n(e.end);if(e.isFullDay)h.format(t,"yyyy-MM-dd")<=r&&h.format(o,"yyyy-MM-dd")>=r&&l.push(e);else if(h.format(t,"yyyy-MM-dd")<=r&&h.format(o,"yyyy-MM-dd")>=r){const n=new Date(t);for(;n<=o;){if(h.format(n,"yyyy-MM-dd")===r){const t=2*n.getHours()+(n.getMinutes()>=30?1:0);s[t]&&s[t].events.push(e)}n.setMinutes(n.getMinutes()+30)}}}),o.push({date:r,fullDayEvents:l,timeSlots:s})}return o},[n]);return{getMonthCalendar:r,getWeekEvents:o}},Gt=()=>({styles:{container:g.css({display:"flex",flexDirection:"column",width:"calc(100% - 40px)",height:"100vh",overflow:"hidden",padding:"20px"}),header:g.css({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),dayGrid:g.css({display:"grid",gridTemplateColumns:"80px 1fr",gridTemplateRows:"50px 40px repeat(48, 33px)",height:"calc(100vh - 100px)",overflowY:"auto",border:`1px solid ${p.tokens.colorNeutralStroke1}`,maxHeight:"fit-content",scrollbarWidth:"thin",scrollbarColor:`${p.tokens.colorBrandBackground} ${p.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandBackground,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorBrandBackgroundHover}}),blankHeader:g.css({gridColumn:"1",backgroundColor:p.tokens.colorNeutralBackground3,borderBottom:`3px solid ${p.tokens.colorNeutralStroke3}`}),timeColumn:g.css({gridColumn:"1",gridRow:"3 / span 49",display:"flex",flexDirection:"column",backgroundColor:p.tokens.colorNeutralBackground1,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`}),timeCell:g.css({height:"100%",maxHeight:"32px",minHeight:"32px",display:"flex",alignItems:"center",fontSize:"12px",color:p.tokens.colorNeutralForeground3,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,justifyContent:"center"}),fullDayRow:g.css({gridRow:"2",display:"grid",gridTemplateColumns:"80px 33px",gap:"0",padding:"0",backgroundColor:p.tokens.colorNeutralBackground2,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayLabel:g.css({gridColumn:"1",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",color:p.tokens.colorBrandBackground,padding:"5px",borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayCell:g.css({borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,display:"flex",flexDirection:"row",gap:"2px",padding:"4px",borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`,overflow:"hidden"}),fullDayEvent:g.css({flex:"1 1 auto",minWidth:"24px",height:"24px",padding:"4px 8px",backgroundColor:p.tokens.colorBrandBackground,color:p.tokens.colorNeutralForegroundOnBrand,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}),dayHeaderCell:g.css({textAlign:"center",backgroundColor:p.tokens.colorNeutralBackground2,padding:"8px",fontWeight:"bold",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),todayHeaderCell:g.css({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),eventCard:g.css({alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",overflow:"hidden"}),dayCell:g.css({borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,position:"relative",overflow:"visible",FlexDirection:"column",gap:"4px"}),currentTimeIndicator:g.css({position:"absolute",left:0,height:"2px",backgroundColor:p.tokens.colorPaletteRedBorderActive,width:"100%",zIndex:1}),currentHalfHourCell:g.css({border:`2px solid ${p.tokens.colorPaletteRedBorderActive}`}),eventTitle:g.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"})},applyEventHouverColorClass:(e,t)=>g.css({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}})}),qt={allDay:"All Day"},Xt=e=>{const{events:t,currentDay:n,height:r,strings:o=qt}=e,{styles:i}=Gt(),a=u.useRef(null),{getSpanSlots:s,getEventColors:l,getCalendarColors:d}=At(),m=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:f}=Jt(m),g=L.useCallback(()=>Array.from({length:24},(e,t)=>c.jsxs(L.Fragment,{children:[c.jsx("div",{className:i.timeCell,children:c.jsxs(p.Body1Strong,{children:[t,":00"]})}),c.jsx("div",{className:i.timeCell})]},t)),[i.timeCell]),y=L.useCallback(()=>c.jsxs(c.Fragment,{children:[c.jsx("div",{className:i.blankHeader}),Array.from({length:1},(e,t)=>{const r=h.addDays(n,t),o=h.isToday(r)?i.todayHeaderCell:"";return c.jsxs("div",{className:p.mergeClasses(i.dayHeaderCell,o),children:[c.jsx(p.Text,{weight:"semibold",size:600,style:{paddingRight:10},children:h.format(r,"dd")}),c.jsx(p.Subtitle1,{children:h.format(r,"LLLL, yyyy")})]},t)})]}),[n,i.blankHeader,i.dayHeaderCell,i.todayHeaderCell]),v=L.useCallback(()=>{const e=f(t,n.toISOString());return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:i.fullDayLabel,children:c.jsx(p.Body1,{children:o.allDay})}),Array.from({length:1},(t,r)=>{const o=h.format(h.addDays(n,r),"yyyy-MM-dd"),a=e.find(e=>e.date===o),s=(null==a?void 0:a.fullDayEvents)||[];return c.jsx("div",{className:i.fullDayCell,children:s.map(e=>c.jsx("div",{className:i.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?d(e.color).backgroundColor:l(e.category).backgroundColor},children:c.jsx(p.Caption1Strong,{className:i.eventTitle,children:e.title})},e.id))},r)})]})},[n,f,i.fullDayCell,i.fullDayEvent,i.fullDayLabel,i.eventTitle,d,l,t,o.allDay]),b=L.useCallback(()=>{const e=f(t,n.toISOString());return Array.from({length:1},(t,r)=>{const o=h.format(h.addDays(n,r),"yyyy-MM-dd"),a=e.find(e=>e.date===o);return c.jsx(L.Fragment,{children:null==a?void 0:a.timeSlots.map((e,t)=>{const n=e.events.length;return c.jsx("div",{className:i.dayCell,style:{gridRow:t+3},children:e.events.map((e,r)=>{const o=new Date(e.start),i=new Date(e.end),{spanSlots:a,startSlot:l}=s(o,i);return t===l?c.jsx(Rt,{event:e,eventCount:n,spanSlots:a,rowHeight:33,eventIndex:r,view:"day"},e.id):null})},t)})},r)})},[n,s,f,i.dayCell,t]);return c.jsx("div",{className:i.container,style:{height:r},children:c.jsxs("div",{ref:a,className:i.dayGrid,children:[c.jsx("div",{className:i.timeColumn,children:g()}),y(),v(),b()]})})};var Yt=(e=>(e.Day="day",e.Week="week",e.Month="month",e))(Yt||{});const Zt={month:"Month",week:"Week",day:"Day"},Qt=e=>{const{onSelected:t,value:n,strings:r=Zt}=e,[o,i]=L.useState(n??Yt.Month),[a,s]=L.useState({view:[n??Yt.Month]}),l=L.useMemo(()=>v.bundleIcon(v.CalendarDayFilled,v.CalendarDayRegular),[]),u=L.useMemo(()=>v.bundleIcon(v.CalendarMonthFilled,v.CalendarMonthRegular),[]),d=L.useMemo(()=>v.bundleIcon(v.CalendarWorkWeekFilled,v.CalendarWorkWeekRegular),[]);L.useEffect(()=>{void 0!==n&&(i(n),s({view:[n]}))},[n]);const[h,m]=L.useState(!1),f=L.useCallback((e,t)=>{m(t.open)},[]),g=L.useCallback(()=>{switch(o){case Yt.Month:return c.jsx(u,{});case Yt.Week:return c.jsx(d,{});case Yt.Day:return c.jsx(l,{});default:return c.jsx(u,{})}},[o]),y=L.useCallback(e=>{switch(e){case Yt.Month:return r.month;case Yt.Week:return r.week;case Yt.Day:return r.day;default:return r.month}},[r]),b=L.useCallback((e,{name:n,checkedItems:r})=>{if("view"===n){const e=r[0];i(e),s({view:r}),t(e)}},[t]);return c.jsx(c.Fragment,{children:c.jsxs(p.Menu,{open:h,onOpenChange:f,children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:"circular",icon:g(),style:{minWidth:"150px"},children:y(o)})}),c.jsx(p.MenuPopover,{children:c.jsxs(p.MenuList,{onCheckedValueChange:b,checkedValues:a,children:[c.jsx(p.MenuItemRadio,{icon:c.jsx(l,{}),name:"view",value:Yt.Day,children:r.day}),c.jsx(p.MenuItemRadio,{icon:c.jsx(d,{}),name:"view",value:Yt.Week,children:r.week}),c.jsx(p.MenuItemRadio,{icon:c.jsx(u,{}),name:"view",value:Yt.Month,children:r.month})]})})]})})},Kt=L.memo(e=>{const{onSelected:t,value:n}=e,[r,o]=L.useState(n??new Date),[i,a]=L.useState(()=>{const e=n??new Date;return d.format(e,"dd MMM, yyyy")}),[s,l]=L.useState(!1),u=L.useCallback((e,t)=>{l(t.open)},[]),h=L.useMemo(()=>v.bundleIcon(v.CalendarMonthFilled,v.CalendarMonthRegular),[]),m=L.useCallback(e=>{if(e){const n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=d.utcToZonedTime(e,n);o(r),a(d.format(r,"dd MMM, yyyy")),t(r),l(!1)}},[t]);return c.jsxs(p.Menu,{open:s,onOpenChange:u,children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:"circular",icon:c.jsx(h,{}),style:{minWidth:"200px"},children:i})}),c.jsx(p.MenuPopover,{style:{maxWidth:"fit-content"},children:c.jsx(p.MenuList,{children:c.jsx(w.Calendar,{highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:m,value:r})})})]})}),en={months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],goToToday:"Go to today"},tn=e=>{const{onDateChange:t,defaultSelectedDate:n,onDismiss:r,strings:o=en}=e,i={root:g.css({outline:"none"})},[a,s]=L.useState(n??new Date),l=L.useCallback((e,n)=>{s(e),t(e),r()},[t,r]);return c.jsx(c.Fragment,{children:c.jsx(w.Calendar,{className:i.root,dateRangeType:w.DateRangeType.Month,highlightSelectedMonth:!0,isDayPickerVisible:!1,onSelectDate:l,value:a,onDismiss:r,showGoToToday:!1,allFocusable:!1,strings:o})})},nn=e=>{const{onSelected:t,value:n}=e,r=v.bundleIcon(v.CalendarMonthFilled,v.CalendarMonthRegular),[o,i]=L.useState(n??new Date);L.useEffect(()=>{t(n??new Date),i(n??new Date)},[n]);const[a,s]=L.useState(!1),l=L.useCallback(e=>{t(e),i(e)},[]);return c.jsx(c.Fragment,{children:c.jsxs(p.Menu,{open:a,onOpenChange:(e,t)=>{s(t.open)},children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:"circular",icon:c.jsx(r,{}),style:{minWidth:"200px"},children:h.format(o,"MMMM yyyy")})}),c.jsx(p.MenuPopover,{children:c.jsx(p.MenuList,{children:c.jsx(tn,{onDateChange:l,defaultSelectedDate:o,onDismiss:()=>{s(!1)}})})})]})})},rn={selectWeekPlaceholder:"Select a week"},on=e=>{const t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=d.format(e.start,"MMM",{timeZone:t}),r=d.format(e.end,"MMM",{timeZone:t});return d.format(e.start,"yyyy",{timeZone:t})!==d.format(e.end,"yyyy",{timeZone:t})?`${d.format(e.start,"dd MMM yyyy",{timeZone:t})} - ${d.format(e.end,"dd MMM yyyy",{timeZone:t})}`:n!==r?`${d.format(e.start,"dd MMM",{timeZone:t})} - ${d.format(e.end,"dd MMM yyyy",{timeZone:t})}`:`${d.format(e.start,"dd",{timeZone:t})} - ${d.format(e.end,"dd MMM yyyy",{timeZone:t})}`},an=e=>{const t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=d.utcToZonedTime(e,t),r=new Date(n);r.setDate(n.getDate()-n.getDay());const o=new Date(r);return o.setDate(r.getDate()+6),{start:d.utcToZonedTime(r,t),end:d.utcToZonedTime(o,t)}},sn=L.memo(e=>{const{onSelected:t,value:n,strings:r=rn}=e,o=w.DateRangeType.Week,[i,a]=L.useState(n??new Date),[s,l]=L.useState(()=>{const e=n??new Date;if(e){const t=an(e);return on(t)}return r.selectWeekPlaceholder}),[u,d]=L.useState(!1),h=L.useCallback((e,t)=>{d(t.open)},[]),m=L.useMemo(()=>v.bundleIcon(v.CalendarMonthFilled,v.CalendarMonthRegular),[]),f=L.useCallback(e=>{if(e){a(e);const n=an(e),r=on(n);l(r),t({startDate:n.start,endDate:n.end}),d(!1)}},[t]),g=L.useMemo(()=>0,[]);return c.jsxs(p.Menu,{open:u,onOpenChange:h,children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:"circular",icon:c.jsx(m,{}),style:{minWidth:"200px"},children:s})}),c.jsx(p.MenuPopover,{style:{maxWidth:"fit-content"},children:c.jsx(p.MenuList,{children:c.jsx(w.Calendar,{dateRangeType:o,highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:f,value:i,firstDayOfWeek:g})})})]})}),ln={today:"Today",previous:"Previous",next:"Next"},cn=L.memo(({selectedView:e,onSelectedView:t,currentDate:n,setCurrentDate:r,onWeekChange:o,onMonthChange:i,onDayChange:a,strings:s=ln})=>{const l=L.useMemo(()=>v.bundleIcon(v.ArrowDownFilled,v.ArrowDownRegular),[]),u=L.useMemo(()=>v.bundleIcon(v.ArrowUpFilled,v.ArrowUpRegular),[]),d=L.useCallback(e=>{o(e.startDate),r(e.startDate)},[o,r]),p=L.useCallback(e=>{i(e),r(e)},[i,r]),h=L.useCallback(e=>{a(e),r(e)},[a,r]),m=L.useCallback(()=>{switch(e){case Yt.Month:return c.jsx(nn,{onSelected:p,value:n});case Yt.Week:return c.jsx(sn,{onSelected:d,value:n});case Yt.Day:return c.jsx(Kt,{onSelected:h,value:n});default:return c.jsx(nn,{onSelected:p,value:n})}},[e,p,d,h,n]),f=L.useCallback(()=>c.jsx(S.Tooltip,{content:s.today,relationship:"label",children:c.jsx(C.Button,{shape:"circular",icon:c.jsx(v.CalendarTodayRegular,{}),size:"medium",onClick:()=>a(new Date),children:s.today})}),[a,s.today]),g=L.useCallback(t=>{const s=new Date(n);switch(e){case Yt.Month:s.setMonth(s.getMonth()+t),i(s);break;case Yt.Week:s.setDate(s.getDate()+7*t),o(s);break;case Yt.Day:s.setDate(s.getDate()+t),a(s)}r(s)},[n,e,i,o,a,r]);return c.jsxs(st,{width:"calc(100% - 40px)",height:"fit-content",horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",paddingLeft:"20px",paddingRight:"20px",paddingBottom:"10px",paddingTop:"10px",columnGap:10,styles:{overflow:"hidden"},children:[c.jsxs(st,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",columnGap:10,children:[c.jsx(f,{}),c.jsx(m,{}),c.jsx(S.Tooltip,{content:s.previous,relationship:"label",children:c.jsx(C.Button,{size:"medium",icon:c.jsx(u,{fontSize:14}),onClick:()=>g(-1)})}),c.jsx(S.Tooltip,{content:s.next,relationship:"label",children:c.jsx(C.Button,{size:"medium",icon:c.jsx(l,{fontSize:14}),onClick:()=>g(1)})})]}),c.jsx(st,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",columnGap:10,children:c.jsx(Qt,{onSelected:t,value:e})})]})}),un={allDay:"All Day"},dn=e=>{const{events:t,currentDay:n,height:r,strings:o=un}=e,{styles:i}=Vt(),[a]=u.useState(n),[s,l]=u.useState(32),d=u.useRef(null),{getSpanSlots:m,getEventColors:g,getCalendarColors:y,formatDate:v}=At(),b=h.startOfWeek(a,{weekStartsOn:0}),x=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:C}=Jt(x);u.useEffect(()=>{const e=new f.ResizeObserver(()=>{if(d.current){const e=d.current.querySelector(".dayCell");e&&l(e.offsetHeight)}});return d.current&&e.observe(d.current),()=>{e.disconnect()}},[]);const w=L.useCallback(()=>Array.from({length:24},(e,t)=>c.jsxs(L.Fragment,{children:[c.jsx("div",{className:i.timeCell,children:c.jsxs(p.Body1Strong,{children:[t,":00"]})}),c.jsx("div",{className:i.timeCell})]},t)),[i.timeCell]),S=L.useCallback(()=>c.jsxs(c.Fragment,{children:[c.jsx("div",{className:i.blankHeader}),Array.from({length:7},(e,t)=>{const n=h.addDays(b,t),r=h.isToday(n)?i.todayHeaderCell:"";return c.jsxs("div",{className:p.mergeClasses(i.dayHeaderCell,r),children:[c.jsx(p.Text,{weight:"regular",size:600,style:{paddingRight:10},children:v(n.toISOString(),"dd")}),c.jsx(p.Body1,{children:v(n.toISOString(),"EEE")})]},t)})]}),[b,i,v]),k=L.useCallback(()=>{const e=C(t,b.toISOString());return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:i.fullDayLabel,children:c.jsx(p.Body1,{children:o.allDay})}),Array.from({length:7},(t,n)=>{const r=v(h.addDays(b,n).toISOString(),"yyyy-MM-dd"),o=e.find(e=>e.date===r),a=(null==o?void 0:o.fullDayEvents)||[];return c.jsx("div",{className:i.fullDayCell,children:a.map(e=>c.jsx("div",{className:i.fullDayEvent,style:{gridColumn:`${n+2}`,backgroundColor:e.color?y(e.color).backgroundColor:g(e.category).backgroundColor},children:c.jsx(p.Caption1Strong,{className:i.eventTitle,children:e.title})},e.id))},n)})]})},[b,i,C,y,g,t,v,o.allDay]),P=L.useCallback(()=>{const e=C(t,b.toISOString());return Array.from({length:7},(t,n)=>{const r=h.format(h.addDays(b,n),"yyyy-MM-dd"),o=e.find(e=>e.date===r);return c.jsx(c.Fragment,{children:null==o?void 0:o.timeSlots.map((e,t)=>{const n=e.events.length;return c.jsx("div",{className:i.dayCell,style:{gridRow:t+3},children:e.events.map((e,r)=>{const o=new Date(e.start),i=new Date(e.end),{spanSlots:a,startSlot:l}=m(o,i);return t===l?c.jsx(Rt,{event:e,eventCount:n,spanSlots:a,rowHeight:s,eventIndex:r,view:"week"},e.id):null})},t)})})})},[b,i,C,m,s,t]);return c.jsx("div",{className:i.container,style:{height:r},children:c.jsxs("div",{ref:d,className:i.weekGrid,children:[c.jsx("div",{className:i.timeColumn,children:w()}),S(),k(),P()]})})},pn={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hn=({currentDate:e,rowHeight:t,getCalendarDays:n,getEventsForDay:r,styles:o,onDaySlotClick:i,height:a,calendarRef:s,strings:l})=>{const u=(null==l?void 0:l.daysOfWeek)||pn.daysOfWeek;return c.jsx(st,{height:a,width:"100%",verticalAlign:"start",horizontalAlign:"start",children:c.jsxs("div",{className:o.calendarWrapper,ref:s,children:[u.map(e=>c.jsx(p.Body1,{className:o.dayHeader,children:e},e)),n(e).map((e,n)=>{const{day:o,currentMonth:a}=e,s=a?r(e):[];return c.jsx(Dt,{day:o,date:e.date,currentMonth:e.currentMonth,events:s,columnHeight:t||0,onDayClick:i},n)})]})})},mn=L.memo(({events:e,currentDay:t,height:n,strings:r})=>c.jsx(dn,{events:e,currentDay:t,height:n,strings:r})),fn=L.memo(({events:e,currentDay:t,height:n,strings:r})=>c.jsx(Xt,{currentDay:t,events:e,height:n,strings:r})),gn={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},yn=u.memo(({direction:e="vertical",justifyContent:t="flex-start",alignItems:n="stretch",gap:r,columnGap:o,rowGap:i,margin:a,padding:s,marginTop:l,marginBottom:u,marginLeft:d,marginRight:h,paddingTop:m,paddingBottom:f,paddingLeft:y,paddingRight:v,width:b,height:x,wrap:C=!1,children:w,style:S,className:k,overflow:P,background:E})=>{const A=g.css({display:"flex",flexDirection:"horizontal"===e?"row":"column",justifyContent:t,alignItems:n,gap:r&&gn[r]?gn[r]:r,columnGap:o&&gn[o]?gn[o]:o,rowGap:i&&gn[i]?gn[i]:i,margin:a&&gn[a]?gn[a]:a,padding:s&&gn[s]?gn[s]:s,marginTop:l&&gn[l]?gn[l]:l,marginBottom:u&&gn[u]?gn[u]:u,marginLeft:d&&gn[d]?gn[d]:d,marginRight:h&&gn[h]?gn[h]:h,paddingTop:m&&gn[m]?gn[m]:m,paddingBottom:f&&gn[f]?gn[f]:f,paddingLeft:y&&gn[y]?gn[y]:y,paddingRight:v&&gn[v]?gn[v]:v,width:b,height:x,overflow:P,flexWrap:C?"wrap":"nowrap",backgroundColor:E,...S});return c.jsx("div",{className:p.mergeClasses(k,A),children:w})}),vn=e=>({styles:{loadingContainer:g.css({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),noItemsMessage:g.css({textAlign:"center",marginTop:20}),rowSelection:g.css({":hover":{cursor:"pointer"}})}}),bn=g.css`
1
+ "use strict";var e,t,n,r,o,i,a=Object.defineProperty,s=(e,t,n)=>((e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./ILoggingProvider-C4FFlnQ0.js"),c=require("react/jsx-runtime"),u=require("react"),d=require("date-fns-tz"),p=require("@fluentui/react-components"),h=require("date-fns"),m=require("lodash"),f=require("@juggle/resize-observer"),g=require("@emotion/css"),y=require("embla-carousel-react"),v=require("@fluentui/react-icons"),b=require("react-dom"),x=require("@iconify/react"),C=require("@fluentui/react-button"),w=require("@fluentui/react-calendar-compat"),S=require("@fluentui/react-tooltip"),k=require("@fluentui-contrib/react-data-grid-react-window"),P=require("@fluentui/react-components/unstable"),E=require("react-player"),A=require("adaptivecards"),I=require("nano-css"),_=require("markdown-it"),T=require("@fluentui/react-datepicker-compat"),j=require("@fluentui/react-timepicker-compat"),M=require("@fluentui/react/lib/Icons"),N=require("adaptive-expressions"),D=require("adaptivecards-templating"),O=require("@fluentui-contrib/react-chat"),V=require("textarea-caret"),B=require("@fluentui/react-motion-components-preview");function R(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const z=R(c),L=R(u),H=R(b),F=R(A),W=R(_);var $=(e=>(e[e.XXXLarge=1900]="XXXLarge",e[e.ExtraExtraLarge=1400]="ExtraExtraLarge",e[e.ExtraLarge=1200]="ExtraLarge",e[e.Large=992]="Large",e[e.Medium=768]="Medium",e[e.Small=576]="Small",e[e.ExtraSmall=320]="ExtraSmall",e))($||{}),U=(e=>(e.INFO="info",e.ERROR="error",e.SUCCESS="success",e))(U||{});const J=u.createContext(void 0),G=()=>u.useContext(J),q=()=>{const e=G(),t=null==e?void 0:e.loggingProvider;return{log:(e,n=l.LogLevel.Info,r)=>{t?t.log(e,n,r):console.log(e,r)},error:(e,n,r)=>{t?t.error(e,n,r):console.error(e,n,r)},warn:(e,n)=>{t?t.warn(e,n):console.warn(e,n)},info:(e,n)=>{t?t.info(e,n):console.info(e,n)},verbose:(e,n)=>{t?t.verbose(e,n):console.debug(e,n)},LogLevel:l.LogLevel,ErrorType:l.ErrorType}},X=()=>{const e=G(),t=null==e?void 0:e.storageProvider;return{getCachedData:u.useCallback(async e=>{if(t)try{return await t.get(e)}catch(n){return void console.error("Error reading from cache:",n)}else console.warn("Storage provider not available")},[t]),setCachedData:u.useCallback(async(e,n,r)=>{if(t)try{await t.set(e,n,r)}catch(o){console.error("Error writing to cache:",o)}else console.warn("Storage provider not available")},[t]),removeCachedData:u.useCallback(async e=>{if(t)try{await t.remove(e)}catch(n){console.error("Error removing from cache:",n)}else console.warn("Storage provider not available")},[t]),clearCache:u.useCallback(async()=>{if(t)try{await t.clear()}catch(e){console.error("Error clearing cache:",e)}else console.warn("Storage provider not available")},[t])}},Y=(e,t,n=!0)=>{const[r,o]=u.useState(!1),i=u.useRef(null),a=u.useRef(e);u.useEffect(()=>{a.current=e},[e]);const s=u.useCallback(()=>{i.current||(o(!0),n&&a.current(),i.current=setInterval(()=>{a.current()},t))},[t,n]),l=u.useCallback(()=>{i.current&&(clearInterval(i.current),i.current=null,o(!1))},[]);return u.useEffect(()=>()=>{l()},[l]),{startPolling:s,stopPolling:l,isPolling:r}},Z=()=>{const e=L.useCallback((e,t)=>`${e}${t}`,[]),t=L.useCallback(e=>{if(!e)return!1;try{return!!new URL(e)}catch(t){return!1}},[]),n=e=>"/"===e.charAt(0)&&"/"===e.charAt(1)?e.substring(1,e.length):e,r=L.useCallback(e=>{const t=new RegExp(/^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$/);return!!e&&!0===t.test(e)},[]),o=L.useCallback(e=>{if(!e)return"";const t=e.split("/");return t[t.length-1]},[]),i=L.useCallback(e=>{const t=window.location.hostname,n=`https://${t}`;if(e.indexOf(`${n}/sites/`)>-1||e.indexOf(`${n}/teams/`)>-1){const r=e.split(t)[1].split("/")[2];let o=`https://${t}/sites/${r}`;return e.indexOf(`${n}/teams/`)>-1&&(o=`https://${t}/teams/${r}`),o}return n},[]),a=L.useCallback(e=>{let t=e.split(window.location.hostname)[1];return t=n(t),t},[]),s=L.useCallback(e=>encodeURIComponent(e.replace(/[%]/g,"%25")).replace(/[']/g,"%27%27").replace(/[&]/g,"%26").replace(/[#]/g,"%23").replace(/[?]/g,"%3F").replace(/[/]/g,"%2F").replace(/[+]/g,"%2B"),[]),l=L.useCallback(e=>null!=e&&(Object.prototype.hasOwnProperty.call(e,"extraSmall")||Object.prototype.hasOwnProperty.call(e,"small")||Object.prototype.hasOwnProperty.call(e,"medium")||Object.prototype.hasOwnProperty.call(e,"large")||Object.prototype.hasOwnProperty.call(e,"extraLarge")),[]),c=L.useCallback((e,t)=>e[t.toString().toLowerCase()],[]),u=L.useCallback(e=>e>=$.XXXLarge?"XXXLarge":e>=$.ExtraExtraLarge?"ExtraExtraLarge":e>=$.ExtraLarge?"ExtraLarge":e>=Number($.Large)?"Large":e>=Number($.Medium)?"Medium":e>=Number($.Small)?"Small":"ExtraSmall",[]),d=L.useCallback((e,t)=>{const n=u(t),r={ExtraSmall:"xs",Small:"s",Medium:"m",Large:"l",ExtraLarge:"xl",ExtraExtraLarge:"xxl"};let o=e;return l(e)&&(o=c(e,n??"Medium")||r[n]),o},[u,l,c]),h=L.useCallback((e,t,n)=>{if(!e)return"none";if("string"==typeof e&&(/^\d+px$/.test(e)||/^\d+%$/.test(e)))return e;const r=n,o={padding:"spacingHorizontal",vertical:"spacingVertical",horizontal:"spacingHorizontal"};switch(d(e,t)){case"none":return p.tokens[`${o[r]}None`];case"xxs":return p.tokens[`${o[r]}XXS`];case"xs":return p.tokens[`${o[r]}XS`];case"sNudge":return p.tokens[`${o[r]}SNudge`];case"s":return p.tokens[`${o[r]}S`];case"mNudge":return p.tokens[`${o[r]}MNudge`];case"m":default:return p.tokens[`${o[r]}M`];case"l":return p.tokens[`${o[r]}L`];case"xl":return p.tokens[`${o[r]}XL`];case"xxl":return p.tokens[`${o[r]}XXL`];case"xxxl":return p.tokens[`${o[r]}XXXL`]}},[d]),m=L.useCallback((e,t,n)=>{const{verticalSpacing:r,horizontalSpacing:o,paddingLeft:i,paddingRight:a,paddingBottom:s,background:l,width:c,maxWidth:u,height:d,maxHeight:p,marginLeft:m,marginRight:f,marginTop:g,marginBottom:y,paddingTop:v,padding:b,margin:x,styles:C}=e;let w=h(v,t,"padding"),S=h(i,t,"padding"),k=h(a,t,"padding"),P=h(s,t,"padding");const E=h(b,t,"padding");let A=h(m,t,"padding"),I=h(f,t,"padding"),_=h(g,t,"padding"),T=h(y,t,"padding");const j=h(x,t,"padding");E&&(w="none"===w?E:w,S="none"===S?E:S,k="none"===k?E:k,P="none"===P?E:P),j&&(A="none"===A?j:A,I="none"===I?j:I,_="none"===_?j:_,T="none"===T?j:T);return{...C,gap:`${h(r,t,"vertical")} ${h(o,t,"horizontal")}`,paddingTop:w,paddingLeft:S,paddingRight:k,paddingBottom:P,marginLeft:A,marginRight:I,marginTop:_,marginBottom:T,background:l,width:c??void 0,height:d??void 0,maxWidth:u??void 0,maxHeight:p??void 0,overflow:"auto"}},[h]),f=L.useCallback((e,t)=>{const n=u(t);let r=e;return l(e)&&(r=c(e,n??"Medium")||""),r},[u,l,c]);return{getCacheKey:e,validateUrl:t,trimBeginDoubleSlash:n,isValidGUID:r,getPageNameFromUrl:o,getSPSiteAbsoluteUrl:i,getFileServerRelativeUrlFromAbsoluteUrl:a,encodeRestUrl:s,getSpacing:h,getCurrentDevice:u,getBaseStyles:m,getLayoutBreakPoint:f}};function Q(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function K(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function ee(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}function te(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(o.length)}}}function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}var oe={};function ie(e,t){var n,r,o,i,a,s,l,c;re(1,arguments);var u=oe,d=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=function(e){re(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ne(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),h=p.getUTCDay(),m=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}var ae={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},se={date:Q({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Q({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},le={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ce={code:"en-US",formatDistance:function(e,t,n){var r,o=ae[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:se,formatRelative:function(e,t,n,r){return le[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:K({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:K({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function ue(e,t,n){re(2,arguments);var r=ie(e,n),o=ie(t,n);return r.getTime()===o.getTime()}var de={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},pe={date:Q({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},he={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},me={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},fe={narrow:me.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:me.wide},ge={code:"de",formatDistance:function(e,t,n){var r,o=null!=n&&n.addSuffix?de[e].withPreposition:de[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},formatLong:pe,formatRelative:function(e,t,n,r){return he[e]},localize:{ordinalNumber:function(e){return Number(e)+"."},era:K({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:me,formattingValues:fe,defaultWidth:"wide"}),day:K({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:ee({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ye={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},ve={date:Q({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},be={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},xe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},Ce={code:"es",formatDistance:function(e,t,n){var r,o=ye[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},formatLong:ve,formatRelative:function(e,t,n,r){return 1!==t.getUTCHours()?xe[e]:be[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:K({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:K({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},we={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Se={date:Q({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ke={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},Pe={code:"fr",formatDistance:function(e,t,n){var r,o=we[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},formatLong:Se,formatRelative:function(e,t,n,r){return ke[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:K({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:ee({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ee={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Ae={date:Q({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ie=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function _e(e){return"'"+Ie[e]+" alle' p"}var Te={lastWeek:function(e,t,n){var r=e.getUTCDay();return ue(e,t,n)?_e(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Ie[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return ue(e,t,n)?_e(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Ie[e]+" prossimo alle' p"}(r)},other:"P"},je={code:"it",formatDistance:function(e,t,n){var r,o=Ee[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},formatLong:Ae,formatRelative:function(e,t,n,r){var o=Te[e];return"function"==typeof o?o(t,n,r):o},localize:{ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:K({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:K({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Me={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Ne={date:Q({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:Q({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},De={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Oe={code:"ja",formatDistance:function(e,t,n){var r;n=n||{};var o=Me[e];return r="string"==typeof o?o:1===t?n.addSuffix&&o.oneWithSuffix?o.oneWithSuffix:o.one:n.addSuffix&&o.otherWithSuffix?o.otherWithSuffix.replace("{{count}}",String(t)):o.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+"後":r+"前":r},formatLong:Ne,formatRelative:function(e,t,n,r){return De[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(null==t?void 0:t.unit)){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},era:K({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:K({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Ve={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Be={date:Q({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:Q({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Re={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},ze={code:"ko",formatDistance:function(e,t,n){var r,o=Ve[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},formatLong:Be,formatRelative:function(e,t,n,r){return Re[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(null==t?void 0:t.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:K({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:K({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Le={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},He={date:Q({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:Q({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Fe={lastWeek:function(e){var t=e.getUTCDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},We={code:"pt",formatDistance:function(e,t,n){var r,o=Le[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+r:"há "+r:r},formatLong:He,formatRelative:function(e,t,n,r){var o=Fe[e];return"function"==typeof o?o(t):o},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:K({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:K({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:te({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},$e={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},Ue={date:Q({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:Q({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:Q({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function Je(e,t,n){var r="eeee p";return ue(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var Ge={lastWeek:Je,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Je,other:"PP p"},qe={ordinalNumber:function(e,t){var n=Number(e);switch(null==t?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:K({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:K({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:K({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:K({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:K({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},Xe={ordinalNumber:te({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ee({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})};const Ye={"en-US":ce,"es-ES":Ce,"fr-FR":Pe,"de-DE":ge,"it-IT":je,"pt-BR":We,"pt-PT":We,"ja-JP":Oe,"ko-KR":ze,"zh-CN":{code:"zh-CN",formatDistance:function(e,t,n){var r,o=$e[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r},formatLong:Ue,formatRelative:function(e,t,n,r){var o=Ge[e];return"function"==typeof o?o(t,n,r):o},localize:qe,match:Xe,options:{weekStartsOn:1,firstWeekContainsDate:4}}},Ze=(e,t)=>{const n=t&&Ye[t]||ce;return{getFormatRelative:e=>{try{const t="string"==typeof e?h.parseISO(e):e;return h.formatDistanceToNow(t,{addSuffix:!0,locale:n})}catch(t){return console.error("Error formatting relative time:",t),""}},convertDateToUTC:e=>{try{const t="string"==typeof e?h.parseISO(e):e;return new Date(t.toUTCString())}catch(t){return console.error("Error converting to UTC:",t),new Date}},formatDate:(e,t="PPpp")=>{try{const r="string"==typeof e?h.parseISO(e):e;return h.format(r,t,{locale:n})}catch(r){return console.error("Error formatting date:",r),""}},getTimezoneOffset:()=>(new Date).getTimezoneOffset(),convertToTimezone:(n,r)=>{try{const o="string"==typeof n?h.parseISO(n):n,i=r||e||Intl.DateTimeFormat().resolvedOptions().timeZone;return o.toLocaleString(t||"en-US",{timeZone:i})}catch(o){console.error("Error converting timezone:",o);return("string"==typeof n?new Date(n):n).toString()}}}},Qe="production"!==process.env.NODE_ENV;function Ke(e,t=0){let n=null;return function(...r){const o=this;n&&clearTimeout(n),n=setTimeout(()=>{e.apply(o,r)},t)}}const et=e=>{const{styles:t}=e,{getBaseStyles:n}=Z();return{cardStyles:L.useCallback((r,o)=>({...n(e,r,o),...t}),[n,e,t]),bodyCardDefaultStyles:L.useMemo(()=>({display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"stretch",overflow:"unset"}),[])}},tt=e=>{const{className:t,cardBody:n,cardBodyClassName:r,cardHeader:o,cardHeaderClassName:i,cardHeaderImage:a,cardHeaderAction:s,cardHeaderDescription:l,cardFooterAction:u,cardFooterClassName:d,cardFooterContent:h,cardPreviewImage:m,cardPreviewLogo:g,cardPreviewPosition:y="top"}=e,{cardStyles:v,bodyCardDefaultStyles:b}=et(e),x=L.useRef(null),[C,w]=L.useState(0),[S,k]=L.useState(0);return L.useEffect(()=>{let e;return x.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;w(e),k(n)}}),e.observe(x.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsx("div",{ref:x,children:c.jsxs(p.Card,{className:t,style:v(C,S),...e,children:[m&&"top"===y&&c.jsxs(p.CardPreview,{logo:g,children:[m," "]}),o&&c.jsx(p.CardHeader,{className:i,image:a,header:o,description:l,action:s}),m&&"afterHeader"===y&&c.jsxs(p.CardPreview,{logo:g,children:[m," "]}),n&&c.jsx("div",{className:p.mergeClasses(r),style:b,children:n}),m&&"bottom"===y&&c.jsxs(p.CardPreview,{logo:g,children:[m," "]}),h&&c.jsx(p.CardFooter,{action:u,className:d,children:h})]})})})},nt=e=>{const{cols:t,verticalSpacing:n,horizontalSpacing:r,styles:o,gridItemAutoFlow:i,minItemWidth:a}=e,{getSpacing:s,getCurrentDevice:l,getBaseStyles:c}=Z();return{gridStyles:L.useCallback((u,d)=>{const p=c(e,u,d),h=`${s(n,u,"vertical")} ${s(r,u,"horizontal")}`,m=l(u);let f=`repeat(auto-${i??"fill"}, minmax(${a??250}px, 1fr))`;if(t&&t>0){let e=t??0;switch(m){case"ExtraSmall":e=Math.min(t,1);break;case"Small":e=Math.min(t,2);break;case"Medium":e=Math.min(t,3);break;case"Large":case"ExtraLarge":e=Math.min(t,4);break;case"ExtraExtraLarge":e=Math.min(t,5);break;case"XXXLarge":e=Math.min(t,6);break;default:e=0}f=`repeat(${e}, minmax(auto, 1fr))`}return{...p,display:"grid",gridTemplateColumns:f,gap:h,overflow:"hidden",...o}},[c,e,s,n,r,l,t,o,i,a])}},rt=e=>{const{maxWith:t}=e,{getBaseStyles:n}=Z();return{rootStyles:L.useCallback((r,o)=>({...n(e,r,o),maxWidth:t}),[n,t,e]),layoutGridStyles:g.css({display:"grid",overflow:"hidden"})}},ot={areas:["header header header","sidebar content sidebar","footer footer footer"],columns:"1fr 3fr 1fr",rows:"auto 1fr auto"},it=e=>{const{verticalSpacing:t,horizontalSpacing:n}=e,{getSpacing:r}=Z();return{spaceStyles:L.useCallback(e=>{if(!e)return{};if(n){return{width:r(n,e,"horizontal")}}if(t){return{height:r(t,e,"vertical")}}return{}},[r,n,t])}},at=e=>{const{horizontal:t,horizontalAlign:n,verticalAlign:r,verticalFill:o,wrap:i,columnGap:a,RowGap:s}=e,{getBaseStyles:l}=Z();return{stackStyles:L.useCallback((c,u)=>{const d=r||"start",p=t?n:"start",h=t?{flexFlow:i?"row wrap":"row nowrap",height:"100%"}:{height:"100%",maxHeight:"100%"},m=l(e,c,u);return{columnGap:a,rowGap:s,display:"flex",flexDirection:t?"row":"column",alignItems:d,justifyContent:p,...h,height:o?"100%":m.height,...m,...e.styles}},[l,t,n,e,r,o,i])}},st=e=>{const{children:t,className:n}=e,{stackStyles:r}=at(e),o=L.useRef(null),[i,a]=L.useState(0),[s,l]=L.useState(0);return L.useEffect(()=>{let e;return o.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;a(e),l(n)}}),e.observe(o.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsx("div",{className:n,style:r(i,s),ref:o,children:t})})},lt=e=>{const{styles:t}=e,{getBaseStyles:n}=Z();return{centerStyles:L.useCallback((r,o)=>({...n(e,r,o),...t,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),[n,e,t]),childrenStyles:g.css({justifyContent:"center",textAlign:"center"})}},ct=e=>{const{className:t,children:n}=e,r=L.useRef(null),[o,i]=L.useState(0),[a,s]=L.useState(0),{centerStyles:l}=lt(e);return L.useEffect(()=>{const e=((e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}})(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;i(e),s(n)}},200),t=new f.ResizeObserver(t=>{e(t)});return r.current&&t.observe(r.current),()=>{t.disconnect()}},[]),c.jsx("div",{id:"center",className:t,style:{...l(o,a),display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},ref:r,children:n})},ut=e=>{const{maxWith:t}=e,{getBaseStyles:n}=Z();return{containerStyles:L.useCallback((r,o)=>{if(!r||!o)return{};return{...n(e,r,o),maxWidth:t}},[n,t,e])}},dt=e=>{const[t,n]=u.useState(!0),[r,o]=u.useState(!0),i=u.useCallback(()=>{e&&e.scrollPrev()},[e]),a=u.useCallback(()=>{e&&e.scrollNext()},[e]),s=u.useCallback(e=>{n(!e.canScrollPrev()),o(!e.canScrollNext())},[]);return u.useEffect(()=>{e&&(s(e),e.on("reInit",s),e.on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:i,onNextButtonClick:a}},pt=(e,t)=>{const{getCurrentDevice:n}=Z(),r=L.useCallback(()=>{let e="95%";switch(n(t)){case"Medium":e="45%";break;case"Large":e="calc(95% / 4)";break;case"ExtraLarge":e="calc(95% / 5)";break;default:e="95%"}return e},[t,n]),o=L.useCallback(()=>{const e=n(t);let r=p.tokens.spacingVerticalM;switch(e){case"Medium":default:r=p.tokens.spacingVerticalM;break;case"Large":r=p.tokens.spacingVerticalL;break;case"ExtraLarge":r=p.tokens.spacingVerticalXL}return r},[t,n]);return{enableControls:g.css({display:"flex",justifyContent:"space-between",alignItems:"stretch",gap:10,padding:5}),embla__viewport:g.css({overflow:"hidden",paddingTop:"10px",paddingBottom:"20px"}),embla__container:g.css({backfaceVisibility:"hidden",display:"flex",touchAction:"pan-y"}),embla:g.css({".embla":{}}),embla__slide:g.css({minWidth:0,flex:`0 0 ${r()}`,paddingLeft:`${o()}`}),embla__buttons:g.css({display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:0,alignItems:"center"})}},ht=e=>{const{styles:t}=e,{getBaseStyles:n}=Z();return{carouselStyles:L.useCallback((r,o)=>({...n(e,r,o),...t}),[n,e,t])}},mt=p.makeStyles({titleStyles:{display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",height:"25px"}}),ft=({anchorPoint:e,isOpen:t,onClose:n,excludeRefs:r,children:o,theme:i})=>{const a=u.useRef(null),[s,l]=u.useState(e),d={card:g.css({position:"absolute",zIndex:1e3})};u.useLayoutEffect(()=>{if(a.current){const t=a.current.getBoundingClientRect();let n=e.left,r=e.top;n+t.width>window.innerWidth&&(n=window.innerWidth-t.width-10),r+t.height>window.innerHeight&&(r=window.innerHeight-t.height-10),l({left:n,top:r})}},[e,o]);const h=u.useCallback(e=>{const t=e.target;if(a.current&&!a.current.contains(t)){if(r&&r.some(e=>e.current&&e.current.contains(t)))return;n()}},[n,r]);return u.useEffect(()=>{if(t){document.addEventListener("mousedown",h);const e=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}return()=>{document.removeEventListener("mousedown",h)}},[t,h]),t?b.createPortal(c.jsx(p.FluentProvider,{theme:i||p.teamsLightTheme,children:c.jsx(p.Card,{ref:a,className:d.card,style:{top:s.top,left:s.left},children:o})}),document.body):null},gt={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},yt=u.memo(({direction:e="vertical",justifyContent:t="flex-start",alignItems:n="stretch",gap:r,columnGap:o,rowGap:i,margin:a,padding:s,marginTop:l,marginBottom:u,marginLeft:d,marginRight:h,paddingTop:m,paddingBottom:f,paddingLeft:y,paddingRight:v,width:b,height:x,wrap:C=!1,children:w,style:S,className:k,overflow:P,background:E})=>{const A=g.css({display:"flex",flexDirection:"horizontal"===e?"row":"column",justifyContent:t,alignItems:n,gap:r&&gt[r]?gt[r]:r,columnGap:o&&gt[o]?gt[o]:o,rowGap:i&&gt[i]?gt[i]:i,margin:a&&gt[a]?gt[a]:a,padding:s&&gt[s]?gt[s]:s,marginTop:l&&gt[l]?gt[l]:l,marginBottom:u&&gt[u]?gt[u]:u,marginLeft:d&&gt[d]?gt[d]:d,marginRight:h&&gt[h]?gt[h]:h,paddingTop:m&&gt[m]?gt[m]:m,paddingBottom:f&&gt[f]?gt[f]:f,paddingLeft:y&&gt[y]?gt[y]:y,paddingRight:v&&gt[v]?gt[v]:v,width:b,height:x,overflow:P,flexWrap:C?"wrap":"nowrap",backgroundColor:E,...S});return c.jsx("div",{className:p.mergeClasses(k,A),children:w})}),vt=p.makeStyles({labelContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",...p.shorthands.gap("6px")},iconStyles:{width:"26px"},item:{paddingLeft:"15px"}}),bt=e=>{const{label:t,icon:n,isRequired:r}=e,o=vt();return c.jsx(c.Fragment,{children:c.jsxs("div",{className:o.labelContainer,children:[n&&L.isValidElement(n)?n:c.jsx(x.Icon,{icon:n,className:o.iconStyles,width:"20px",height:"20px",color:p.tokens.colorBrandForeground1}),c.jsx(p.Caption1,{style:{color:p.tokens.colorBrandForeground1},children:t}),c.jsx(p.Caption1,{style:{color:p.tokens.colorPaletteRedForeground1},children:r?" *":""})]})})},xt=p.makeStyles({root:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},spinner:{width:"100px",height:"100px"}}),Ct={xs:p.tokens.fontSizeBase200,s:p.tokens.fontSizeBase300,m:p.tokens.fontSizeBase400,l:p.tokens.fontSizeBase500,xl:p.tokens.fontSizeBase600,xxl:p.tokens.fontSizeHero700},wt={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},St={regular:p.tokens.fontWeightRegular,semibold:p.tokens.fontWeightSemibold,bold:p.tokens.fontWeightBold},kt=e=>{var t,n;const{onSelected:r,value:o,styles:i,options:a,apparence:s,shape:l,label:u}=e,d=L.useRef(),[h,m]=L.useState(o??a[0]),[f,g]=L.useState({option:[o?null==o?void 0:o.key:null==(t=null==a?void 0:a[0])?void 0:t.key]}),y=L.useRef(null);L.useEffect(()=>{var e;void 0!==o&&(m(o),g({option:[o.key]})),d.current=null==(e=a.find(e=>{var t;return e.key===((null==o?void 0:o.key)??(null==(t=a[0])?void 0:t.key))}))?void 0:e.icon},[o]);const[v,b]=L.useState(!1),x=L.useCallback((e,t)=>{b(t.open)},[]),C=L.useCallback(e=>(null==e?void 0:e.text)??"",[]),w=L.useCallback((e,{name:t,checkedItems:n})=>{var o;if("option"===t){const e=n[0];m(a.find(t=>t.key===e)),g({option:n}),d.current=null==(o=a.find(t=>t.key===e))?void 0:o.icon,r(a.find(t=>t.key===e))}},[a,r]);return c.jsx(c.Fragment,{children:c.jsx(p.Field,{label:u,style:i,ref:y,children:c.jsxs(p.Menu,{open:v,onOpenChange:x,children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:l??"circular",icon:d.current,appearance:s??"secondary",children:C(h)??"No data available"})}),c.jsx(p.MenuPopover,{children:c.jsx(p.MenuList,{onCheckedValueChange:w,checkedValues:f,style:{width:null==(n=y.current)?void 0:n.offsetWidth},children:a.map(e=>c.jsx(p.MenuItemRadio,{name:"option",value:e.key,icon:e.icon,disabled:e.disabled,children:C(e)},e.key))})})]})})})},Pt=()=>({styles:{container:g.css({display:"flex",alignItems:"center",alignContent:"center",overflow:"hidden",whiteSpace:"nowrap",padding:"8px",backgroundColor:"transparent"}),breadcrumbItem:g.css({minWidth:"fit-content",padding:0,margin:"0px"}),separator:g.css({marginRight:"8px"})},getStyles:(e,t)=>{const{icon:n}=e;switch(t){case"small":return g.css({fontSize:"12px",padding:"4px",paddingLeft:n?"0px":"4px"});case"medium":default:return g.css({fontSize:"14px",padding:"6px",paddingLeft:n?"0px":"6px"});case"large":return g.css({fontSize:"16px",padding:"8px",paddingLeft:n?"0px":"8px"});case"current":return g.css({fontWeight:p.tokens.fontWeightBold,cursor:"default",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word",fontFamily:p.tokens.fontFamilyBase})}}}),Et=({items:e,theme:t,size:n="medium"})=>{const[r,o]=u.useState(!1),i=u.useRef(null),a=u.useRef(null),[s,l]=u.useState({top:0,left:0,position:"absolute"}),{getStyles:d}=Pt();return u.useEffect(()=>{const e=e=>{var t,n;(null==(t=i.current)?void 0:t.contains(e.target))||(null==(n=a.current)?void 0:n.contains(e.target))||!r||o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),c.jsxs(c.Fragment,{children:[c.jsx(p.Button,{ref:i,icon:c.jsx(v.MoreHorizontalRegular,{}),appearance:"transparent",onClick:()=>{var e,t;if(i.current){const n=i.current.getBoundingClientRect(),r=window.innerWidth,s=window.innerHeight,c=(null==(e=a.current)?void 0:e.offsetWidth)||200,u=(null==(t=a.current)?void 0:t.offsetHeight)||100;let d=n.bottom+window.scrollY,p=n.left+window.scrollX;p+c>r&&(p=r-c-10),d+u>s&&(d=n.top+window.scrollY-u),l({top:d,left:p,position:"absolute"}),o(e=>!e)}}}),r&&b.createPortal(c.jsx(p.FluentProvider,{theme:t,children:c.jsx(p.Card,{ref:a,style:{...s,zIndex:1e3,padding:"8px",minWidth:"150px"},children:e.map((e,t)=>c.jsx(p.Button,{icon:e.icon?e.icon:null,appearance:"transparent",onClick:()=>{var t;null==(t=e.onClick)||t.call(e),o(!1)},children:c.jsx(p.Text,{className:d(e,n),children:e.label})},`overflow-${t}`))})}),document.body)]})},At=()=>{const e=L.useCallback((e,t)=>{const n=new Date(e),r=new Date(t),o=2*n.getHours()+(n.getMinutes()>=1?1:0),i=2*r.getHours()+(r.getMinutes()>=1?2:0);return{spanSlots:i-o,startSlot:o,endSlot:i}},[]),t=L.useCallback((e,t=20,n=10)=>{const r=(e,t,n)=>{const r=t*Math.min(n,100-n)/100,o=t=>{const o=(t+e/30)%12,i=n-r*Math.max(Math.min(o-3,9-o,1),-1);return Math.round(255*i).toString(16).padStart(2,"0")};return`#${o(0)}${o(8)}${o(4)}`},{h:o,s:i,l:a}=(e=>{const t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,o=Math.max(t,n,r),i=Math.min(t,n,r),a=o-i;let s=0,l=0;const c=(o+i)/2;if(0!==a){switch(l=c>.5?a/(2-o-i):a/(o+i),o){case t:s=(n-r)/a+(n<r?6:0);break;case n:s=(r-t)/a+2;break;case r:s=(t-n)/a+4}s/=6}return{h:360*s,s:100*l,l:100*c}})(e);return{lightColor:r(o,i,Math.min(a+t,100)),hoverColor:r(o,i,Math.min(a+n,100))}},[]),n=L.useCallback(e=>{const t={backgroundColor:p.tokens.colorNeutralBackground3,hoverColor:p.tokens.colorNeutralBackground3Hover};return{"no category":t,meeting:{backgroundColor:p.tokens.colorPaletteBlueBackground2,hoverColor:p.tokens.colorPaletteBlueBorderActive},appointment:{backgroundColor:p.tokens.colorPaletteGreenBackground2,hoverColor:p.tokens.colorPaletteGreenBorderActive},task:{backgroundColor:p.tokens.colorPaletteRedBackground2,hoverColor:p.tokens.colorPaletteRedBorderActive},deadline:{backgroundColor:p.tokens.colorPaletteYellowBackground2,hoverColor:p.tokens.colorPaletteYellowBorderActive},holiday:{backgroundColor:p.tokens.colorPalettePurpleBackground2,hoverColor:p.tokens.colorPalettePurpleBorderActive},celebration:{backgroundColor:p.tokens.colorPaletteDarkOrangeBackground2,hoverColor:p.tokens.colorPaletteDarkOrangeBorderActive},reminder:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},workshop:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},webinar:{backgroundColor:p.tokens.colorPaletteMagentaBackground2,hoverColor:p.tokens.colorPaletteMagentaBorderActive},conference:{backgroundColor:p.tokens.colorPaletteBrownBackground2,hoverColor:p.tokens.colorPaletteBrownBorderActive}}[e.toLowerCase()]||t},[]),r=L.useCallback(e=>{let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);const n=(16777215&t).toString(16).toUpperCase();return`#${"00000".substring(0,6-n.length)+n}`},[]);return{getSpanSlots:e,generateLightAndHoverColors:t,getEventColors:n,generateColor:r,getCalendarColors:L.useCallback(e=>{const t={beige:{backgroundColor:p.tokens.colorPaletteBeigeBackground2,hoverColor:p.tokens.colorPaletteBeigeBorderActive},blue:{backgroundColor:p.tokens.colorPaletteBlueBackground2,hoverColor:p.tokens.colorPaletteBlueBorderActive},brown:{backgroundColor:p.tokens.colorPaletteBrownBackground2,hoverColor:p.tokens.colorPaletteBrownBorderActive},gold:{backgroundColor:p.tokens.colorPaletteGoldBackground2,hoverColor:p.tokens.colorPaletteGoldBorderActive},lavender:{backgroundColor:p.tokens.colorPaletteLavenderBackground2,hoverColor:p.tokens.colorPaletteLavenderBorderActive},magenta:{backgroundColor:p.tokens.colorPaletteMagentaBackground2,hoverColor:p.tokens.colorPaletteMagentaBorderActive},navy:{backgroundColor:p.tokens.colorPaletteNavyBackground2,hoverColor:p.tokens.colorPaletteNavyBorderActive},pink:{backgroundColor:p.tokens.colorPalettePinkBackground2,hoverColor:p.tokens.colorPalettePinkBorderActive},plum:{backgroundColor:p.tokens.colorPalettePlumBackground2,hoverColor:p.tokens.colorPalettePlumBorderActive},purple:{backgroundColor:p.tokens.colorPalettePurpleBackground2,hoverColor:p.tokens.colorPalettePurpleBorderActive},red:{backgroundColor:p.tokens.colorPaletteRedBackground2,hoverColor:p.tokens.colorPaletteRedBorderActive},teal:{backgroundColor:p.tokens.colorPaletteTealBackground2,hoverColor:p.tokens.colorPaletteTealBorderActive},anchor:{backgroundColor:p.tokens.colorPaletteAnchorBackground2,hoverColor:p.tokens.colorPaletteAnchorBorderActive},"dark-red":{backgroundColor:p.tokens.colorPaletteDarkRedBackground2,hoverColor:p.tokens.colorPaletteDarkRedBorderActive},cranberry:{backgroundColor:p.tokens.colorPaletteCranberryBackground2,hoverColor:p.tokens.colorPaletteCranberryBorderActive},pumpkin:{backgroundColor:p.tokens.colorPalettePumpkinBackground2,hoverColor:p.tokens.colorPalettePumpkinBorderActive},peach:{backgroundColor:p.tokens.colorPalettePeachBackground2,hoverColor:p.tokens.colorPalettePeachBorderActive},marigold:{backgroundColor:p.tokens.colorPaletteMarigoldBackground2,hoverColor:p.tokens.colorPaletteMarigoldBorderActive},brass:{backgroundColor:p.tokens.colorPaletteBrassBackground2,hoverColor:p.tokens.colorPaletteBrassBorderActive},forest:{backgroundColor:p.tokens.colorPaletteForestBackground2,hoverColor:p.tokens.colorPaletteForestBorderActive},seafoam:{backgroundColor:p.tokens.colorPaletteSeafoamBackground2,hoverColor:p.tokens.colorPaletteSeafoamBorderActive},"dark-green":{backgroundColor:p.tokens.colorPaletteDarkGreenBackground2,hoverColor:p.tokens.colorPaletteDarkGreenBorderActive},"light-teal":{backgroundColor:p.tokens.colorPaletteLightTealBackground2,hoverColor:p.tokens.colorPaletteLightTealBorderActive},steel:{backgroundColor:p.tokens.colorPaletteSteelBackground2,hoverColor:p.tokens.colorPaletteSteelBorderActive},"royal-blue":{backgroundColor:p.tokens.colorPaletteRoyalBlueBackground2,hoverColor:p.tokens.colorPaletteRoyalBlueBorderActive},cornflower:{backgroundColor:p.tokens.colorPaletteCornflowerBackground2,hoverColor:p.tokens.colorPaletteCornflowerBorderActive},grape:{backgroundColor:p.tokens.colorPaletteGrapeBackground2,hoverColor:p.tokens.colorPaletteGrapeBorderActive},lilac:{backgroundColor:p.tokens.colorPaletteLilacBackground2,hoverColor:p.tokens.colorPaletteLilacBorderActive},mink:{backgroundColor:p.tokens.colorPaletteMinkBackground2,hoverColor:p.tokens.colorPaletteMinkBorderActive},platinum:{backgroundColor:p.tokens.colorPalettePlatinumBackground2,hoverColor:p.tokens.colorPalettePlatinumBorderActive}};return t[e]||t["royal-blue"]},[]),formatDate:L.useCallback((e,t)=>{const n=h.parseISO(e);return h.format(n,t)},[])}},It={start:"Start",end:"End",location:"Location",attendees:"Attendees",details:"Details"},_t="32px",Tt=({fieldLabel:e,fieldValue:t,icon:n})=>c.jsxs(st,{children:[c.jsx(bt,{label:e,icon:n}),c.jsx(st,{paddingLeft:_t,children:c.jsx(p.Body1,{children:t})})]}),jt=e=>{const{event:t,strings:n=It}=e,{title:r,start:o,end:i,location:a,category:s,attendees:l,weblink:u}=t,{styles:d}={styles:{banner:g.css({display:"flex",justifyContent:"center",alignContent:"center",alignItems:"center",padding:"5px 10px 0px 10px"}),fieldContainer:g.css({paddingLeft:_t}),title:g.css({lineClamp:2,overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word",WebkitLineClamp:2})}},{formatDate:h}=At(),m=h(o,"PPp"),f=h(i,"PPp"),y=p.partitionAvatarGroupItems({items:(null==l?void 0:l.map(e=>e.id))||[]}),v=L.useCallback(e=>(null==l?void 0:l.find(t=>t.id===e))||void 0,[l]),b=L.useCallback(()=>c.jsxs(st,{children:[c.jsx(bt,{label:n.attendees,icon:"ph:users-three"}),c.jsx(st,{paddingLeft:_t,children:c.jsxs(p.AvatarGroup,{layout:"stack",children:[y.inlineItems.map(e=>{var t,n;return c.jsx(p.AvatarGroupItem,{name:null==(t=v(e))?void 0:t.name,image:{src:null==(n=v(e))?void 0:n.imageUrl}},e)}),y.overflowItems&&c.jsx(p.AvatarGroupPopover,{children:y.overflowItems.map(e=>{var t,n;return c.jsx(p.AvatarGroupItem,{name:null==(t=v(e))?void 0:t.name,image:{src:null==(n=v(e))?void 0:n.imageUrl}},e)})})]})})]}),[y,v,n.attendees]);return c.jsx(c.Fragment,{children:c.jsx(tt,{appearance:"subtle",padding:"m",paddingTop:"s",width:"250px",cardBody:c.jsxs(st,{RowGap:10,children:[c.jsx("div",{className:d.banner,children:c.jsx(p.Subtitle1,{className:d.title,children:r})}),c.jsx(p.Divider,{}),s&&c.jsx(st,{horizontal:!0,horizontalAlign:"end",width:"100%",children:c.jsx(p.Badge,{appearance:"filled",children:s})}),c.jsx(Tt,{fieldLabel:n.start,fieldValue:m,icon:"mingcute:time-line"}),c.jsx(Tt,{fieldLabel:n.end,fieldValue:f,icon:"mingcute:time-line"}),c.jsx(Tt,{fieldLabel:n.location,fieldValue:a,icon:"mingcute:location-line"}),c.jsx(b,{})]}),cardFooterContent:c.jsx(st,{horizontal:!0,horizontalAlign:"end",width:"100%",children:c.jsx(p.Button,{appearance:"subtle",onClick:()=>{window.open(u,"_blank")},children:n.details})})})})},Mt=()=>({styles:{calendarWrapper:g.css({padding:"20px",paddingTop:"10px",overflow:"auto",flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gridTemplateRows:"auto",gridAutoRows:"minmax(100px, 1fr)",gap:"1px",width:"calc(100% - 40px)"}),header:g.css({display:"flex",justifyContent:"start",gap:"10px",alignItems:"center",padding:"16px"}),dayHeader:g.css({textAlign:"start",padding:"8px",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),day:g.css({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:`1px solid ${p.tokens.colorNeutralStroke1}`,backgroundColor:p.tokens.colorNeutralBackground1,position:"relative"}),otherMonthDay:g.css({color:p.tokens.colorNeutralStroke2,backgroundColor:p.tokens.colorNeutralBackground2}),cardDay:g.css({height:"100%",minHeight:100,borderRadius:0,overflow:"hidden !important",rowGap:5}),cardDayOnHover:g.css({":hover":{backgroundColor:p.tokens.colorNeutralBackground2}}),currentDay:g.css({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),currentDayLabel:g.css({color:p.tokens.colorBrandBackground,fontWeight:600}),eventCard:g.css({display:"flex",flexDirection:"column",alignItems:"flex-start",zIndex:1}),eventContainer:g.css({display:"flex",flexDirection:"column",overflowY:"auto",paddingTop:"5px",paddingBottom:"5px",paddingLeft:"5px",paddingRight:"5px","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),eventCardWeekView:g.css({backgroundColor:p.tokens.colorBrandBackground,color:p.tokens.colorNeutralForegroundOnBrand,borderRadius:"4px",padding:"4px",margin:"2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",height:"100%"}),popoverContent:g.css({padding:0,borderTopWidth:20,borderTopStyle:"solid"}),cardMonthTitle:g.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"})},applyEventHouverColorClass:(e,t)=>g.css({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}})}),Nt=e=>{const t=p.useId(),{events:n,date:r,onCardHoverChange:o,columnHeight:i}=e,{styles:a,applyEventHouverColorClass:s}=Mt(),l=L.useRef(null),{getEventColors:u,getCalendarColors:d}=At(),m=L.useCallback(e=>{o&&o(!0,e)},[o]),f=L.useCallback(e=>{o&&o(!1,e)},[o]),g=L.useCallback(e=>{var t;null==(t=l.current)||t.setTarget(e)},[l]),y=L.useCallback((e,t,n)=>c.jsx("div",{ref:g,children:c.jsx(tt,{className:p.mergeClasses(a.eventCard,s(n.backgroundColor,n.backgroundColor)),paddingTop:"4px",paddingBottom:"4px",paddingLeft:"8px",paddingRight:"8px",marginTop:0===e?"0px":"5px",cardHeader:c.jsx(p.Caption1,{className:a.cardMonthTitle,children:t.title}),onMouseEnter:()=>m(t.title),onMouseLeave:()=>f(t.title)},e)}),[m,f,s]),v=L.useCallback((e,n,r)=>c.jsxs(p.Popover,{withArrow:!0,mouseLeaveDelay:30,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[c.jsx(p.PopoverTrigger,{children:y(n,e,r)}),c.jsx(p.PopoverSurface,{"aria-labelledby":t,className:p.mergeClasses(a.popoverContent),children:c.jsx(jt,{event:e})})]},n),[y,t,a.popoverContent]);return n&&(null==n?void 0:n.length)?c.jsx("div",{style:{height:i},className:a.eventContainer,children:n.map((e,t)=>{var n;const o=h.startOfDay(new Date(e.start)),i=h.endOfDay(new Date(e.end));if(!h.isWithinInterval(r,{start:o,end:i}))return null;let s;s=e.color?d(e.color):u(e.category);const l=null==(n=e.onRenderInMonthView)?void 0:n.call(e,e);return L.isValidElement(l)?L.cloneElement(l,{className:p.mergeClasses(l.props.className,a.eventCard)}):e.enableOnHouver?v(e,t,s):y(t,e,s)})}):c.jsx(c.Fragment,{children:" "})},Dt=e=>{const{day:t,currentMonth:n,events:r,date:o,columnHeight:i,onDayClick:a}=e,{styles:s}=Mt(),l=new Date,[u,d]=L.useState(!1),m=L.useMemo(()=>h.isSameDay(o,l),[o,l]),f=L.useMemo(()=>c.jsx(st,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",paddingLeft:"m",paddingRight:"m",children:c.jsxs(p.Body2,{className:s.currentDayLabel,children:[t," ",l.toLocaleString("default",{month:"short"})]})}),[t]),g=L.useCallback(e=>{d(e)},[]);return c.jsx(c.Fragment,{children:c.jsx(tt,{onClick:a?()=>a(o):void 0,className:p.mergeClasses(s.cardDay,n?"":s.otherMonthDay,m?s.currentDay:"",u?"":s.cardDayOnHover),cardHeader:m?f:c.jsx(st,{horizontal:!0,paddingLeft:"m",paddingRight:"m",children:c.jsx(p.Body2,{children:t})}),paddingTop:"m",paddingBottom:"m",paddingLeft:"0px",paddingRight:"0px",cardBody:c.jsx(Nt,{events:r,date:o,onCardHoverChange:g,columnHeight:i-60})})})},Ot=()=>({styles:{container:g.css({display:"flex",flexDirection:"column",width:"calc(100% - 40px)",height:"100vh",overflow:"hidden",padding:"20px"}),header:g.css({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),weekGrid:g.css({display:"grid",gridTemplateColumns:"80px repeat(7, 1fr)",gridTemplateRows:"50px 40px repeat(48, 33px)",height:"fit-content",overflowY:"auto",border:`1px solid ${p.tokens.colorNeutralStroke1}`,maxHeight:"calc(100vh - 100px)",scrollbarWidth:"thin",scrollbarColor:`${p.tokens.colorBrandBackground} ${p.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandBackground,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorBrandBackgroundHover}}),blankHeader:g.css({gridColumn:"1",backgroundColor:p.tokens.colorNeutralBackground3,borderBottom:`3px solid ${p.tokens.colorNeutralStroke3}`,position:"sticky",top:0,zIndex:10}),timeColumn:g.css({gridColumn:"1",gridRow:"3 / span 49",display:"flex",flexDirection:"column",backgroundColor:p.tokens.colorNeutralBackground1,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`}),timeCell:g.css({height:"100%",display:"flex",alignItems:"center",fontSize:"12px",color:p.tokens.colorNeutralForeground3,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,justifyContent:"center"}),fullDayRow:g.css({gridRow:"2",display:"grid",gridTemplateColumns:"80px repeat(7, 1fr)",gap:"0",padding:"0",backgroundColor:p.tokens.colorNeutralBackground2,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayLabel:g.css({gridColumn:"1",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",color:p.tokens.colorBrandBackground,padding:"5px",borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayCell:g.css({borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,display:"flex",flexDirection:"row",gap:"0px",padding:"4px",borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`,overflow:"hidden"}),fullDayEvent:g.css({flex:"1 1 auto",minWidth:"24px",height:"24px",padding:"4px 8px",backgroundColor:p.tokens.colorBrandBackground,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}),dayHeaderCell:g.css({textAlign:"center",backgroundColor:p.tokens.colorNeutralBackground2,padding:"8px",fontWeight:"bold",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,position:"sticky",top:0,zIndex:10}),todayHeaderCell:g.css({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),eventCard:g.css({padding:2,alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",overflow:"hidden",":hover":{pointerEvents:"auto",cursor:"pointer"}}),event:g.css({height:"100%",backgroundColor:p.tokens.colorBrandBackground,borderRadius:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",":hover":{pointerEvents:"auto",cursor:"pointer"}}),dayCell:g.css({borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,position:"relative",overflow:"visible",FlexDirection:"column",gap:"4px"}),currentTimeIndicator:g.css({position:"absolute",left:0,height:"2px",backgroundColor:p.tokens.colorPaletteRedBorderActive,width:"100%",zIndex:1}),currentHalfHourCell:g.css({border:`2px solid ${p.tokens.colorPaletteRedBorderActive}`}),eventTitle:g.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"}),popoverContent:g.css({padding:0,borderTopWidth:20,borderTopStyle:"solid"})},applyEventHouverColorClass:u.useCallback((e,t)=>g.css({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}}),[p.tokens.colorBrandBackground,p.tokens.colorBrandBackgroundHover]),appyDynamicStyles:u.useCallback((e,t,n,r)=>g.css({flex:`0 0 calc(100% / ${t})`,height:n*r+"px",left:10*e+"%",width:`calc(${100-10*e}% - 8px)`,margin:4,marginTop:0,marginBottom:0}),[])}),Vt={timeSeparator:" - ",hourSuffix:"H"},Bt=({event:e,colors:t,spanSlots:n,rowHeight:r,eventIndex:o,eventCount:i,strings:a=Vt})=>{const s=p.useId(),{styles:l,applyEventHouverColorClass:u,appyDynamicStyles:d}=Ot(),h=L.useRef(null),{formatDate:m}=At(),f=L.useMemo(()=>c.jsx("div",{children:c.jsxs(st,{columnGap:4,verticalAlign:"center",children:[c.jsx(p.Caption1Strong,{className:l.eventTitle,children:e.title}),c.jsxs(st,{columnGap:4,horizontal:!0,verticalAlign:"center",horizontalAlign:"start",children:[c.jsxs(p.Caption1,{children:[m(e.start,"HH:mm"),a.hourSuffix]}),a.timeSeparator,c.jsxs(p.Caption1,{children:[m(e.end,"HH:mm"),a.hourSuffix]})]})]})}),[e,m,a,l.eventTitle]);return c.jsx(p.Card,{ref:h,className:p.mergeClasses(l.eventCard,u(t.backgroundColor,t.backgroundColor),d(o,i,r,n)),children:e.enableOnHouver?c.jsxs(p.Popover,{withArrow:!0,mouseLeaveDelay:50,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[c.jsx(p.PopoverTrigger,{children:f}),c.jsx(p.PopoverSurface,{"aria-labelledby":s,className:p.mergeClasses(l.popoverContent),children:c.jsx(jt,{event:e})})]}):f},e.id)},Rt=({event:e,eventCount:t,spanSlots:n,rowHeight:r,eventIndex:o,view:i})=>{var a,s;const{styles:l,appyDynamicStyles:u}=Ot(),{getEventColors:d,getCalendarColors:h}=At(),m=e.color?h(e.color):d(e.category),f="day"===i?null==(a=e.onRenderInDayView)?void 0:a.call(e,e):null==(s=e.onRenderInWeekView)?void 0:s.call(e,e);return L.isValidElement(f)?L.cloneElement(f,{event:e,className:p.mergeClasses(f.props.className,l.eventCard,u(o,t,r,n)),style:{...f.props.style}}):c.jsx(Bt,{event:e,colors:m,spanSlots:n,rowHeight:r,eventIndex:o,eventCount:t},e.id)};for(var zt,Lt=[],Ht=0;Ht<256;++Ht)Lt.push((Ht+256).toString(16).slice(1));var Ft=new Uint8Array(16);function Wt(){if(!zt&&!(zt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zt(Ft)}const $t={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ut(e,t,n){if($t.randomUUID&&!e)return $t.randomUUID();var r=(e=e||{}).random||(e.rng||Wt)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(Lt[e[t+0]]+Lt[e[t+1]]+Lt[e[t+2]]+Lt[e[t+3]]+"-"+Lt[e[t+4]]+Lt[e[t+5]]+"-"+Lt[e[t+6]]+Lt[e[t+7]]+"-"+Lt[e[t+8]]+Lt[e[t+9]]+"-"+Lt[e[t+10]]+Lt[e[t+11]]+Lt[e[t+12]]+Lt[e[t+13]]+Lt[e[t+14]]+Lt[e[t+15]]).toLowerCase()}(r)}const Jt=e=>{const t=u.useCallback(e=>e.map(e=>({...e,id:e.id||Ut()})),[]),n=u.useCallback(t=>new Date(new Date(t).toLocaleString(void 0,{timeZone:e})),[e]),r=u.useCallback((e,r,o)=>{const i=t(e),a=new Date(r,o+1,0).getDate(),s={};for(let t=1;t<=a;t++){const e=new Date(r,o,t),n=h.format(e,"yyyy-MM-dd");s[n]=[]}return i.forEach(e=>{const t=n(e.start),r=n(e.end),o=new Date(t);for(;o<=r;){const t=h.format(o,"yyyy-MM-dd");s[t]&&s[t].push(e),o.setDate(o.getDate()+1)}}),s},[n]),o=u.useCallback((e,r)=>{const o=[],i=n(r),a=t(e);for(let t=0;t<7;t++){const e=new Date(i);e.setDate(i.getDate()+t);const r=h.format(e,"yyyy-MM-dd"),s=Array.from({length:48},(e,t)=>({time:`${String(Math.floor(t/2)).padStart(2,"0")}:${t%2==0?"00":"30"}`,events:[]})),l=[];a.forEach(e=>{const t=n(e.start),o=n(e.end);if(e.isFullDay)h.format(t,"yyyy-MM-dd")<=r&&h.format(o,"yyyy-MM-dd")>=r&&l.push(e);else if(h.format(t,"yyyy-MM-dd")<=r&&h.format(o,"yyyy-MM-dd")>=r){const n=new Date(t);for(;n<=o;){if(h.format(n,"yyyy-MM-dd")===r){const t=2*n.getHours()+(n.getMinutes()>=30?1:0);s[t]&&s[t].events.push(e)}n.setMinutes(n.getMinutes()+30)}}}),o.push({date:r,fullDayEvents:l,timeSlots:s})}return o},[n]);return{getMonthCalendar:r,getWeekEvents:o}},Gt=()=>({styles:{container:g.css({display:"flex",flexDirection:"column",width:"calc(100% - 40px)",height:"100vh",overflow:"hidden",padding:"20px"}),header:g.css({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),dayGrid:g.css({display:"grid",gridTemplateColumns:"80px 1fr",gridTemplateRows:"50px 40px repeat(48, 33px)",height:"calc(100vh - 100px)",overflowY:"auto",border:`1px solid ${p.tokens.colorNeutralStroke1}`,maxHeight:"fit-content",scrollbarWidth:"thin",scrollbarColor:`${p.tokens.colorBrandBackground} ${p.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandBackground,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorBrandBackgroundHover}}),blankHeader:g.css({gridColumn:"1",backgroundColor:p.tokens.colorNeutralBackground3,borderBottom:`3px solid ${p.tokens.colorNeutralStroke3}`}),timeColumn:g.css({gridColumn:"1",gridRow:"3 / span 49",display:"flex",flexDirection:"column",backgroundColor:p.tokens.colorNeutralBackground1,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`}),timeCell:g.css({height:"100%",maxHeight:"32px",minHeight:"32px",display:"flex",alignItems:"center",fontSize:"12px",color:p.tokens.colorNeutralForeground3,borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,justifyContent:"center"}),fullDayRow:g.css({gridRow:"2",display:"grid",gridTemplateColumns:"80px 33px",gap:"0",padding:"0",backgroundColor:p.tokens.colorNeutralBackground2,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayLabel:g.css({gridColumn:"1",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",color:p.tokens.colorBrandBackground,padding:"5px",borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`}),fullDayCell:g.css({borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,display:"flex",flexDirection:"row",gap:"2px",padding:"4px",borderBottom:`3px solid ${p.tokens.colorNeutralStroke2}`,overflow:"hidden"}),fullDayEvent:g.css({flex:"1 1 auto",minWidth:"24px",height:"24px",padding:"4px 8px",backgroundColor:p.tokens.colorBrandBackground,color:p.tokens.colorNeutralForegroundOnBrand,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}),dayHeaderCell:g.css({textAlign:"center",backgroundColor:p.tokens.colorNeutralBackground2,padding:"8px",fontWeight:"bold",borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`}),todayHeaderCell:g.css({borderTop:`5px solid ${p.tokens.colorBrandBackground}`}),eventCard:g.css({alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",overflow:"hidden"}),dayCell:g.css({borderBottom:`1px solid ${p.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${p.tokens.colorNeutralStroke1}`,position:"relative",overflow:"visible",FlexDirection:"column",gap:"4px"}),currentTimeIndicator:g.css({position:"absolute",left:0,height:"2px",backgroundColor:p.tokens.colorPaletteRedBorderActive,width:"100%",zIndex:1}),currentHalfHourCell:g.css({border:`2px solid ${p.tokens.colorPaletteRedBorderActive}`}),eventTitle:g.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"})},applyEventHouverColorClass:(e,t)=>g.css({backgroundColor:e??p.tokens.colorBrandBackground,":hover":{backgroundColor:t??p.tokens.colorBrandBackgroundHover}})}),qt={allDay:"All Day"},Xt=e=>{const{events:t,currentDay:n,height:r,strings:o=qt}=e,{styles:i}=Gt(),a=u.useRef(null),{getSpanSlots:s,getEventColors:l,getCalendarColors:d}=At(),m=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:f}=Jt(m),g=L.useCallback(()=>Array.from({length:24},(e,t)=>c.jsxs(L.Fragment,{children:[c.jsx("div",{className:i.timeCell,children:c.jsxs(p.Body1Strong,{children:[t,":00"]})}),c.jsx("div",{className:i.timeCell})]},t)),[i.timeCell]),y=L.useCallback(()=>c.jsxs(c.Fragment,{children:[c.jsx("div",{className:i.blankHeader}),Array.from({length:1},(e,t)=>{const r=h.addDays(n,t),o=h.isToday(r)?i.todayHeaderCell:"";return c.jsxs("div",{className:p.mergeClasses(i.dayHeaderCell,o),children:[c.jsx(p.Text,{weight:"semibold",size:600,style:{paddingRight:10},children:h.format(r,"dd")}),c.jsx(p.Subtitle1,{children:h.format(r,"LLLL, yyyy")})]},t)})]}),[n,i.blankHeader,i.dayHeaderCell,i.todayHeaderCell]),v=L.useCallback(()=>{const e=f(t,n.toISOString());return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:i.fullDayLabel,children:c.jsx(p.Body1,{children:o.allDay})}),Array.from({length:1},(t,r)=>{const o=h.format(h.addDays(n,r),"yyyy-MM-dd"),a=e.find(e=>e.date===o),s=(null==a?void 0:a.fullDayEvents)||[];return c.jsx("div",{className:i.fullDayCell,children:s.map(e=>c.jsx("div",{className:i.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?d(e.color).backgroundColor:l(e.category).backgroundColor},children:c.jsx(p.Caption1Strong,{className:i.eventTitle,children:e.title})},e.id))},r)})]})},[n,f,i.fullDayCell,i.fullDayEvent,i.fullDayLabel,i.eventTitle,d,l,t,o.allDay]),b=L.useCallback(()=>{const e=f(t,n.toISOString());return Array.from({length:1},(t,r)=>{const o=h.format(h.addDays(n,r),"yyyy-MM-dd"),a=e.find(e=>e.date===o);return c.jsx(L.Fragment,{children:null==a?void 0:a.timeSlots.map((e,t)=>{const n=e.events.length;return c.jsx("div",{className:i.dayCell,style:{gridRow:t+3},children:e.events.map((e,r)=>{const o=new Date(e.start),i=new Date(e.end),{spanSlots:a,startSlot:l}=s(o,i);return t===l?c.jsx(Rt,{event:e,eventCount:n,spanSlots:a,rowHeight:33,eventIndex:r,view:"day"},e.id):null})},t)})},r)})},[n,s,f,i.dayCell,t]);return c.jsx("div",{className:i.container,style:{height:r},children:c.jsxs("div",{ref:a,className:i.dayGrid,children:[c.jsx("div",{className:i.timeColumn,children:g()}),y(),v(),b()]})})};var Yt=(e=>(e.Day="day",e.Week="week",e.Month="month",e))(Yt||{});const Zt={month:"Month",week:"Week",day:"Day"},Qt=e=>{const{onSelected:t,value:n,strings:r=Zt}=e,[o,i]=L.useState(n??Yt.Month),[a,s]=L.useState({view:[n??Yt.Month]}),l=L.useMemo(()=>v.bundleIcon(v.CalendarDayFilled,v.CalendarDayRegular),[]),u=L.useMemo(()=>v.bundleIcon(v.CalendarMonthFilled,v.CalendarMonthRegular),[]),d=L.useMemo(()=>v.bundleIcon(v.CalendarWorkWeekFilled,v.CalendarWorkWeekRegular),[]);L.useEffect(()=>{void 0!==n&&(i(n),s({view:[n]}))},[n]);const[h,m]=L.useState(!1),f=L.useCallback((e,t)=>{m(t.open)},[]),g=L.useCallback(()=>{switch(o){case Yt.Month:return c.jsx(u,{});case Yt.Week:return c.jsx(d,{});case Yt.Day:return c.jsx(l,{});default:return c.jsx(u,{})}},[o]),y=L.useCallback(e=>{switch(e){case Yt.Month:return r.month;case Yt.Week:return r.week;case Yt.Day:return r.day;default:return r.month}},[r]),b=L.useCallback((e,{name:n,checkedItems:r})=>{if("view"===n){const e=r[0];i(e),s({view:r}),t(e)}},[t]);return c.jsx(c.Fragment,{children:c.jsxs(p.Menu,{open:h,onOpenChange:f,children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:"circular",icon:g(),style:{minWidth:"150px"},children:y(o)})}),c.jsx(p.MenuPopover,{children:c.jsxs(p.MenuList,{onCheckedValueChange:b,checkedValues:a,children:[c.jsx(p.MenuItemRadio,{icon:c.jsx(l,{}),name:"view",value:Yt.Day,children:r.day}),c.jsx(p.MenuItemRadio,{icon:c.jsx(d,{}),name:"view",value:Yt.Week,children:r.week}),c.jsx(p.MenuItemRadio,{icon:c.jsx(u,{}),name:"view",value:Yt.Month,children:r.month})]})})]})})},Kt=L.memo(e=>{const{onSelected:t,value:n}=e,[r,o]=L.useState(n??new Date),[i,a]=L.useState(()=>{const e=n??new Date;return d.format(e,"dd MMM, yyyy")}),[s,l]=L.useState(!1),u=L.useCallback((e,t)=>{l(t.open)},[]),h=L.useMemo(()=>v.bundleIcon(v.CalendarMonthFilled,v.CalendarMonthRegular),[]),m=L.useCallback(e=>{if(e){const n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=d.utcToZonedTime(e,n);o(r),a(d.format(r,"dd MMM, yyyy")),t(r),l(!1)}},[t]);return c.jsxs(p.Menu,{open:s,onOpenChange:u,children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:"circular",icon:c.jsx(h,{}),style:{minWidth:"200px"},children:i})}),c.jsx(p.MenuPopover,{style:{maxWidth:"fit-content"},children:c.jsx(p.MenuList,{children:c.jsx(w.Calendar,{highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:m,value:r})})})]})}),en={months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],goToToday:"Go to today"},tn=e=>{const{onDateChange:t,defaultSelectedDate:n,onDismiss:r,strings:o=en}=e,i={root:g.css({outline:"none"})},[a,s]=L.useState(n??new Date),l=L.useCallback((e,n)=>{s(e),t(e),r()},[t,r]);return c.jsx(c.Fragment,{children:c.jsx(w.Calendar,{className:i.root,dateRangeType:w.DateRangeType.Month,highlightSelectedMonth:!0,isDayPickerVisible:!1,onSelectDate:l,value:a,onDismiss:r,showGoToToday:!1,allFocusable:!1,strings:o})})},nn=e=>{const{onSelected:t,value:n}=e,r=v.bundleIcon(v.CalendarMonthFilled,v.CalendarMonthRegular),[o,i]=L.useState(n??new Date);L.useEffect(()=>{t(n??new Date),i(n??new Date)},[n]);const[a,s]=L.useState(!1),l=L.useCallback(e=>{t(e),i(e)},[]);return c.jsx(c.Fragment,{children:c.jsxs(p.Menu,{open:a,onOpenChange:(e,t)=>{s(t.open)},children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:"circular",icon:c.jsx(r,{}),style:{minWidth:"200px"},children:h.format(o,"MMMM yyyy")})}),c.jsx(p.MenuPopover,{children:c.jsx(p.MenuList,{children:c.jsx(tn,{onDateChange:l,defaultSelectedDate:o,onDismiss:()=>{s(!1)}})})})]})})},rn={selectWeekPlaceholder:"Select a week"},on=e=>{const t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=d.format(e.start,"MMM",{timeZone:t}),r=d.format(e.end,"MMM",{timeZone:t});return d.format(e.start,"yyyy",{timeZone:t})!==d.format(e.end,"yyyy",{timeZone:t})?`${d.format(e.start,"dd MMM yyyy",{timeZone:t})} - ${d.format(e.end,"dd MMM yyyy",{timeZone:t})}`:n!==r?`${d.format(e.start,"dd MMM",{timeZone:t})} - ${d.format(e.end,"dd MMM yyyy",{timeZone:t})}`:`${d.format(e.start,"dd",{timeZone:t})} - ${d.format(e.end,"dd MMM yyyy",{timeZone:t})}`},an=e=>{const t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=d.utcToZonedTime(e,t),r=new Date(n);r.setDate(n.getDate()-n.getDay());const o=new Date(r);return o.setDate(r.getDate()+6),{start:d.utcToZonedTime(r,t),end:d.utcToZonedTime(o,t)}},sn=L.memo(e=>{const{onSelected:t,value:n,strings:r=rn}=e,o=w.DateRangeType.Week,[i,a]=L.useState(n??new Date),[s,l]=L.useState(()=>{const e=n??new Date;if(e){const t=an(e);return on(t)}return r.selectWeekPlaceholder}),[u,d]=L.useState(!1),h=L.useCallback((e,t)=>{d(t.open)},[]),m=L.useMemo(()=>v.bundleIcon(v.CalendarMonthFilled,v.CalendarMonthRegular),[]),f=L.useCallback(e=>{if(e){a(e);const n=an(e),r=on(n);l(r),t({startDate:n.start,endDate:n.end}),d(!1)}},[t]),g=L.useMemo(()=>0,[]);return c.jsxs(p.Menu,{open:u,onOpenChange:h,children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{shape:"circular",icon:c.jsx(m,{}),style:{minWidth:"200px"},children:s})}),c.jsx(p.MenuPopover,{style:{maxWidth:"fit-content"},children:c.jsx(p.MenuList,{children:c.jsx(w.Calendar,{dateRangeType:o,highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:f,value:i,firstDayOfWeek:g})})})]})}),ln={today:"Today",previous:"Previous",next:"Next"},cn=L.memo(({selectedView:e,onSelectedView:t,currentDate:n,setCurrentDate:r,onWeekChange:o,onMonthChange:i,onDayChange:a,strings:s=ln})=>{const l=L.useMemo(()=>v.bundleIcon(v.ArrowDownFilled,v.ArrowDownRegular),[]),u=L.useMemo(()=>v.bundleIcon(v.ArrowUpFilled,v.ArrowUpRegular),[]),d=L.useCallback(e=>{o(e.startDate),r(e.startDate)},[o,r]),p=L.useCallback(e=>{i(e),r(e)},[i,r]),h=L.useCallback(e=>{a(e),r(e)},[a,r]),m=L.useCallback(()=>{switch(e){case Yt.Month:return c.jsx(nn,{onSelected:p,value:n});case Yt.Week:return c.jsx(sn,{onSelected:d,value:n});case Yt.Day:return c.jsx(Kt,{onSelected:h,value:n});default:return c.jsx(nn,{onSelected:p,value:n})}},[e,p,d,h,n]),f=L.useCallback(()=>c.jsx(S.Tooltip,{content:s.today,relationship:"label",children:c.jsx(C.Button,{shape:"circular",icon:c.jsx(v.CalendarTodayRegular,{}),size:"medium",onClick:()=>a(new Date),children:s.today})}),[a,s.today]),g=L.useCallback(t=>{const s=new Date(n);switch(e){case Yt.Month:s.setMonth(s.getMonth()+t),i(s);break;case Yt.Week:s.setDate(s.getDate()+7*t),o(s);break;case Yt.Day:s.setDate(s.getDate()+t),a(s)}r(s)},[n,e,i,o,a,r]);return c.jsxs(st,{width:"calc(100% - 40px)",height:"fit-content",horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",paddingLeft:"20px",paddingRight:"20px",paddingBottom:"10px",paddingTop:"10px",columnGap:10,styles:{overflow:"hidden"},children:[c.jsxs(st,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",columnGap:10,children:[c.jsx(f,{}),c.jsx(m,{}),c.jsx(S.Tooltip,{content:s.previous,relationship:"label",children:c.jsx(C.Button,{size:"medium",icon:c.jsx(u,{fontSize:14}),onClick:()=>g(-1)})}),c.jsx(S.Tooltip,{content:s.next,relationship:"label",children:c.jsx(C.Button,{size:"medium",icon:c.jsx(l,{fontSize:14}),onClick:()=>g(1)})})]}),c.jsx(st,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",columnGap:10,children:c.jsx(Qt,{onSelected:t,value:e})})]})}),un={allDay:"All Day"},dn=e=>{const{events:t,currentDay:n,height:r,strings:o=un}=e,{styles:i}=Ot(),[a]=u.useState(n),[s,l]=u.useState(32),d=u.useRef(null),{getSpanSlots:m,getEventColors:g,getCalendarColors:y,formatDate:v}=At(),b=h.startOfWeek(a,{weekStartsOn:0}),x=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:C}=Jt(x);u.useEffect(()=>{const e=new f.ResizeObserver(()=>{if(d.current){const e=d.current.querySelector(".dayCell");e&&l(e.offsetHeight)}});return d.current&&e.observe(d.current),()=>{e.disconnect()}},[]);const w=L.useCallback(()=>Array.from({length:24},(e,t)=>c.jsxs(L.Fragment,{children:[c.jsx("div",{className:i.timeCell,children:c.jsxs(p.Body1Strong,{children:[t,":00"]})}),c.jsx("div",{className:i.timeCell})]},t)),[i.timeCell]),S=L.useCallback(()=>c.jsxs(c.Fragment,{children:[c.jsx("div",{className:i.blankHeader}),Array.from({length:7},(e,t)=>{const n=h.addDays(b,t),r=h.isToday(n)?i.todayHeaderCell:"";return c.jsxs("div",{className:p.mergeClasses(i.dayHeaderCell,r),children:[c.jsx(p.Text,{weight:"regular",size:600,style:{paddingRight:10},children:v(n.toISOString(),"dd")}),c.jsx(p.Body1,{children:v(n.toISOString(),"EEE")})]},t)})]}),[b,i,v]),k=L.useCallback(()=>{const e=C(t,b.toISOString());return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:i.fullDayLabel,children:c.jsx(p.Body1,{children:o.allDay})}),Array.from({length:7},(t,n)=>{const r=v(h.addDays(b,n).toISOString(),"yyyy-MM-dd"),o=e.find(e=>e.date===r),a=(null==o?void 0:o.fullDayEvents)||[];return c.jsx("div",{className:i.fullDayCell,children:a.map(e=>c.jsx("div",{className:i.fullDayEvent,style:{gridColumn:`${n+2}`,backgroundColor:e.color?y(e.color).backgroundColor:g(e.category).backgroundColor},children:c.jsx(p.Caption1Strong,{className:i.eventTitle,children:e.title})},e.id))},n)})]})},[b,i,C,y,g,t,v,o.allDay]),P=L.useCallback(()=>{const e=C(t,b.toISOString());return Array.from({length:7},(t,n)=>{const r=h.format(h.addDays(b,n),"yyyy-MM-dd"),o=e.find(e=>e.date===r);return c.jsx(c.Fragment,{children:null==o?void 0:o.timeSlots.map((e,t)=>{const n=e.events.length;return c.jsx("div",{className:i.dayCell,style:{gridRow:t+3},children:e.events.map((e,r)=>{const o=new Date(e.start),i=new Date(e.end),{spanSlots:a,startSlot:l}=m(o,i);return t===l?c.jsx(Rt,{event:e,eventCount:n,spanSlots:a,rowHeight:s,eventIndex:r,view:"week"},e.id):null})},t)})})})},[b,i,C,m,s,t]);return c.jsx("div",{className:i.container,style:{height:r},children:c.jsxs("div",{ref:d,className:i.weekGrid,children:[c.jsx("div",{className:i.timeColumn,children:w()}),S(),k(),P()]})})},pn={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hn=({currentDate:e,rowHeight:t,getCalendarDays:n,getEventsForDay:r,styles:o,onDaySlotClick:i,height:a,calendarRef:s,strings:l})=>{const u=(null==l?void 0:l.daysOfWeek)||pn.daysOfWeek;return c.jsx(st,{height:a,width:"100%",verticalAlign:"start",horizontalAlign:"start",children:c.jsxs("div",{className:o.calendarWrapper,ref:s,children:[u.map(e=>c.jsx(p.Body1,{className:o.dayHeader,children:e},e)),n(e).map((e,n)=>{const{day:o,currentMonth:a}=e,s=a?r(e):[];return c.jsx(Dt,{day:o,date:e.date,currentMonth:e.currentMonth,events:s,columnHeight:t||0,onDayClick:i},n)})]})})},mn=L.memo(({events:e,currentDay:t,height:n,strings:r})=>c.jsx(dn,{events:e,currentDay:t,height:n,strings:r})),fn=L.memo(({events:e,currentDay:t,height:n,strings:r})=>c.jsx(Xt,{currentDay:t,events:e,height:n,strings:r})),gn={xs:p.tokens.spacingHorizontalXS,s:p.tokens.spacingHorizontalS,m:p.tokens.spacingHorizontalM,l:p.tokens.spacingHorizontalL,xl:p.tokens.spacingHorizontalXL,xxl:p.tokens.spacingHorizontalXXL},yn=u.memo(({direction:e="vertical",justifyContent:t="flex-start",alignItems:n="stretch",gap:r,columnGap:o,rowGap:i,margin:a,padding:s,marginTop:l,marginBottom:u,marginLeft:d,marginRight:h,paddingTop:m,paddingBottom:f,paddingLeft:y,paddingRight:v,width:b,height:x,wrap:C=!1,children:w,style:S,className:k,overflow:P,background:E})=>{const A=g.css({display:"flex",flexDirection:"horizontal"===e?"row":"column",justifyContent:t,alignItems:n,gap:r&&gn[r]?gn[r]:r,columnGap:o&&gn[o]?gn[o]:o,rowGap:i&&gn[i]?gn[i]:i,margin:a&&gn[a]?gn[a]:a,padding:s&&gn[s]?gn[s]:s,marginTop:l&&gn[l]?gn[l]:l,marginBottom:u&&gn[u]?gn[u]:u,marginLeft:d&&gn[d]?gn[d]:d,marginRight:h&&gn[h]?gn[h]:h,paddingTop:m&&gn[m]?gn[m]:m,paddingBottom:f&&gn[f]?gn[f]:f,paddingLeft:y&&gn[y]?gn[y]:y,paddingRight:v&&gn[v]?gn[v]:v,width:b,height:x,overflow:P,flexWrap:C?"wrap":"nowrap",backgroundColor:E,...S});return c.jsx("div",{className:p.mergeClasses(k,A),children:w})}),vn=e=>({styles:{loadingContainer:g.css({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),noItemsMessage:g.css({textAlign:"center",marginTop:20}),rowSelection:g.css({":hover":{cursor:"pointer"}})}}),bn=g.css`
2
2
  &::-webkit-scrollbar {
3
3
  width: 5px;
4
4
  height: 5px;
@@ -14,14 +14,14 @@
14
14
  &::-webkit-scrollbar-thumb:hover {
15
15
  background: ${p.tokens.colorBrandBackgroundHover};
16
16
  }
17
- `,xn=L.forwardRef((e,t)=>{const{columns:n,items:r,enableSorting:o=!1,enableResizing:i=!1,selectionMode:a="none",onSelectionChange:s,defaultSelectedItems:l=[],defaultSortState:u,onSortChange:d,columnSizingOptions:h,resizableColumnsOptions:m,noItemsMessage:f,isLoadingData:g,isLoadingDataMessage:y,dataGridBodyClassName:v,dataGridBodyStyles:b,refreshData:x,enableInfiniteScroll:C,onLoadMore:w,infiniteScrollPageSize:S,hasNextPage:P,isLoadingMore:E,autoShowLastPage:A=!0,virtualizedHeight:I=600,virtualizedItemSize:_=44,startIndex:T,onRowClick:j}=e,M=L.useMemo(()=>n.map(e=>p.createTableColumn({columnId:e.column,renderHeaderCell:()=>c.jsx(p.Body1Strong,{children:e.header}),renderCell:t=>c.jsx(p.TableCellLayout,{media:e.media?e.media(t):void 0,className:null==e?void 0:e.className,style:null==e?void 0:e.style,children:e.onRender?e.onRender(t):String(t[e.column]??"")}),compare:e.order})),[n]),N=L.useCallback(e=>r.findIndex(t=>t===e),[r]),[D,V]=L.useState(new Set(l.map(e=>N(e)))),[O,B]=L.useState(0);L.useEffect(()=>{l.length&&V(new Set(l.map(e=>N(e))))},[l,r,N]),L.useEffect(()=>{x&&V(new Set)},[x]);const[R,z]=L.useState(null),H=L.useMemo(()=>new Map(r.map((e,t)=>[e,t])),[r]);L.useEffect(()=>{"row"===a&&null!=R&&R>=r.length&&z(null)},[r,R,a]),L.useEffect(()=>{x&&"row"===a&&z(null)},[x,a]);const F=L.useRef(null),W=L.useRef(r.length),$=L.useRef(!1),U=L.useRef(!1),J=L.useRef(!1);L.useImperativeHandle(t,()=>({scrollToIndex:(e,t="auto")=>{const n=F.current;n&&"scrollToItem"in n&&n.scrollToItem(Math.max(0,e),t)},resetGrid:()=>{B(e=>e+1),W.current=0,$.current=!1,U.current=!1,J.current=!1,G.current=-1,V(new Set),z(null)},getSelectedRow:()=>null!==R&&R<r.length?{item:r[R],index:R}:null,setSelectedRow:e=>{const t=r.findIndex(t=>t===e);-1!==t&&(z(t),null==s||s([e]))}})),L.useEffect(()=>{if(!$.current&&"number"==typeof T&&F.current){const e=F.current;"scrollToItem"in e&&e.scrollToItem(Math.min(T,Math.max(r.length-1,0)),"start"),$.current=!0}},[T,r.length]),L.useEffect(()=>{const e=W.current,t=r.length,n=t>e;if(W.current=t,!A||!n||0===e)return;const o=F.current;o&&"scrollToItem"in o&&o.scrollToItem(Math.max(t-1,0),"end")},[r.length,A]);const G=L.useRef(-1),q=L.useCallback(({visibleStopIndex:e})=>{if(!C||!w)return;if(E||J.current)return;if(!U.current)return void(U.current=!0);const t=S??20;if(r.length<t)return;const n=Math.max(5,Math.ceil(t/5));e>=r.length-n&&P&&G.current!==r.length&&(G.current=r.length,J.current=!0,w())},[C,w,P,E,r.length,S]);L.useEffect(()=>{J.current&&r.length>G.current&&(J.current=!1)},[r.length]);const X=L.useMemo(()=>({overflowX:"auto",overflowY:"hidden",position:"relative"}),[]);return c.jsxs("div",{style:X,className:bn,children:[g&&c.jsx("div",{style:{display:"flex",gap:8,alignItems:"center",padding:8},children:L.isValidElement(y)?y:c.jsxs(p.Spinner,{size:"extra-tiny",children:[" ",y??"Loading data..."," "]})}),!g&&r.length?c.jsxs(k.DataGrid,{items:r,columns:M,sortable:o,onSortChange:o?(e,t)=>{d&&d(t)}:void 0,selectionMode:"none"===a||"row"===a?void 0:"multiple"===a?"multiselect":"single"===a?"single":void 0,selectedItems:D,onSelectionChange:(e,t)=>{const n=new Set;t.selectedItems.forEach(e=>{const t=Number(e);isNaN(t)||n.add(t)}),V(n),s&&s(Array.from(n).map(e=>r[e]))},defaultSortState:u,resizableColumns:i,columnSizingOptions:h,resizableColumnsOptions:m,focusMode:"cell",className:v,style:b,children:[c.jsx(k.DataGridHeader,{children:c.jsx(k.DataGridRow,{children:({renderHeaderCell:e})=>c.jsx(k.DataGridHeaderCell,{children:e()})})}),c.jsx(k.DataGridBody,{itemSize:_,height:I,width:"100%",listProps:{onItemsRendered:q},children:(e,t)=>(()=>{const n=e.item,o=H.get(n)??r.indexOf(n),i="row"===a,l=i&&R===o;return c.jsx(k.DataGridRow,{style:{...t,cursor:i?"pointer":void 0,background:l?p.tokens.colorSubtleBackgroundSelected:void 0},onClick:e=>{z(o),null==s||s([n]),null==j||j(n,o)},"aria-selected":l||void 0,children:({renderCell:e})=>c.jsx(k.DataGridCell,{children:e(n)})})})()})]},O):g||r.length?null:c.jsx("div",{children:f})]})});xn.displayName="DataGridV2";const Cn=p.makeStyles({dialog:{width:"100%",height:"100%",overflow:"hidden",maxHeight:"600px",padding:0},dialogBody:{height:"calc(100% - 200px)"}}),wn=e=>{const{isOpen:t,dialogTitle:n,dialogActions:r,children:o,maxWidth:i,className:a,minHeight:s,minWidth:l,maxHeight:u}=e,d=Cn();return t?c.jsx(p.Dialog,{open:t,modalType:"modal",children:c.jsxs(p.DialogSurface,{className:p.mergeClasses(d.dialog,a),style:{maxWidth:i,minWidth:l??200,minHeight:s??200,height:"fit-content",maxHeight:u??""},children:[c.jsx(p.DialogTitle,{children:n}),c.jsx(p.DialogBody,{className:d.dialogBody,children:c.jsx(p.DialogContent,{children:o})}),c.jsx(p.DialogActions,{fluid:!0,position:"end",children:r})]})}):c.jsx(c.Fragment,{})},Sn=()=>({closeButton:g.css({marginLeft:"auto",position:"absolute",top:"10px",right:"10px",zIndex:99999}),divider:g.css({width:"100%",height:"1px",backgroundColor:p.tokens.colorNeutralStroke1,marginTop:"6px"}),renderHeaderContent:g.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",width:"100%"}),renderHeaderHeader:g.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",padding:"10px",gap:"20px"}),renderHeaderFooter:g.css({display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"20px",gap:"20px"}),renderHeaderBody:g.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",padding:"20px",gap:"20px"}),renderHeaderTitleContainer:g.css({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignContent:"center",alignItems:"center",width:"100%"}),renderHeaderTitle:g.css({display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical",textAlign:"start",textOverflow:"ellipsis",paddingTop:0,wordBreak:"break-word"}),renderHeaderDescription:g.css({display:"-webkit-box",WebkitLineClamp:"4",WebkitBoxOrient:"vertical",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word"}),dialogTitleAndDescriptionContainer:g.css({display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",paddingLeft:"10px",paddingRight:"20px",width:"100%"})}),kn=()=>u.useMemo(()=>({container:g.css({display:"flex",alignItems:"center",justifyContent:"center",minHeight:"200px",textAlign:"center",backgroundColor:p.tokens.colorNeutralBackground1,border:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRadius:p.tokens.borderRadiusLarge,padding:`${p.tokens.spacingVerticalXXL} ${p.tokens.spacingHorizontalXXL}`,boxShadow:p.tokens.shadow4,maxWidth:"500px",margin:"20px auto"}),icon:g.css({fontSize:"48px",color:p.tokens.colorPaletteRedForeground1,animation:"pulse 2s infinite","@keyframes pulse":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(1.05)"},"100%":{transform:"scale(1)"}}}),title:g.css({color:p.tokens.colorNeutralForeground1,fontWeight:p.tokens.fontWeightSemibold,textAlign:"center"}),message:g.css({color:p.tokens.colorNeutralForeground2,textAlign:"center",lineHeight:p.tokens.lineHeightBase400})}),[]),Pn=p.makeStyles({root:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",...p.shorthands.padding("10px"),gap:"10px"},iconClass:{width:"32px",height:"32px"},errorContainer:{display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"center",gap:"10px",...p.shorthands.padding("10px"),backgroundColor:p.tokens.colorStatusDangerBackground1},errorIcon:{height:"100%"}}),En=e=>{const{messageType:t,children:n,message:r}=e,o=Pn(),[i,a]=L.useState(null),s=L.useCallback(()=>c.jsx(c.Fragment,{children:c.jsxs("div",{className:o.errorContainer,children:[c.jsx("div",{className:o.errorIcon,children:c.jsx(x.Icon,{icon:"fluent:error-circle-12-regular",width:"32",height:"32",color:p.tokens.colorStatusDangerForeground1})}),c.jsx(p.Body1,{children:r})]})}),[r,o.errorContainer,o.errorIcon]);return L.useEffect(()=>{switch(t){case U.SUCCESS:a(c.jsx(v.CheckmarkCircle32Regular,{primaryFill:p.tokens.colorStatusSuccessForeground1}));break;case U.INFO:a(c.jsx(v.Info32Regular,{primaryFill:p.tokens.colorStatusWarningForeground1}))}},[t]),t===U.ERROR?c.jsx(s,{}):c.jsx(c.Fragment,{children:c.jsxs("div",{className:o.root,children:[i,c.jsx(p.Body1Strong,{children:r}),n]})})},An=({item:e,onSelectedItem:t})=>p.useIsOverflowItemVisible(e.id)?null:c.jsx(p.MenuItem,{icon:e.icon,onClick:()=>t(e.id),children:c.jsx("div",{children:e.name})},e.id),In=({items:e,onSelectedItem:t,theme:n})=>{const{ref:r,overflowCount:o,isOverflowing:i}=p.useOverflowMenu(),a=L.useMemo(()=>v.bundleIcon(v.MoreHorizontalFilled,v.MoreHorizontalRegular),[]);return i?c.jsx(p.IdPrefixProvider,{value:"menu-over-",children:c.jsx(p.FluentProvider,{theme:n,children:c.jsxs(p.Menu,{children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{appearance:"transparent",ref:r,icon:c.jsx(a,{}),"aria-label":`${o} more options`,role:"button"})}),c.jsx(p.MenuPopover,{children:c.jsx(p.MenuList,{children:e.map(e=>c.jsx(An,{item:e,onSelectedItem:t},e.id))})})]})})}):null},_n=({id:e,children:t})=>p.useIsOverflowItemVisible(e)?null:c.jsx(p.MenuItem,{children:t}),Tn=e=>({videoPlayerContainer:g.css({position:"relative",width:e.width,height:e.height}),reactPlayer:g.css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}),playButton:g.css({position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",fontSize:"64px",cursor:"pointer",zIndex:1,userSelect:"none",color:"white",border:"none",borderRadius:"50%",padding:"10px 20px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.7)"}})});var jn=(e=>(e[e.SharePoint=0]="SharePoint",e[e.Teams=1]="Teams",e[e.TeamsDark=2]="TeamsDark",e[e.TeamsHighContrast=3]="TeamsHighContrast",e))(jn||{});const Mn=e=>new A.HostConfig({fontFamily:e.fontFamilyBase,separator:{lineThickness:1,lineColor:e.colorNeutralStroke2},containerStyles:{default:{backgroundColor:e.colorNeutralBackground1,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}},emphasis:{backgroundColor:e.colorNeutralBackground3,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}}},inputs:{label:{requiredInputs:{weight:"bold"},optionalInputs:{weight:"bold"}},errorMessage:{color:"attention",weight:"bold"}},actions:{buttonSpacing:10,actionAlignment:"right"}}),Nn="fluentUITheme",Dn=e=>{let t=e.hostCapabilities.getCustomProperty(Nn);return t||(t=p.webLightTheme),t},Vn=(e,t)=>{let n;switch(e){case jn.SharePoint:n={theme:t,hostConfig:Mn(t)};break;case jn.Teams:n={theme:p.teamsLightTheme,hostConfig:Mn(p.teamsLightTheme)};break;case jn.TeamsDark:n={theme:p.teamsDarkTheme,hostConfig:Mn(p.teamsDarkTheme)};break;case jn.TeamsHighContrast:n={theme:p.teamsHighContrastTheme,hostConfig:Mn(p.teamsHighContrastTheme)};break;default:n={theme:t,hostConfig:Mn(t)}}var r,o;return n.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,"")}`,r=n.hostConfig,o=n.theme,r.hostCapabilities.setCustomProperty(Nn,o),((e,t)=>{const n=I.create();n.put(`.${t}-ac-container:focus`,{outline:"none !important"}),n.put(`.${t}-ac-adaptiveCard:focus`,{outline:"none !important"}),n.put(`.${t}-ac-pushButton`,{overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",verticalAlign:"middle",cursor:"pointer",fontFamily:"inherit",fontSize:"14px",fontWeight:"600",padding:"4px 10px 5px 10px",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none",height:"32px",borderRadius:"2px",border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-pushButton:hover`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-pushButton:active`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-pushButton-disabled`,{overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",verticalAlign:"middle",cursor:"pointer",fontFamily:"inherit",fontSize:"14px",fontWeight:"600",padding:"4px 10px 5px 10px",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none",height:"32px",borderRadius:"2px",border:`1px solid ${e.colorNeutralStrokeDisabled}`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled}),n.put(`.${t}-ac-ctrl-overlay`,{fontFamily:e.fontFamilyBase,position:"absolute",left:"0",top:"0",zIndex:"10000"}),n.put(`.${t}-ac-ctrl`,{boxSizing:"border-box",fontSize:"14px",fontWeight:"normal"}),n.put(`.${t}-ac-ctrl-popup-container`,{backgroundColor:e.colorNeutralBackground1,position:"absolute",overflowY:"auto",boxShadow:"0px 3.2px 7.2px rgba(0,0,0,0.13), 0px 0.6px 1.8px rgba(0,0,0,0.11)",borderRadius:"2px"}),n.put(`.${t}-ac-ctrl-popup-container:focus`,{outline:"0"}),n.put(`.${t}-ac-ctrl-slide`,{animationDuration:"0.5s",animationTimingFunction:"cubic-bezier(0.1, 0.9, 0.2, 1)"}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideTopToBottom`,{animationName:"fadeIn, slideTopToBottom"}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideBottomToTop`,{animationName:"fadeIn, slideBottomToTop"}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideLeftToRight`,{animationName:"fadeIn, slideLeftToRight"}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideRightToLeft`,{animationName:"fadeIn, slideRightToLeft"}),n.put(`.${t}-ac-ctrl-dropdown-item`,{width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",padding:"0px 12px",lineHeight:"30px",cursor:"pointer",backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-ctrl-dropdown-item:hover`,{backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-ctrl-dropdown-item:focus`,{outline:"0",backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-ctrl-dropdown-item-disabled`,{width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",padding:"0px 12px",lineHeight:"30px",cursor:"pointer",backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled})})(n.theme,n.hostConfig.cssClassNamePrefix),n};var On="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Bn={},Rn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionRole=e.CarouselInteractionEvent=e.LogLevel=e.RefreshMode=e.TypeErrorType=e.ContainerFitStatus=e.ValidationEvent=e.ValidationPhase=e.InputLabelPosition=e.InputTextStyle=e.ActionIconPlacement=e.FillMode=e.Orientation=e.ShowCardActionMode=e.ImageStyle=e.ActionAlignment=e.VerticalAlignment=e.HorizontalAlignment=e.TextColor=e.Spacing=e.FontType=e.TextWeight=e.InputStyle=e.TextSize=e.SizeUnit=e.ImageSetPresentationStyle=e.ImageSize=e.Size=e.ActionMode=e.ActionStyle=e.ContainerStyle=void 0;var t=function(){function e(){}return e.Default="default",e.Emphasis="emphasis",e.Accent="accent",e.Good="good",e.Attention="attention",e.Warning="warning",e}();e.ContainerStyle=t;var n=function(){function e(){}return e.Default="default",e.Positive="positive",e.Destructive="destructive",e}();e.ActionStyle=n;var r,o,i,a,s,l,c,u,d,p,h,m,f,g,y,v,b,x,C,w,S,k,P,E,A,I,_,T,j=function(){function e(){}return e.Primary="primary",e.Secondary="secondary",e}();e.ActionMode=j,(r=e.Size||(e.Size={}))[r.Auto=0]="Auto",r[r.Stretch=1]="Stretch",r[r.Small=2]="Small",r[r.Medium=3]="Medium",r[r.Large=4]="Large",(o=e.ImageSize||(e.ImageSize={}))[o.Small=0]="Small",o[o.Medium=1]="Medium",o[o.Large=2]="Large",(i=e.ImageSetPresentationStyle||(e.ImageSetPresentationStyle={}))[i.Default=0]="Default",i[i.Stacked=1]="Stacked",(a=e.SizeUnit||(e.SizeUnit={}))[a.Weight=0]="Weight",a[a.Pixel=1]="Pixel",(s=e.TextSize||(e.TextSize={}))[s.Small=0]="Small",s[s.Default=1]="Default",s[s.Medium=2]="Medium",s[s.Large=3]="Large",s[s.ExtraLarge=4]="ExtraLarge",(l=e.InputStyle||(e.InputStyle={}))[l.RevealOnHover=0]="RevealOnHover",l[l.Default=1]="Default",(c=e.TextWeight||(e.TextWeight={}))[c.Lighter=0]="Lighter",c[c.Default=1]="Default",c[c.Bolder=2]="Bolder",(u=e.FontType||(e.FontType={}))[u.Default=0]="Default",u[u.Monospace=1]="Monospace",(d=e.Spacing||(e.Spacing={}))[d.None=0]="None",d[d.Small=1]="Small",d[d.Default=2]="Default",d[d.Medium=3]="Medium",d[d.Large=4]="Large",d[d.ExtraLarge=5]="ExtraLarge",d[d.Padding=6]="Padding",(p=e.TextColor||(e.TextColor={}))[p.Default=0]="Default",p[p.Dark=1]="Dark",p[p.Light=2]="Light",p[p.Accent=3]="Accent",p[p.Good=4]="Good",p[p.Warning=5]="Warning",p[p.Attention=6]="Attention",(h=e.HorizontalAlignment||(e.HorizontalAlignment={}))[h.Left=0]="Left",h[h.Center=1]="Center",h[h.Right=2]="Right",(m=e.VerticalAlignment||(e.VerticalAlignment={}))[m.Top=0]="Top",m[m.Center=1]="Center",m[m.Bottom=2]="Bottom",(f=e.ActionAlignment||(e.ActionAlignment={}))[f.Left=0]="Left",f[f.Center=1]="Center",f[f.Right=2]="Right",f[f.Stretch=3]="Stretch",(g=e.ImageStyle||(e.ImageStyle={}))[g.Default=0]="Default",g[g.Person=1]="Person",(y=e.ShowCardActionMode||(e.ShowCardActionMode={}))[y.Inline=0]="Inline",y[y.Popup=1]="Popup",(v=e.Orientation||(e.Orientation={}))[v.Horizontal=0]="Horizontal",v[v.Vertical=1]="Vertical",(b=e.FillMode||(e.FillMode={}))[b.Cover=0]="Cover",b[b.RepeatHorizontally=1]="RepeatHorizontally",b[b.RepeatVertically=2]="RepeatVertically",b[b.Repeat=3]="Repeat",(x=e.ActionIconPlacement||(e.ActionIconPlacement={}))[x.LeftOfTitle=0]="LeftOfTitle",x[x.AboveTitle=1]="AboveTitle",(C=e.InputTextStyle||(e.InputTextStyle={}))[C.Text=0]="Text",C[C.Tel=1]="Tel",C[C.Url=2]="Url",C[C.Email=3]="Email",C[C.Password=4]="Password",(w=e.InputLabelPosition||(e.InputLabelPosition={}))[w.Inline=0]="Inline",w[w.Above=1]="Above",(S=e.ValidationPhase||(e.ValidationPhase={}))[S.Parse=0]="Parse",S[S.ToJSON=1]="ToJSON",S[S.Validation=2]="Validation",(k=e.ValidationEvent||(e.ValidationEvent={}))[k.Hint=0]="Hint",k[k.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",k[k.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",k[k.Deprecated=3]="Deprecated",k[k.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",k[k.InteractivityNotAllowed=5]="InteractivityNotAllowed",k[k.InvalidPropertyValue=6]="InvalidPropertyValue",k[k.MissingCardType=7]="MissingCardType",k[k.PropertyCantBeNull=8]="PropertyCantBeNull",k[k.TooManyActions=9]="TooManyActions",k[k.UnknownActionType=10]="UnknownActionType",k[k.UnknownElementType=11]="UnknownElementType",k[k.UnsupportedCardVersion=12]="UnsupportedCardVersion",k[k.DuplicateId=13]="DuplicateId",k[k.UnsupportedProperty=14]="UnsupportedProperty",k[k.RequiredInputsShouldHaveLabel=15]="RequiredInputsShouldHaveLabel",k[k.RequiredInputsShouldHaveErrorMessage=16]="RequiredInputsShouldHaveErrorMessage",k[k.Other=17]="Other",(P=e.ContainerFitStatus||(e.ContainerFitStatus={}))[P.FullyInContainer=0]="FullyInContainer",P[P.Overflowing=1]="Overflowing",P[P.FullyOutOfContainer=2]="FullyOutOfContainer",(E=e.TypeErrorType||(e.TypeErrorType={}))[E.UnknownType=0]="UnknownType",E[E.ForbiddenType=1]="ForbiddenType",(A=e.RefreshMode||(e.RefreshMode={}))[A.Disabled=0]="Disabled",A[A.Manual=1]="Manual",A[A.Automatic=2]="Automatic",(I=e.LogLevel||(e.LogLevel={}))[I.Info=0]="Info",I[I.Warning=1]="Warning",I[I.Error=2]="Error",(_=e.CarouselInteractionEvent||(e.CarouselInteractionEvent={}))[_.NavigationNext=0]="NavigationNext",_[_.NavigationPrevious=1]="NavigationPrevious",_[_.Pagination=2]="Pagination",_[_.Autoplay=3]="Autoplay",(T=e.ActionRole||(e.ActionRole={}))[T.Button=0]="Button",T[T.Link=1]="Link",T[T.Tab=2]="Tab",T[T.Menu=3]="Menu",T[T.MenuItem=4]="MenuItem"}(Rn);var zn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=e.SizeAndUnit=e.PaddingDefinition=e.SpacingDefinition=e.StringWithSubstitutions=e.ContentTypes=e.GlobalSettings=void 0;var t=Rn,n=function(){function e(){}return e.useAdvancedTextBlockTruncation=!0,e.useAdvancedCardBottomTruncation=!1,e.useMarkdownInRadioButtonAndCheckbox=!0,e.allowMarkForTextHighlighting=!1,e.alwaysBleedSeparators=!1,e.enableFullJsonRoundTrip=!1,e.displayInputValidationErrors=!0,e.allowPreProcessingPropertyValues=!1,e.setTabIndexAtCardRoot=!0,e.enableFallback=!0,e.useWebkitLineClamp=!0,e.allowMoreThanMaxActionsInOverflowMenu=!1,e.removePaddingFromContainersWithBackgroundImage=!1,e.resetInputsDirtyStateAfterActionExecution=!0,e.applets={logEnabled:!0,logLevel:t.LogLevel.Error,maximumRetryAttempts:3,defaultTimeBetweenRetryAttempts:3e3,authPromptWidth:400,authPromptHeight:600,refresh:{mode:t.RefreshMode.Manual,timeBetweenAutomaticRefreshes:3e3,maximumConsecutiveAutomaticRefreshes:3,allowManualRefreshesAfterAutomaticRefreshes:!0}},e}();e.GlobalSettings=n,e.ContentTypes={applicationJson:"application/json",applicationXWwwFormUrlencoded:"application/x-www-form-urlencoded"};var r=function(){function t(){this._isProcessed=!1}return t.prototype.getReferencedInputs=function(e,t){if(!t)throw new Error("The referencedInputs parameter cannot be null.");if(this._original)for(var n=0,r=e;n<r.length;n++){var o=r[n];null!=new RegExp("\\{{2}("+o.id+").value\\}{2}","gi").exec(this._original)&&o.id&&(t[o.id]=o)}},t.prototype.substituteInputValues=function(t,n){if(this._processed=this._original,this._original)for(var r=/\{{2}([a-z0-9_$@]+).value\}{2}/gi,o=void 0;null!==(o=r.exec(this._original))&&this._processed;)for(var i=0,a=Object.keys(t);i<a.length;i++){var s=a[i];if(s.toLowerCase()===o[1].toLowerCase()){var l=t[s],c="";l.value&&(c=l.value),n===e.ContentTypes.applicationJson?c=(c=JSON.stringify(c)).slice(1,-1):n===e.ContentTypes.applicationXWwwFormUrlencoded&&(c=encodeURIComponent(c)),this._processed=this._processed.replace(o[0],c);break}}this._isProcessed=!0},t.prototype.getOriginal=function(){return this._original},t.prototype.get=function(){return this._isProcessed?this._processed:this._original},t.prototype.set=function(e){this._original=e,this._isProcessed=!1},t}();e.StringWithSubstitutions=r;var o=function(){return function(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.left=0,this.top=0,this.right=0,this.bottom=0,this.top=e,this.right=t,this.bottom=n,this.left=r}}();e.SpacingDefinition=o;var i=function(){return function(e,n,r,o){void 0===e&&(e=t.Spacing.None),void 0===n&&(n=t.Spacing.None),void 0===r&&(r=t.Spacing.None),void 0===o&&(o=t.Spacing.None),this.top=t.Spacing.None,this.right=t.Spacing.None,this.bottom=t.Spacing.None,this.left=t.Spacing.None,this.top=e,this.right=n,this.bottom=r,this.left=o}}();e.PaddingDefinition=i;var a=function(){function e(e,t){this.physicalSize=e,this.unit=t}return e.parse=function(n,r){void 0===r&&(r=!1);var o=new e(0,t.SizeUnit.Weight);if("number"==typeof n)return o.physicalSize=n,o;if("string"==typeof n){var i=/^([0-9]+)(px|\*)?$/g.exec(n),a=r?3:2;if(i&&i.length>=a)return o.physicalSize=parseInt(i[1]),3===i.length&&"px"===i[2]&&(o.unit=t.SizeUnit.Pixel),o}throw new Error("Invalid size: "+n)},e}();e.SizeAndUnit=a;
17
+ `,xn=L.forwardRef((e,t)=>{const{columns:n,items:r,enableSorting:o=!1,enableResizing:i=!1,selectionMode:a="none",onSelectionChange:s,defaultSelectedItems:l=[],defaultSortState:u,onSortChange:d,columnSizingOptions:h,resizableColumnsOptions:m,noItemsMessage:f,isLoadingData:g,isLoadingDataMessage:y,dataGridBodyClassName:v,dataGridBodyStyles:b,refreshData:x,enableInfiniteScroll:C,onLoadMore:w,infiniteScrollPageSize:S,hasNextPage:P,isLoadingMore:E,autoShowLastPage:A=!0,virtualizedHeight:I=600,virtualizedItemSize:_=44,startIndex:T,onRowClick:j}=e,M=L.useMemo(()=>n.map(e=>p.createTableColumn({columnId:e.column,renderHeaderCell:()=>c.jsx(p.Body1Strong,{children:e.header}),renderCell:t=>c.jsx(p.TableCellLayout,{media:e.media?e.media(t):void 0,className:null==e?void 0:e.className,style:null==e?void 0:e.style,children:e.onRender?e.onRender(t):String(t[e.column]??"")}),compare:e.order})),[n]),N=L.useCallback(e=>r.findIndex(t=>t===e),[r]),[D,O]=L.useState(new Set(l.map(e=>N(e)))),[V,B]=L.useState(0);L.useEffect(()=>{l.length&&O(new Set(l.map(e=>N(e))))},[l,r,N]),L.useEffect(()=>{x&&O(new Set)},[x]);const[R,z]=L.useState(null),H=L.useMemo(()=>new Map(r.map((e,t)=>[e,t])),[r]);L.useEffect(()=>{"row"===a&&null!=R&&R>=r.length&&z(null)},[r,R,a]),L.useEffect(()=>{x&&"row"===a&&z(null)},[x,a]);const F=L.useRef(null),W=L.useRef(r.length),$=L.useRef(!1),U=L.useRef(!1),J=L.useRef(!1);L.useImperativeHandle(t,()=>({scrollToIndex:(e,t="auto")=>{const n=F.current;n&&"scrollToItem"in n&&n.scrollToItem(Math.max(0,e),t)},resetGrid:()=>{B(e=>e+1),W.current=0,$.current=!1,U.current=!1,J.current=!1,G.current=-1,O(new Set),z(null)},getSelectedRow:()=>null!==R&&R<r.length?{item:r[R],index:R}:null,setSelectedRow:e=>{const t=r.findIndex(t=>t===e);-1!==t&&(z(t),null==s||s([e]))}})),L.useEffect(()=>{if(!$.current&&"number"==typeof T&&F.current){const e=F.current;"scrollToItem"in e&&e.scrollToItem(Math.min(T,Math.max(r.length-1,0)),"start"),$.current=!0}},[T,r.length]),L.useEffect(()=>{const e=W.current,t=r.length,n=t>e;if(W.current=t,!A||!n||0===e)return;const o=F.current;o&&"scrollToItem"in o&&o.scrollToItem(Math.max(t-1,0),"end")},[r.length,A]);const G=L.useRef(-1),q=L.useCallback(({visibleStopIndex:e})=>{if(!C||!w)return;if(E||J.current)return;if(!U.current)return void(U.current=!0);const t=S??20;if(r.length<t)return;const n=Math.max(5,Math.ceil(t/5));e>=r.length-n&&P&&G.current!==r.length&&(G.current=r.length,J.current=!0,w())},[C,w,P,E,r.length,S]);L.useEffect(()=>{J.current&&r.length>G.current&&(J.current=!1)},[r.length]);const X=L.useMemo(()=>({overflowX:"auto",overflowY:"hidden",position:"relative"}),[]);return c.jsxs("div",{style:X,className:bn,children:[g&&c.jsx("div",{style:{display:"flex",gap:8,alignItems:"center",padding:8},children:L.isValidElement(y)?y:c.jsxs(p.Spinner,{size:"extra-tiny",children:[" ",y??"Loading data..."," "]})}),!g&&r.length?c.jsxs(k.DataGrid,{items:r,columns:M,sortable:o,onSortChange:o?(e,t)=>{d&&d(t)}:void 0,selectionMode:"none"===a||"row"===a?void 0:"multiple"===a?"multiselect":"single"===a?"single":void 0,selectedItems:D,onSelectionChange:(e,t)=>{const n=new Set;t.selectedItems.forEach(e=>{const t=Number(e);isNaN(t)||n.add(t)}),O(n),s&&s(Array.from(n).map(e=>r[e]))},defaultSortState:u,resizableColumns:i,columnSizingOptions:h,resizableColumnsOptions:m,focusMode:"cell",className:v,style:b,children:[c.jsx(k.DataGridHeader,{children:c.jsx(k.DataGridRow,{children:({renderHeaderCell:e})=>c.jsx(k.DataGridHeaderCell,{children:e()})})}),c.jsx(k.DataGridBody,{itemSize:_,height:I,width:"100%",listProps:{onItemsRendered:q},children:(e,t)=>(()=>{const n=e.item,o=H.get(n)??r.indexOf(n),i="row"===a,l=i&&R===o;return c.jsx(k.DataGridRow,{style:{...t,cursor:i?"pointer":void 0,background:l?p.tokens.colorSubtleBackgroundSelected:void 0},onClick:e=>{z(o),null==s||s([n]),null==j||j(n,o)},"aria-selected":l||void 0,children:({renderCell:e})=>c.jsx(k.DataGridCell,{children:e(n)})})})()})]},V):g||r.length?null:c.jsx("div",{children:f})]})});xn.displayName="DataGridV2";const Cn=p.makeStyles({dialog:{width:"100%",height:"100%",overflow:"hidden",maxHeight:"600px",padding:0},dialogBody:{height:"calc(100% - 200px)"}}),wn=e=>{const{isOpen:t,dialogTitle:n,dialogActions:r,children:o,maxWidth:i,className:a,minHeight:s,minWidth:l,maxHeight:u}=e,d=Cn();return t?c.jsx(p.Dialog,{open:t,modalType:"modal",children:c.jsxs(p.DialogSurface,{className:p.mergeClasses(d.dialog,a),style:{maxWidth:i,minWidth:l??200,minHeight:s??200,height:"fit-content",maxHeight:u??""},children:[c.jsx(p.DialogTitle,{children:n}),c.jsx(p.DialogBody,{className:d.dialogBody,children:c.jsx(p.DialogContent,{children:o})}),c.jsx(p.DialogActions,{fluid:!0,position:"end",children:r})]})}):c.jsx(c.Fragment,{})},Sn=()=>({closeButton:g.css({marginLeft:"auto",position:"absolute",top:"10px",right:"10px",zIndex:99999}),divider:g.css({width:"100%",height:"1px",backgroundColor:p.tokens.colorNeutralStroke1,marginTop:"6px"}),renderHeaderContent:g.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",width:"100%"}),renderHeaderHeader:g.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",padding:"10px",gap:"20px"}),renderHeaderFooter:g.css({display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"20px",gap:"20px"}),renderHeaderBody:g.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",padding:"20px",gap:"20px"}),renderHeaderTitleContainer:g.css({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignContent:"center",alignItems:"center",width:"100%"}),renderHeaderTitle:g.css({display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical",textAlign:"start",textOverflow:"ellipsis",paddingTop:0,wordBreak:"break-word"}),renderHeaderDescription:g.css({display:"-webkit-box",WebkitLineClamp:"4",WebkitBoxOrient:"vertical",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word"}),dialogTitleAndDescriptionContainer:g.css({display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",paddingLeft:"10px",paddingRight:"20px",width:"100%"})}),kn=()=>u.useMemo(()=>({container:g.css({display:"flex",alignItems:"center",justifyContent:"center",minHeight:"200px",textAlign:"center",backgroundColor:p.tokens.colorNeutralBackground1,border:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRadius:p.tokens.borderRadiusLarge,padding:`${p.tokens.spacingVerticalXXL} ${p.tokens.spacingHorizontalXXL}`,boxShadow:p.tokens.shadow4,maxWidth:"500px",margin:"20px auto"}),icon:g.css({fontSize:"48px",color:p.tokens.colorPaletteRedForeground1,animation:"pulse 2s infinite","@keyframes pulse":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(1.05)"},"100%":{transform:"scale(1)"}}}),title:g.css({color:p.tokens.colorNeutralForeground1,fontWeight:p.tokens.fontWeightSemibold,textAlign:"center"}),message:g.css({color:p.tokens.colorNeutralForeground2,textAlign:"center",lineHeight:p.tokens.lineHeightBase400})}),[]),Pn=p.makeStyles({root:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",...p.shorthands.padding("10px"),gap:"10px"},iconClass:{width:"32px",height:"32px"},errorContainer:{display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"center",gap:"10px",...p.shorthands.padding("10px"),backgroundColor:p.tokens.colorStatusDangerBackground1},errorIcon:{height:"100%"}}),En=e=>{const{messageType:t,children:n,message:r}=e,o=Pn(),[i,a]=L.useState(null),s=L.useCallback(()=>c.jsx(c.Fragment,{children:c.jsxs("div",{className:o.errorContainer,children:[c.jsx("div",{className:o.errorIcon,children:c.jsx(x.Icon,{icon:"fluent:error-circle-12-regular",width:"32",height:"32",color:p.tokens.colorStatusDangerForeground1})}),c.jsx(p.Body1,{children:r})]})}),[r,o.errorContainer,o.errorIcon]);return L.useEffect(()=>{switch(t){case U.SUCCESS:a(c.jsx(v.CheckmarkCircle32Regular,{primaryFill:p.tokens.colorStatusSuccessForeground1}));break;case U.INFO:a(c.jsx(v.Info32Regular,{primaryFill:p.tokens.colorStatusWarningForeground1}))}},[t]),t===U.ERROR?c.jsx(s,{}):c.jsx(c.Fragment,{children:c.jsxs("div",{className:o.root,children:[i,c.jsx(p.Body1Strong,{children:r}),n]})})},An=({item:e,onSelectedItem:t})=>p.useIsOverflowItemVisible(e.id)?null:c.jsx(p.MenuItem,{icon:e.icon,onClick:()=>t(e.id),children:c.jsx("div",{children:e.name})},e.id),In=({items:e,onSelectedItem:t,theme:n})=>{const{ref:r,overflowCount:o,isOverflowing:i}=p.useOverflowMenu(),a=L.useMemo(()=>v.bundleIcon(v.MoreHorizontalFilled,v.MoreHorizontalRegular),[]);return i?c.jsx(p.IdPrefixProvider,{value:"menu-over-",children:c.jsx(p.FluentProvider,{theme:n,children:c.jsxs(p.Menu,{children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.MenuButton,{appearance:"transparent",ref:r,icon:c.jsx(a,{}),"aria-label":`${o} more options`,role:"button"})}),c.jsx(p.MenuPopover,{children:c.jsx(p.MenuList,{children:e.map(e=>c.jsx(An,{item:e,onSelectedItem:t},e.id))})})]})})}):null},_n=({id:e,children:t})=>p.useIsOverflowItemVisible(e)?null:c.jsx(p.MenuItem,{children:t}),Tn=e=>({videoPlayerContainer:g.css({position:"relative",width:e.width,height:e.height}),reactPlayer:g.css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}),playButton:g.css({position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",fontSize:"64px",cursor:"pointer",zIndex:1,userSelect:"none",color:"white",border:"none",borderRadius:"50%",padding:"10px 20px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.7)"}})});var jn=(e=>(e[e.SharePoint=0]="SharePoint",e[e.Teams=1]="Teams",e[e.TeamsDark=2]="TeamsDark",e[e.TeamsHighContrast=3]="TeamsHighContrast",e))(jn||{});const Mn=e=>new A.HostConfig({fontFamily:e.fontFamilyBase,separator:{lineThickness:1,lineColor:e.colorNeutralStroke2},containerStyles:{default:{backgroundColor:e.colorNeutralBackground1,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}},emphasis:{backgroundColor:e.colorNeutralBackground3,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}}},inputs:{label:{requiredInputs:{weight:"bold"},optionalInputs:{weight:"bold"}},errorMessage:{color:"attention",weight:"bold"}},actions:{buttonSpacing:10,actionAlignment:"right"}}),Nn="fluentUITheme",Dn=e=>{let t=e.hostCapabilities.getCustomProperty(Nn);return t||(t=p.webLightTheme),t},On=(e,t)=>{let n;switch(e){case jn.SharePoint:n={theme:t,hostConfig:Mn(t)};break;case jn.Teams:n={theme:p.teamsLightTheme,hostConfig:Mn(p.teamsLightTheme)};break;case jn.TeamsDark:n={theme:p.teamsDarkTheme,hostConfig:Mn(p.teamsDarkTheme)};break;case jn.TeamsHighContrast:n={theme:p.teamsHighContrastTheme,hostConfig:Mn(p.teamsHighContrastTheme)};break;default:n={theme:t,hostConfig:Mn(t)}}var r,o;return n.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,"")}`,r=n.hostConfig,o=n.theme,r.hostCapabilities.setCustomProperty(Nn,o),((e,t)=>{const n=I.create();n.put(`.${t}-ac-container:focus`,{outline:"none !important"}),n.put(`.${t}-ac-adaptiveCard:focus`,{outline:"none !important"}),n.put(`.${t}-ac-pushButton`,{overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",verticalAlign:"middle",cursor:"pointer",fontFamily:"inherit",fontSize:"14px",fontWeight:"600",padding:"4px 10px 5px 10px",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none",height:"32px",borderRadius:"2px",border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-pushButton:hover`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-pushButton:active`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-pushButton-disabled`,{overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",verticalAlign:"middle",cursor:"pointer",fontFamily:"inherit",fontSize:"14px",fontWeight:"600",padding:"4px 10px 5px 10px",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none",height:"32px",borderRadius:"2px",border:`1px solid ${e.colorNeutralStrokeDisabled}`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled}),n.put(`.${t}-ac-ctrl-overlay`,{fontFamily:e.fontFamilyBase,position:"absolute",left:"0",top:"0",zIndex:"10000"}),n.put(`.${t}-ac-ctrl`,{boxSizing:"border-box",fontSize:"14px",fontWeight:"normal"}),n.put(`.${t}-ac-ctrl-popup-container`,{backgroundColor:e.colorNeutralBackground1,position:"absolute",overflowY:"auto",boxShadow:"0px 3.2px 7.2px rgba(0,0,0,0.13), 0px 0.6px 1.8px rgba(0,0,0,0.11)",borderRadius:"2px"}),n.put(`.${t}-ac-ctrl-popup-container:focus`,{outline:"0"}),n.put(`.${t}-ac-ctrl-slide`,{animationDuration:"0.5s",animationTimingFunction:"cubic-bezier(0.1, 0.9, 0.2, 1)"}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideTopToBottom`,{animationName:"fadeIn, slideTopToBottom"}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideBottomToTop`,{animationName:"fadeIn, slideBottomToTop"}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideLeftToRight`,{animationName:"fadeIn, slideLeftToRight"}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideRightToLeft`,{animationName:"fadeIn, slideRightToLeft"}),n.put(`.${t}-ac-ctrl-dropdown-item`,{width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",padding:"0px 12px",lineHeight:"30px",cursor:"pointer",backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-ctrl-dropdown-item:hover`,{backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-ctrl-dropdown-item:focus`,{outline:"0",backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-ctrl-dropdown-item-disabled`,{width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",padding:"0px 12px",lineHeight:"30px",cursor:"pointer",backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled})})(n.theme,n.hostConfig.cssClassNamePrefix),n};var Vn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Bn={},Rn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionRole=e.CarouselInteractionEvent=e.LogLevel=e.RefreshMode=e.TypeErrorType=e.ContainerFitStatus=e.ValidationEvent=e.ValidationPhase=e.InputLabelPosition=e.InputTextStyle=e.ActionIconPlacement=e.FillMode=e.Orientation=e.ShowCardActionMode=e.ImageStyle=e.ActionAlignment=e.VerticalAlignment=e.HorizontalAlignment=e.TextColor=e.Spacing=e.FontType=e.TextWeight=e.InputStyle=e.TextSize=e.SizeUnit=e.ImageSetPresentationStyle=e.ImageSize=e.Size=e.ActionMode=e.ActionStyle=e.ContainerStyle=void 0;var t=function(){function e(){}return e.Default="default",e.Emphasis="emphasis",e.Accent="accent",e.Good="good",e.Attention="attention",e.Warning="warning",e}();e.ContainerStyle=t;var n=function(){function e(){}return e.Default="default",e.Positive="positive",e.Destructive="destructive",e}();e.ActionStyle=n;var r,o,i,a,s,l,c,u,d,p,h,m,f,g,y,v,b,x,C,w,S,k,P,E,A,I,_,T,j=function(){function e(){}return e.Primary="primary",e.Secondary="secondary",e}();e.ActionMode=j,(r=e.Size||(e.Size={}))[r.Auto=0]="Auto",r[r.Stretch=1]="Stretch",r[r.Small=2]="Small",r[r.Medium=3]="Medium",r[r.Large=4]="Large",(o=e.ImageSize||(e.ImageSize={}))[o.Small=0]="Small",o[o.Medium=1]="Medium",o[o.Large=2]="Large",(i=e.ImageSetPresentationStyle||(e.ImageSetPresentationStyle={}))[i.Default=0]="Default",i[i.Stacked=1]="Stacked",(a=e.SizeUnit||(e.SizeUnit={}))[a.Weight=0]="Weight",a[a.Pixel=1]="Pixel",(s=e.TextSize||(e.TextSize={}))[s.Small=0]="Small",s[s.Default=1]="Default",s[s.Medium=2]="Medium",s[s.Large=3]="Large",s[s.ExtraLarge=4]="ExtraLarge",(l=e.InputStyle||(e.InputStyle={}))[l.RevealOnHover=0]="RevealOnHover",l[l.Default=1]="Default",(c=e.TextWeight||(e.TextWeight={}))[c.Lighter=0]="Lighter",c[c.Default=1]="Default",c[c.Bolder=2]="Bolder",(u=e.FontType||(e.FontType={}))[u.Default=0]="Default",u[u.Monospace=1]="Monospace",(d=e.Spacing||(e.Spacing={}))[d.None=0]="None",d[d.Small=1]="Small",d[d.Default=2]="Default",d[d.Medium=3]="Medium",d[d.Large=4]="Large",d[d.ExtraLarge=5]="ExtraLarge",d[d.Padding=6]="Padding",(p=e.TextColor||(e.TextColor={}))[p.Default=0]="Default",p[p.Dark=1]="Dark",p[p.Light=2]="Light",p[p.Accent=3]="Accent",p[p.Good=4]="Good",p[p.Warning=5]="Warning",p[p.Attention=6]="Attention",(h=e.HorizontalAlignment||(e.HorizontalAlignment={}))[h.Left=0]="Left",h[h.Center=1]="Center",h[h.Right=2]="Right",(m=e.VerticalAlignment||(e.VerticalAlignment={}))[m.Top=0]="Top",m[m.Center=1]="Center",m[m.Bottom=2]="Bottom",(f=e.ActionAlignment||(e.ActionAlignment={}))[f.Left=0]="Left",f[f.Center=1]="Center",f[f.Right=2]="Right",f[f.Stretch=3]="Stretch",(g=e.ImageStyle||(e.ImageStyle={}))[g.Default=0]="Default",g[g.Person=1]="Person",(y=e.ShowCardActionMode||(e.ShowCardActionMode={}))[y.Inline=0]="Inline",y[y.Popup=1]="Popup",(v=e.Orientation||(e.Orientation={}))[v.Horizontal=0]="Horizontal",v[v.Vertical=1]="Vertical",(b=e.FillMode||(e.FillMode={}))[b.Cover=0]="Cover",b[b.RepeatHorizontally=1]="RepeatHorizontally",b[b.RepeatVertically=2]="RepeatVertically",b[b.Repeat=3]="Repeat",(x=e.ActionIconPlacement||(e.ActionIconPlacement={}))[x.LeftOfTitle=0]="LeftOfTitle",x[x.AboveTitle=1]="AboveTitle",(C=e.InputTextStyle||(e.InputTextStyle={}))[C.Text=0]="Text",C[C.Tel=1]="Tel",C[C.Url=2]="Url",C[C.Email=3]="Email",C[C.Password=4]="Password",(w=e.InputLabelPosition||(e.InputLabelPosition={}))[w.Inline=0]="Inline",w[w.Above=1]="Above",(S=e.ValidationPhase||(e.ValidationPhase={}))[S.Parse=0]="Parse",S[S.ToJSON=1]="ToJSON",S[S.Validation=2]="Validation",(k=e.ValidationEvent||(e.ValidationEvent={}))[k.Hint=0]="Hint",k[k.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",k[k.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",k[k.Deprecated=3]="Deprecated",k[k.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",k[k.InteractivityNotAllowed=5]="InteractivityNotAllowed",k[k.InvalidPropertyValue=6]="InvalidPropertyValue",k[k.MissingCardType=7]="MissingCardType",k[k.PropertyCantBeNull=8]="PropertyCantBeNull",k[k.TooManyActions=9]="TooManyActions",k[k.UnknownActionType=10]="UnknownActionType",k[k.UnknownElementType=11]="UnknownElementType",k[k.UnsupportedCardVersion=12]="UnsupportedCardVersion",k[k.DuplicateId=13]="DuplicateId",k[k.UnsupportedProperty=14]="UnsupportedProperty",k[k.RequiredInputsShouldHaveLabel=15]="RequiredInputsShouldHaveLabel",k[k.RequiredInputsShouldHaveErrorMessage=16]="RequiredInputsShouldHaveErrorMessage",k[k.Other=17]="Other",(P=e.ContainerFitStatus||(e.ContainerFitStatus={}))[P.FullyInContainer=0]="FullyInContainer",P[P.Overflowing=1]="Overflowing",P[P.FullyOutOfContainer=2]="FullyOutOfContainer",(E=e.TypeErrorType||(e.TypeErrorType={}))[E.UnknownType=0]="UnknownType",E[E.ForbiddenType=1]="ForbiddenType",(A=e.RefreshMode||(e.RefreshMode={}))[A.Disabled=0]="Disabled",A[A.Manual=1]="Manual",A[A.Automatic=2]="Automatic",(I=e.LogLevel||(e.LogLevel={}))[I.Info=0]="Info",I[I.Warning=1]="Warning",I[I.Error=2]="Error",(_=e.CarouselInteractionEvent||(e.CarouselInteractionEvent={}))[_.NavigationNext=0]="NavigationNext",_[_.NavigationPrevious=1]="NavigationPrevious",_[_.Pagination=2]="Pagination",_[_.Autoplay=3]="Autoplay",(T=e.ActionRole||(e.ActionRole={}))[T.Button=0]="Button",T[T.Link=1]="Link",T[T.Tab=2]="Tab",T[T.Menu=3]="Menu",T[T.MenuItem=4]="MenuItem"}(Rn);var zn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=e.SizeAndUnit=e.PaddingDefinition=e.SpacingDefinition=e.StringWithSubstitutions=e.ContentTypes=e.GlobalSettings=void 0;var t=Rn,n=function(){function e(){}return e.useAdvancedTextBlockTruncation=!0,e.useAdvancedCardBottomTruncation=!1,e.useMarkdownInRadioButtonAndCheckbox=!0,e.allowMarkForTextHighlighting=!1,e.alwaysBleedSeparators=!1,e.enableFullJsonRoundTrip=!1,e.displayInputValidationErrors=!0,e.allowPreProcessingPropertyValues=!1,e.setTabIndexAtCardRoot=!0,e.enableFallback=!0,e.useWebkitLineClamp=!0,e.allowMoreThanMaxActionsInOverflowMenu=!1,e.removePaddingFromContainersWithBackgroundImage=!1,e.resetInputsDirtyStateAfterActionExecution=!0,e.applets={logEnabled:!0,logLevel:t.LogLevel.Error,maximumRetryAttempts:3,defaultTimeBetweenRetryAttempts:3e3,authPromptWidth:400,authPromptHeight:600,refresh:{mode:t.RefreshMode.Manual,timeBetweenAutomaticRefreshes:3e3,maximumConsecutiveAutomaticRefreshes:3,allowManualRefreshesAfterAutomaticRefreshes:!0}},e}();e.GlobalSettings=n,e.ContentTypes={applicationJson:"application/json",applicationXWwwFormUrlencoded:"application/x-www-form-urlencoded"};var r=function(){function t(){this._isProcessed=!1}return t.prototype.getReferencedInputs=function(e,t){if(!t)throw new Error("The referencedInputs parameter cannot be null.");if(this._original)for(var n=0,r=e;n<r.length;n++){var o=r[n];null!=new RegExp("\\{{2}("+o.id+").value\\}{2}","gi").exec(this._original)&&o.id&&(t[o.id]=o)}},t.prototype.substituteInputValues=function(t,n){if(this._processed=this._original,this._original)for(var r=/\{{2}([a-z0-9_$@]+).value\}{2}/gi,o=void 0;null!==(o=r.exec(this._original))&&this._processed;)for(var i=0,a=Object.keys(t);i<a.length;i++){var s=a[i];if(s.toLowerCase()===o[1].toLowerCase()){var l=t[s],c="";l.value&&(c=l.value),n===e.ContentTypes.applicationJson?c=(c=JSON.stringify(c)).slice(1,-1):n===e.ContentTypes.applicationXWwwFormUrlencoded&&(c=encodeURIComponent(c)),this._processed=this._processed.replace(o[0],c);break}}this._isProcessed=!0},t.prototype.getOriginal=function(){return this._original},t.prototype.get=function(){return this._isProcessed?this._processed:this._original},t.prototype.set=function(e){this._original=e,this._isProcessed=!1},t}();e.StringWithSubstitutions=r;var o=function(){return function(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.left=0,this.top=0,this.right=0,this.bottom=0,this.top=e,this.right=t,this.bottom=n,this.left=r}}();e.SpacingDefinition=o;var i=function(){return function(e,n,r,o){void 0===e&&(e=t.Spacing.None),void 0===n&&(n=t.Spacing.None),void 0===r&&(r=t.Spacing.None),void 0===o&&(o=t.Spacing.None),this.top=t.Spacing.None,this.right=t.Spacing.None,this.bottom=t.Spacing.None,this.left=t.Spacing.None,this.top=e,this.right=n,this.bottom=r,this.left=o}}();e.PaddingDefinition=i;var a=function(){function e(e,t){this.physicalSize=e,this.unit=t}return e.parse=function(n,r){void 0===r&&(r=!1);var o=new e(0,t.SizeUnit.Weight);if("number"==typeof n)return o.physicalSize=n,o;if("string"==typeof n){var i=/^([0-9]+)(px|\*)?$/g.exec(n),a=r?3:2;if(i&&i.length>=a)return o.physicalSize=parseInt(i[1]),3===i.length&&"px"===i[2]&&(o.unit=t.SizeUnit.Pixel),o}throw new Error("Invalid size: "+n)},e}();e.SizeAndUnit=a;
18
18
  /**
19
19
  * Fast UUID generator, RFC4122 version 4 compliant.
20
20
  * @author Jeff Ward (jcward.com).
21
21
  * @license MIT license
22
22
  * @link http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
23
23
  **/
24
- var s=function(){function e(){}return e.generate=function(){var t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0,o=4294967295*Math.random()|0;return e.lut[255&t]+e.lut[t>>8&255]+e.lut[t>>16&255]+e.lut[t>>24&255]+"-"+e.lut[255&n]+e.lut[n>>8&255]+"-"+e.lut[n>>16&15|64]+e.lut[n>>24&255]+"-"+e.lut[63&r|128]+e.lut[r>>8&255]+"-"+e.lut[r>>16&255]+e.lut[r>>24&255]+e.lut[255&o]+e.lut[o>>8&255]+e.lut[o>>16&255]+e.lut[o>>24&255]},e.initialize=function(){for(var t=0;t<256;t++)e.lut[t]=(t<16?"0":"")+t.toString(16)},e.lut=[],e}();e.UUID=s,s.initialize()}(zn);var Ln,Hn={};Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.debounce=Hn.addCancelSelectActionEventHandler=Hn.clearElementChildren=Hn.getScrollY=Hn.getScrollX=Hn.getFitStatus=Hn.truncate=Hn.truncateText=Hn.stringToCssColor=Hn.parseEnum=Hn.getEnumValueByName=Hn.parseBool=Hn.parseNumber=Hn.parseString=Hn.appendChild=Hn.generateUniqueId=Hn.isMobileOS=Hn.isInternetExplorer=void 0;var Fn=Rn,Wn=zn;function $n(e,t){for(var n in e){var r=parseInt(n,10);if(r>=0){var o=e[n];if(o&&"string"==typeof o&&o.toLowerCase()===t.toLowerCase())return r}}}function Un(e,t,n,r,o){var i=function(){return t-e.scrollHeight>=-1};if(!i()){for(var a=function(e){var t=[],n=Gn(e,-1);for(;n<e.length;)" "===e[n]&&t.push(n),n=Gn(e,n);return t}(n),s=0,l=a.length,c=0;s<l;){var u=Math.floor((s+l)/2);r(n,a[u]),i()?(c=a[u],s=u+1):l=u}if(r(n,c),o&&t-e.scrollHeight>=o-1){for(var d=Gn(n,c);d<n.length&&(r(n,d),i());)c=d,d=Gn(n,d);r(n,c)}}}Hn.isInternetExplorer=function(){return void 0!==window.document.documentMode},Hn.isMobileOS=function(){var e=window.navigator.userAgent;return!!e.match(/Android/i)||!!e.match(/iPad/i)||!!e.match(/iPhone/i)},Hn.generateUniqueId=function(){return"__ac-"+Wn.UUID.generate()},Hn.appendChild=function(e,t){t&&e.appendChild(t)},Hn.parseString=function(e,t){return"string"==typeof e?e:t},Hn.parseNumber=function(e,t){return"number"==typeof e?e:t},Hn.parseBool=function(e,t){if("boolean"==typeof e)return e;if("string"==typeof e)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return t}return t},Hn.getEnumValueByName=$n,Hn.parseEnum=function(e,t,n){if(!t)return n;var r=$n(e,t);return void 0!==r?r:n},Hn.stringToCssColor=function(e){if(e){var t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){var n=parseInt(t[1],16)/255;return"rgba("+parseInt(t[2],16)+","+parseInt(t[3],16)+","+parseInt(t[4],16)+","+n+")"}}return e},Hn.truncateText=function(e,t,n){Un(e,t,e.innerText,function(t,n){e.innerText=t.substring(0,n)+"..."},n)};var Jn="undefined"==typeof window||null===(Ln=window.trustedTypes)||void 0===Ln?void 0:Ln.createPolicy("adaptivecards#deprecatedExportedFunctionPolicy",{createHTML:function(e){return e}});function Gn(e,t){for(t+=1;t<e.length&&"<"===e[t];)for(;t<e.length&&">"!==e[t++];);return t}Hn.truncate=function(e,t,n){Un(e,t,e.innerHTML,function(t,n){var r,o=t.substring(0,n)+"...",i=null!==(r=null==Jn?void 0:Jn.createHTML(o))&&void 0!==r?r:o;e.innerHTML=i},n)},Hn.getFitStatus=function(e,t){var n=e.offsetTop;return n+e.clientHeight<=t?Fn.ContainerFitStatus.FullyInContainer:n<t?Fn.ContainerFitStatus.Overflowing:Fn.ContainerFitStatus.FullyOutOfContainer},Hn.getScrollX=function(){return window.pageXOffset},Hn.getScrollY=function(){return window.pageYOffset},Hn.clearElementChildren=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},Hn.addCancelSelectActionEventHandler=function(e){e.onclick=function(e){e.preventDefault(),e.cancelBubble=!0}},Hn.debounce=function(e,t){var n;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n&&clearTimeout(n),n=setTimeout(function(){e.apply(void 0,r)},t)}};var qn={},Xn={},Yn={},Zn={};Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.Strings=void 0;var Qn=function(){function e(){}return e.errors={unknownElementType:function(e){return'Unknown element type "'.concat(e,'". Fallback will be used if present.')},unknownActionType:function(e){return'Unknown action type "'.concat(e,'". Fallback will be used if present.')},elementTypeNotAllowed:function(e){return'Element type "'.concat(e,'" is not allowed in this context.')},actionTypeNotAllowed:function(e){return'Action type "'.concat(e,'" is not allowed in this context.')},invalidPropertyValue:function(e,t){return'Invalid value "'.concat(e,'" for property "').concat(t,'".')},showCardMustHaveCard:function(){return'"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.'},invalidColumnWidth:function(e){return'Invalid column width "'.concat(e,'" - defaulting to "auto".')},invalidCardVersion:function(e){return'Invalid card version. Defaulting to "'.concat(e,'".')},invalidVersionString:function(e){return'Invalid version string "'.concat(e,'".')},propertyValueNotSupported:function(e,t,n,r){return'Value "'.concat(e,'" for property "').concat(t,'" is supported in version ').concat(n,", but you are using version ").concat(r,".")},propertyNotSupported:function(e,t,n){return'Property "'.concat(e,'" is supported in version ').concat(t,", but you are using version ").concat(n,".")},indexOutOfRange:function(e){return"Index out of range (".concat(e,").")},elementCannotBeUsedAsInline:function(){return"RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline."},inlineAlreadyParented:function(){return"RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock."},interactivityNotAllowed:function(){return"Interactivity is not allowed."},inputsMustHaveUniqueId:function(){return"All inputs must have a unique Id."},choiceSetMustHaveAtLeastOneChoice:function(){return"An Input.ChoiceSet must have at least one choice defined."},choiceSetChoicesMustHaveTitleAndValue:function(){return"All choices in an Input.ChoiceSet must have their title and value properties set."},propertyMustBeSet:function(e){return'Property "'.concat(e,'" must be set.')},actionHttpHeadersMustHaveNameAndValue:function(){return"All headers of an Action.Http must have their name and value properties set."},tooManyActions:function(e){return"Maximum number of actions exceeded (".concat(e,").")},tooLittleTimeDelay:function(e){return"Autoplay Delay is too short (".concat(e,").")},tooManyCarouselPages:function(e){return"Maximum number of Carousel pages exceeded (".concat(e,").")},invalidInitialPageIndex:function(e){return"InitialPage for carousel is invalid (".concat(e,").")},columnAlreadyBelongsToAnotherSet:function(){return"This column already belongs to another ColumnSet."},invalidCardType:function(){return'Invalid or missing card type. Make sure the card\'s type property is set to "AdaptiveCard".'},unsupportedCardVersion:function(e,t){return"The specified card version (".concat(e,") is not supported or still in preview. The latest released card version is ").concat(t,".")},duplicateId:function(e){return'Duplicate Id "'.concat(e,'".')},markdownProcessingNotEnabled:function(){return"Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown"},processMarkdownEventRemoved:function(){return"The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead."},elementAlreadyParented:function(){return"The element already belongs to another container."},actionAlreadyParented:function(){return"The action already belongs to another element."},elementTypeNotStandalone:function(e){return"Elements of type ".concat(e," cannot be used as standalone elements.")},invalidInputLabelWidth:function(){return"Invalid input label width. Defaulting to label width from host config."}},e.magicCodeInputCard={tryAgain:function(){return"That didn't work... let's try again."},pleaseLogin:function(){return'Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"'},enterMagicCode:function(){return"Enter magic code"},pleaseEnterMagicCodeYouReceived:function(){return"Please enter the magic code you received."},submit:function(){return"Submit"},cancel:function(){return"Cancel"},somethingWentWrong:function(){return"Something went wrong. This action can't be handled."},authenticationFailed:function(){return"Authentication failed."}},e.runtime={automaticRefreshPaused:function(){return"Automatic refresh paused."},clckToRestartAutomaticRefresh:function(){return"Click to restart."},refreshThisCard:function(){return"Refresh this card"}},e.hints={dontUseWeightedAndStrecthedColumnsInSameSet:function(){return"It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space."}},e.defaults={inlineActionTitle:function(){return"Inline Action"},overflowButtonText:function(){return"..."},overflowButtonTooltip:function(){return"More options"},emptyElementText:function(e){return"Empty ".concat(e)},mediaPlayerAriaLabel:function(){return"Media content"},mediaPlayerPlayMedia:function(){return"Play media"},youTubeVideoPlayer:function(){return"YouTube video player"},vimeoVideoPlayer:function(){return"Vimeo video player"},dailymotionVideoPlayer:function(){return"Dailymotion video player"},carouselNavigationPreviousTooltip:function(){return"Previous carousel page"},carouselNavigationNextTooltip:function(){return"Next carousel page"}},e}();Zn.Strings=Qn;var Kn=On&&On.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.SerializableObject=Yn.property=Yn.SerializableObjectSchema=Yn.CustomProperty=Yn.SerializableObjectCollectionProperty=Yn.SerializableObjectProperty=Yn.EnumProperty=Yn.ValueSetProperty=Yn.StringArrayProperty=Yn.PixelSizeProperty=Yn.NumProperty=Yn.BoolProperty=Yn.StringProperty=Yn.PropertyDefinition=Yn.BaseSerializationContext=Yn.isVersionLessOrEqual=Yn.Versions=Yn.Version=void 0;var er=zn,tr=Hn,nr=Rn,rr=Zn,or=function(){function e(e,t,n){void 0===e&&(e=1),void 0===t&&(t=1),this._isValid=!0,this._major=e,this._minor=t,this._label=n}return e.parse=function(t,n){if(t){var r=new e;r._versionString=t;var o=/(\d+).(\d+)/gi.exec(t);return null!=o&&3===o.length?(r._major=parseInt(o[1]),r._minor=parseInt(o[2])):r._isValid=!1,r._isValid||n.logParseEvent(void 0,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidVersionString(r._versionString)),r}},e.prototype.toString=function(){return this._isValid?this._major+"."+this._minor:this._versionString},e.prototype.toJSON=function(){return this.toString()},e.prototype.compareTo=function(e){if(!this.isValid||!e.isValid)throw new Error("Cannot compare invalid version.");return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:0},Object.defineProperty(e.prototype,"label",{get:function(){return this._label?this._label:this.toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"major",{get:function(){return this._major},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minor",{get:function(){return this._minor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValid",{get:function(){return this._isValid},enumerable:!1,configurable:!0}),e}();Yn.Version=or;var ir=function(){function e(){}return e.getAllDeclaredVersions=function(){var t=e,n=[];for(var r in t)if(r.match(/^v[0-9_]*$/))try{var o=t[r];o instanceof or&&n.push(o)}catch(i){}return n.sort(function(e,t){return e.compareTo(t)})},e.v1_0=new or(1,0),e.v1_1=new or(1,1),e.v1_2=new or(1,2),e.v1_3=new or(1,3),e.v1_4=new or(1,4),e.v1_5=new or(1,5),e.v1_6=new or(1,6,"1.6 Preview"),e.latest=e.v1_5,e}();Yn.Versions=ir,Yn.isVersionLessOrEqual=function(e,t){return!(e instanceof or)||(!(t instanceof or)||t.compareTo(e)>=0)};var ar=function(){function e(e){void 0===e&&(e=ir.latest),this._validationEvents=[],this.targetVersion=e}return e.prototype.isTemplateString=function(e){return"string"==typeof e&&e.startsWith("${")},e.prototype.tryDeleteValue=function(e,t){er.GlobalSettings.enableFullJsonRoundTrip||delete e[t]},e.prototype.tryDeleteDefaultValue=function(e,t){er.GlobalSettings.enableFullJsonRoundTrip&&this.isTemplateString(e[t])||delete e[t]},e.prototype.serializeValue=function(e,t,n,r,o){void 0===r&&(r=void 0),void 0===o&&(o=!1),null==n?er.GlobalSettings.enableFullJsonRoundTrip&&!o||delete e[t]:n===r?er.GlobalSettings.enableFullJsonRoundTrip&&!o&&this.isTemplateString(e[t])||delete e[t]:e[t]=n},e.prototype.serializeString=function(e,t,n,r){null==n?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeBool=function(e,t,n,r){null==n?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeNumber=function(e,t,n,r){null==n||isNaN(n)?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeEnum=function(e,t,n,r,o){void 0===o&&(o=void 0),null==r?this.tryDeleteValue(t,n):r===o?this.tryDeleteDefaultValue(t,n):t[n]=e[r]},e.prototype.serializeArray=function(e,t,n){var r=[];if(n)for(var o=0,i=n;o<i.length;o++){var a=i[o],s=void 0;void 0!==(s=a instanceof xr?a.toJSON(this):a.toJSON?a.toJSON():a)&&r.push(s)}0===r.length?e.hasOwnProperty(t)&&Array.isArray(e[t])&&delete e[t]:this.serializeValue(e,t,r)},e.prototype.clearEvents=function(){this._validationEvents=[]},e.prototype.logEvent=function(e,t,n,r){this._validationEvents.push({source:e,phase:t,event:n,message:r})},e.prototype.logParseEvent=function(e,t,n){this.logEvent(e,nr.ValidationPhase.Parse,t,n)},e.prototype.getEventAt=function(e){return this._validationEvents[e]},Object.defineProperty(e.prototype,"eventCount",{get:function(){return this._validationEvents.length},enumerable:!1,configurable:!0}),e}();Yn.BaseSerializationContext=ar;var sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kn(t,e),t}(ar),lr=function(){function e(t,n,r,o){this.targetVersion=t,this.name=n,this.defaultValue=r,this.onGetInitialValue=o,this.isSerializationEnabled=!0,this.sequentialNumber=e._sequentialNumber,e._sequentialNumber++}return e.prototype.getInternalName=function(){return this.name},e.prototype.parse=function(e,t,n){return t[this.name]},e.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n,this.defaultValue)},e._sequentialNumber=0,e}();Yn.PropertyDefinition=lr;var cr=function(e){function t(t,n,r,o,i,a){void 0===r&&(r=!0);var s=e.call(this,t,n,i,a)||this;return s.targetVersion=t,s.name=n,s.treatEmptyAsUndefined=r,s.regEx=o,s.defaultValue=i,s.onGetInitialValue=a,s}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=tr.parseString(t[this.name],this.defaultValue);if(!(void 0===r||""===r&&this.treatEmptyAsUndefined)&&void 0!==this.regEx&&!this.regEx.exec(r))return void n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(r,this.name));return r},t.prototype.toJSON=function(e,t,n,r){r.serializeString(t,this.name,""===n&&this.treatEmptyAsUndefined?void 0:n,this.defaultValue)},t}(lr);Yn.StringProperty=cr;var ur=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r,o)||this;return i.targetVersion=t,i.name=n,i.defaultValue=r,i.onGetInitialValue=o,i}return Kn(t,e),t.prototype.parse=function(e,t,n){return tr.parseBool(t[this.name],this.defaultValue)},t.prototype.toJSON=function(e,t,n,r){r.serializeBool(t,this.name,n,this.defaultValue)},t}(lr);Yn.BoolProperty=ur;var dr=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r,o)||this;return i.targetVersion=t,i.name=n,i.defaultValue=r,i.onGetInitialValue=o,i}return Kn(t,e),t.prototype.parse=function(e,t,n){return tr.parseNumber(t[this.name],this.defaultValue)},t.prototype.toJSON=function(e,t,n,r){r.serializeNumber(t,this.name,n,this.defaultValue)},t}(lr);Yn.NumProperty=dr;var pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=void 0,o=t[this.name];if("string"==typeof o){var i=!1;try{var a=er.SizeAndUnit.parse(o,!0);a.unit===nr.SizeUnit.Pixel&&(r=a.physicalSize,i=!0)}catch(s){}i||n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(t[this.name],this.name))}return r},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,"number"!=typeof n||isNaN(n)?void 0:n+"px")},t}(lr);Yn.PixelSizeProperty=pr;var hr=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r,o)||this;return i.targetVersion=t,i.name=n,i.defaultValue=r,i.onGetInitialValue=o,i}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=t[this.name];if(void 0===r||!Array.isArray(r))return this.defaultValue;for(var o=[],i=0,a=r;i<a.length;i++){var s=a[i];"string"==typeof s?o.push(s):n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,'Invalid array value "'.concat(JSON.stringify(s),'" of type "').concat(typeof s,'" ignored for "').concat(this.name,'".'))}return o},t.prototype.toJSON=function(e,t,n,r){r.serializeArray(t,this.name,n)},t}(lr);Yn.StringArrayProperty=hr;var mr=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,o,i)||this;return a.targetVersion=t,a.name=n,a.values=r,a.defaultValue=o,a.onGetInitialValue=i,a}return Kn(t,e),t.prototype.isValidValue=function(e,t){for(var n=0,r=this.values;n<r.length;n++){var o=r[n];if(e.toLowerCase()===o.value.toLowerCase())return(o.targetVersion?o.targetVersion:this.targetVersion).compareTo(t.targetVersion)<=0}return!1},t.prototype.parse=function(e,t,n){var r=t[this.name];if(void 0===r)return this.defaultValue;if("string"==typeof r)for(var o=0,i=this.values;o<i.length;o++){var a=i[o];if(r.toLowerCase()===a.value.toLowerCase()){var s=a.targetVersion?a.targetVersion:this.targetVersion;return s.compareTo(n.targetVersion)<=0?a.value:(n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.propertyValueNotSupported(r,this.name,s.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(r,this.name)),this.defaultValue},t.prototype.toJSON=function(e,t,n,r){var o=!1;if(void 0!==n){o=!0;for(var i=0,a=this.values;i<a.length;i++){var s=a[i];if(s.value===n){var l=s.targetVersion?s.targetVersion:this.targetVersion;if(l.compareTo(r.targetVersion)<=0){o=!1;break}r.logEvent(e,nr.ValidationPhase.ToJSON,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.propertyValueNotSupported(n,this.name,l.toString(),r.targetVersion.toString()))}}}o||r.serializeValue(t,this.name,n,this.defaultValue,!0)},t}(lr);Yn.ValueSetProperty=mr;var fr=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,o,a)||this;if(s.targetVersion=t,s.name=n,s.enumType=r,s.defaultValue=o,s.onGetInitialValue=a,s._values=[],i)s._values=i;else for(var l in r){var c=parseInt(l,10);c>=0&&s._values.push({value:c})}return s}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=t[this.name];if("string"!=typeof r)return this.defaultValue;var o=tr.getEnumValueByName(this.enumType,r);if(void 0!==o)for(var i=0,a=this.values;i<a.length;i++){var s=a[i];if(s.value===o){var l=s.targetVersion?s.targetVersion:this.targetVersion;return l.compareTo(n.targetVersion)<=0?o:(n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.propertyValueNotSupported(r,this.name,l.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(r,this.name)),this.defaultValue},t.prototype.toJSON=function(e,t,n,r){var o=!1;if(void 0!==n){o=!0;for(var i=0,a=this.values;i<a.length;i++){var s=a[i];if(s.value===n){if((s.targetVersion?s.targetVersion:this.targetVersion).compareTo(r.targetVersion)<=0){o=!1;break}r.logEvent(e,nr.ValidationPhase.ToJSON,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(n,this.name))}}}o||r.serializeEnum(this.enumType,t,this.name,n,this.defaultValue)},Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!1,configurable:!0}),t}(lr);Yn.EnumProperty=fr;var gr=function(e){function t(t,n,r,o,i){void 0===o&&(o=!1);var a=e.call(this,t,n,i,function(e){return a.nullable?void 0:new a.objectType})||this;return a.targetVersion=t,a.name=n,a.objectType=r,a.nullable=o,a}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=t[this.name];if(void 0===r)return this.onGetInitialValue?this.onGetInitialValue(e):this.defaultValue;var o=new this.objectType;return o.parse(r,n),o},t.prototype.toJSON=function(e,t,n,r){var o=void 0;void 0===n||n.hasAllDefaultValues()||(o=n.toJSON(r)),"object"==typeof o&&0===Object.keys(o).length&&(o=void 0),r.serializeValue(t,this.name,o,this.defaultValue,!0)},t}(lr);Yn.SerializableObjectProperty=gr;var yr=function(e){function t(t,n,r,o){var i=e.call(this,t,n,void 0,function(e){return[]})||this;return i.targetVersion=t,i.name=n,i.objectType=r,i.onItemAdded=o,i}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=[],o=t[this.name];if(Array.isArray(o))for(var i=0,a=o;i<a.length;i++){var s=a[i],l=new this.objectType;l.parse(s,n),r.push(l),this.onItemAdded&&this.onItemAdded(e,l)}return r.length>0?r:this.onGetInitialValue?this.onGetInitialValue(e):void 0},t.prototype.toJSON=function(e,t,n,r){r.serializeArray(t,this.name,n)},t}(lr);Yn.SerializableObjectCollectionProperty=yr;var vr=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,i,a)||this;if(s.targetVersion=t,s.name=n,s.onParse=r,s.onToJSON=o,s.defaultValue=i,s.onGetInitialValue=a,!s.onParse)throw new Error("CustomPropertyDefinition instances must have an onParse handler.");if(!s.onToJSON)throw new Error("CustomPropertyDefinition instances must have an onToJSON handler.");return s}return Kn(t,e),t.prototype.parse=function(e,t,n){return this.onParse(e,this,t,n)},t.prototype.toJSON=function(e,t,n,r){this.onToJSON(e,this,t,n,r)},t}(lr);Yn.CustomProperty=vr;var br=function(){function e(){this._properties=[]}return e.prototype.indexOf=function(e){for(var t=0;t<this._properties.length;t++)if(this._properties[t]===e)return t;return-1},e.prototype.add=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var o=r[n];-1===this.indexOf(o)&&this._properties.push(o)}},e.prototype.remove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)for(var o=r[n];;){var i=this.indexOf(o);if(!(i>=0))break;this._properties.splice(i,1)}},e.prototype.getItemAt=function(e){return this._properties[e]},e.prototype.getCount=function(){return this._properties.length},e}();Yn.SerializableObjectSchema=br,Yn.property=function(e){return function(t,n){var r=Object.getOwnPropertyDescriptor(t,n)||{};r.get||r.set||(r.get=function(){return this.getValue(e)},r.set=function(t){this.setValue(e,t)},Object.defineProperty(t,n,r))}};var xr=function(){function e(){this._propertyBag={},this._rawProperties={},this.maxVersion=e.defaultMaxVersion;for(var t=this.getSchema(),n=0;n<t.getCount();n++){var r=t.getItemAt(n);r.onGetInitialValue&&this.setValue(r,r.onGetInitialValue(this))}}return e.prototype.getDefaultSerializationContext=function(){return new sr},e.prototype.populateSchema=function(t){var n=this.constructor,r=[];for(var o in n)try{var i=n[o];i instanceof lr&&r.push(i)}catch(s){}if(r.length>0){var a=r.sort(function(e,t){return e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber<t.sequentialNumber?-1:0});t.add.apply(t,a)}e.onRegisterCustomProperties&&e.onRegisterCustomProperties(this,t)},e.prototype.getValue=function(e){return this._propertyBag.hasOwnProperty(e.getInternalName())?this._propertyBag[e.getInternalName()]:e.defaultValue},e.prototype.setValue=function(e,t){null==t?delete this._propertyBag[e.getInternalName()]:this._propertyBag[e.getInternalName()]=t},e.prototype.internalParse=function(e,t){if(this._propertyBag={},this._rawProperties=er.GlobalSettings.enableFullJsonRoundTrip&&e||{},e)for(var n=this.getSchema(),r=0;r<n.getCount();r++){var o=n.getItemAt(r);if(o.isSerializationEnabled){var i=o.onGetInitialValue?o.onGetInitialValue(this):void 0;e.hasOwnProperty(o.name)&&(o.targetVersion.compareTo(t.targetVersion)<=0?i=o.parse(this,e,t):t.logParseEvent(this,nr.ValidationEvent.UnsupportedProperty,rr.Strings.errors.propertyNotSupported(o.name,o.targetVersion.toString(),t.targetVersion.toString()))),this.setValue(o,i)}}else this.resetDefaultValues()},e.prototype.internalToJSON=function(e,t){for(var n=this.getSchema(),r=[],o=0;o<n.getCount();o++){var i=n.getItemAt(o);i.isSerializationEnabled&&i.targetVersion.compareTo(t.targetVersion)<=0&&-1===r.indexOf(i.name)&&(i.toJSON(this,e,this.getValue(i),t),r.push(i.name))}},e.prototype.shouldSerialize=function(e){return!0},e.prototype.parse=function(e,t){this.internalParse(e,t||new sr)},e.prototype.toJSON=function(e){var t;if(e&&e instanceof ar?t=e:(t=this.getDefaultSerializationContext()).toJSONOriginalParam=e,this.shouldSerialize(t)){var n=void 0;return n=er.GlobalSettings.enableFullJsonRoundTrip&&this._rawProperties&&"object"==typeof this._rawProperties?this._rawProperties:{},this.internalToJSON(n,t),n}},e.prototype.hasDefaultValue=function(e){return this.getValue(e)===e.defaultValue},e.prototype.hasAllDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);if(!this.hasDefaultValue(n))return!1}return!0},e.prototype.resetDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);this.setValue(n,n.defaultValue)}},e.prototype.setCustomProperty=function(e,t){"string"==typeof t&&!t||null==t?delete this._rawProperties[e]:this._rawProperties[e]=t},e.prototype.getCustomProperty=function(e){return this._rawProperties[e]},e.prototype.getSchema=function(){var t=e._schemaCache[this.getSchemaKey()];return t||(t=new br,this.populateSchema(t),e._schemaCache[this.getSchemaKey()]=t),t},e.defaultMaxVersion=ir.latest,e._schemaCache={},e}();Yn.SerializableObject=xr;var Cr=On&&On.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.HostCapabilities=void 0;var wr=Yn,Sr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._capabilities={},t}return Cr(t,e),t.prototype.getSchemaKey=function(){return"HostCapabilities"},t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),t)for(var r in t){var o=t[r];if("string"==typeof o)if("*"===o)this.addCapability(r,"*");else{var i=wr.Version.parse(o,n);(null==i?void 0:i.isValid)&&this.addCapability(r,i)}}},t.prototype.internalToJSON=function(t,n){for(var r in e.prototype.internalToJSON.call(this,t,n),this._capabilities)t[r]=this._capabilities[r]},t.prototype.addCapability=function(e,t){this._capabilities[e]=t},t.prototype.removeCapability=function(e){delete this._capabilities[e]},t.prototype.clear=function(){this._capabilities={}},t.prototype.hasCapability=function(e,t){return!!this._capabilities.hasOwnProperty(e)&&("*"===t||"*"===this._capabilities[e]||t.compareTo(this._capabilities[e])<=0)},t.prototype.areAllMet=function(e){for(var t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0},t}(wr.SerializableObject);Xn.HostCapabilities=Sr;var kr=On&&On.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(qn,"__esModule",{value:!0}),qn.defaultHostConfig=qn.HostConfig=qn.CarouselConfig=qn.FontTypeSet=qn.FontTypeDefinition=qn.ContainerStyleSet=qn.ContainerStyleDefinition=qn.ColorSetDefinition=qn.ActionsConfig=qn.ShowCardActionConfig=qn.FactSetConfig=qn.FactTitleDefinition=qn.FactTextDefinition=qn.InputConfig=qn.InputLabelConfig=qn.RequiredInputLabelTextDefinition=qn.TextBlockConfig=qn.TextStyleSet=qn.TextStyleDefinition=qn.BaseTextDefinition=qn.TableConfig=qn.MediaConfig=qn.ImageSetConfig=qn.AdaptiveCardConfig=qn.TextColorDefinition=qn.ColorDefinition=void 0;var Pr=Rn,Er=Hn,Ar=zn,Ir=Xn;function _r(e,t,n){if("string"==typeof t){var r=Er.parseEnum(e,t,n);return void 0!==r?r:n}return"number"==typeof t?t:n}var Tr=function(){function e(e,t){this.default="#000000",this.subtle="#666666",e&&(this.default=e),t&&(this.subtle=t)}return e.prototype.parse=function(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)},e}();qn.ColorDefinition=Tr;var jr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.highlightColors=new Tr("#22000000","#11000000"),t}return kr(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&this.highlightColors.parse(t.highlightColors)},t}(Tr);qn.TextColorDefinition=jr;var Mr=function(){return function(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)}}();qn.AdaptiveCardConfig=Mr;var Nr=function(){function e(e){this.imageSize=Pr.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=null!=e.imageSize?e.imageSize:this.imageSize,this.maxImageHeight=Er.parseNumber(e.maxImageHeight,100))}return e.prototype.toJSON=function(){return{imageSize:Pr.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},e}();qn.ImageSetConfig=Nr;var Dr=function(){function e(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}return e.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},e}();qn.MediaConfig=Dr;var Vr=function(){function e(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&"number"==typeof e.cellSpacing?e.cellSpacing:this.cellSpacing)}return e.prototype.toJSON=function(){return{cellSpacing:this.cellSpacing}},e}();qn.TableConfig=Vr;var Or=function(){function e(e){this.size=Pr.TextSize.Default,this.color=Pr.TextColor.Default,this.isSubtle=!1,this.weight=Pr.TextWeight.Default,this.parse(e)}return e.prototype.parse=function(e){e&&(this.size=_r(Pr.TextSize,e.size,this.size),this.color=_r(Pr.TextColor,e.color,this.color),this.isSubtle=void 0!==e.isSubtle&&"boolean"==typeof e.isSubtle?e.isSubtle:this.isSubtle,this.weight=_r(Pr.TextWeight,e.weight,this.getDefaultWeight()))},e.prototype.getDefaultWeight=function(){return Pr.TextWeight.Default},e.prototype.toJSON=function(){return{size:Pr.TextSize[this.size],color:Pr.TextColor[this.color],isSubtle:this.isSubtle,weight:Pr.TextWeight[this.weight]}},e}();qn.BaseTextDefinition=Or;var Br=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fontType=Pr.FontType.Default,t}return kr(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.fontType=_r(Pr.FontType,t.fontType,this.fontType))},t}(Or);qn.TextStyleDefinition=Br;var Rr=function(){function e(e){this.default=new Br,this.heading=new Br({size:"Large",weight:"Bolder"}),this.columnHeader=new Br({weight:"Bolder"}),e&&(this.heading.parse(e.heading),this.columnHeader.parse(e.columnHeader))}return e.prototype.getStyleByName=function(e){switch(e.toLowerCase()){case"heading":return this.heading;case"columnHeader":return this.columnHeader;default:return this.default}},e}();qn.TextStyleSet=Rr;var zr=function(){return function(e){e&&(this.headingLevel=Er.parseNumber(e.headingLevel))}}();qn.TextBlockConfig=zr;var Lr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suffix=" *",t.suffixColor=Pr.TextColor.Attention,t}return kr(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.suffix=t.suffix||this.suffix,this.suffixColor=_r(Pr.TextColor,t.suffixColor,this.suffixColor))},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.suffix=this.suffix,t.suffixColor=Pr.TextColor[this.suffixColor],t},t}(Or);qn.RequiredInputLabelTextDefinition=Lr;var Hr=function(){return function(e){this.inputSpacing=Pr.Spacing.Small,this.width=30,this.requiredInputs=new Lr,this.optionalInputs=new Or,e&&(this.inputSpacing=_r(Pr.Spacing,e.inputSpacing,this.inputSpacing),this.requiredInputs=new Lr(e.requiredInputs),this.optionalInputs=new Or(e.optionalInputs),this.width=null!=e.width?e.width:this.width)}}();qn.InputLabelConfig=Hr;var Fr=function(){return function(e){this.label=new Hr,this.errorMessage=new Or({color:Pr.TextColor.Attention}),this.debounceTimeInMilliSeconds=0,this.allowRevealOnHoverStyle=!1,e&&(this.label=new Hr(e.label),this.errorMessage=new Or(e.errorMessage),this.allowRevealOnHoverStyle=e.allowRevealOnHoverStyle||this.allowRevealOnHoverStyle,this.debounceTimeInMilliSeconds=e.debounceTimeInMilliSeconds)}}();qn.InputConfig=Fr;var Wr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!0,t}return kr(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.wrap=null!=t.wrap?t.wrap:this.wrap)},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.wrap=this.wrap,t},t}(Or);qn.FactTextDefinition=Wr;var $r=function(e){function t(t){var n=e.call(this,t)||this;return n.maxWidth=150,n.weight=Pr.TextWeight.Bolder,t&&(n.maxWidth=null!=t.maxWidth?t.maxWidth:n.maxWidth,n.weight=_r(Pr.TextWeight,t.weight,Pr.TextWeight.Bolder)),n}return kr(t,e),t.prototype.getDefaultWeight=function(){return Pr.TextWeight.Bolder},t}(Wr);qn.FactTitleDefinition=$r;var Ur=function(){return function(e){this.title=new $r,this.value=new Wr,this.spacing=10,e&&(this.title=new $r(e.title),this.value=new Wr(e.value),this.spacing=e.spacing&&null!=e.spacing?e.spacing&&e.spacing:this.spacing)}}();qn.FactSetConfig=Ur;var Jr=function(){function e(e){this.actionMode=Pr.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=Pr.ContainerStyle.Emphasis,e&&(this.actionMode=_r(Pr.ShowCardActionMode,e.actionMode,Pr.ShowCardActionMode.Inline),this.inlineTopMargin=null!=e.inlineTopMargin?e.inlineTopMargin:this.inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:Pr.ContainerStyle.Emphasis)}return e.prototype.toJSON=function(){return{actionMode:Pr.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},e}();qn.ShowCardActionConfig=Jr;var Gr=function(){function e(e){if(this.maxActions=5,this.spacing=Pr.Spacing.Default,this.buttonSpacing=20,this.showCard=new Jr,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=Pr.Orientation.Horizontal,this.actionAlignment=Pr.ActionAlignment.Left,this.iconPlacement=Pr.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=16,e){this.maxActions=null!=e.maxActions?e.maxActions:this.maxActions,this.spacing=_r(Pr.Spacing,e.spacing&&e.spacing,Pr.Spacing.Default),this.buttonSpacing=null!=e.buttonSpacing?e.buttonSpacing:this.buttonSpacing,this.showCard=new Jr(e.showCard),this.preExpandSingleShowCardAction=Er.parseBool(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=_r(Pr.Orientation,e.actionsOrientation,Pr.Orientation.Horizontal),this.actionAlignment=_r(Pr.ActionAlignment,e.actionAlignment,Pr.ActionAlignment.Left),this.iconPlacement=_r(Pr.ActionIconPlacement,e.iconPlacement,Pr.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=null!=e.allowTitleToWrap?e.allowTitleToWrap:this.allowTitleToWrap;try{var t=Ar.SizeAndUnit.parse(e.iconSize);t.unit===Pr.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch(n){}}}return e.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:Pr.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:Pr.Orientation[this.actionsOrientation],actionAlignment:Pr.ActionAlignment[this.actionAlignment]}},e}();qn.ActionsConfig=Gr;var qr=function(){function e(e){this.default=new jr,this.dark=new jr,this.light=new jr,this.accent=new jr,this.good=new jr,this.warning=new jr,this.attention=new jr,this.parse(e)}return e.prototype.parseSingleColor=function(e,t){e&&this[t].parse(e[t])},e.prototype.parse=function(e){e&&(this.parseSingleColor(e,"default"),this.parseSingleColor(e,"dark"),this.parseSingleColor(e,"light"),this.parseSingleColor(e,"accent"),this.parseSingleColor(e,"good"),this.parseSingleColor(e,"warning"),this.parseSingleColor(e,"attention"))},e}();qn.ColorSetDefinition=qr;var Xr=function(){function e(e){this.foregroundColors=new qr({default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#E69500",subtle:"#DDE69500"},attention:{default:"#CC3300",subtle:"#DDCC3300"}}),this.parse(e)}return e.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor,this.borderColor=e.borderColor)},Object.defineProperty(e.prototype,"isBuiltIn",{get:function(){return!1},enumerable:!1,configurable:!0}),e}();qn.ContainerStyleDefinition=Xr;var Yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kr(t,e),Object.defineProperty(t.prototype,"isBuiltIn",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(Xr),Zr=function(){function e(e){if(this._allStyles={},this._allStyles[Pr.ContainerStyle.Default]=new Yr,this._allStyles[Pr.ContainerStyle.Emphasis]=new Yr,this._allStyles[Pr.ContainerStyle.Accent]=new Yr,this._allStyles[Pr.ContainerStyle.Good]=new Yr,this._allStyles[Pr.ContainerStyle.Attention]=new Yr,this._allStyles[Pr.ContainerStyle.Warning]=new Yr,e){this._allStyles[Pr.ContainerStyle.Default].parse(e[Pr.ContainerStyle.Default]),this._allStyles[Pr.ContainerStyle.Emphasis].parse(e[Pr.ContainerStyle.Emphasis]),this._allStyles[Pr.ContainerStyle.Accent].parse(e[Pr.ContainerStyle.Accent]),this._allStyles[Pr.ContainerStyle.Good].parse(e[Pr.ContainerStyle.Good]),this._allStyles[Pr.ContainerStyle.Attention].parse(e[Pr.ContainerStyle.Attention]),this._allStyles[Pr.ContainerStyle.Warning].parse(e[Pr.ContainerStyle.Warning]);var t=e.customStyles;if(t&&Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o){var i=o.name;i&&"string"==typeof i&&(this._allStyles.hasOwnProperty(i)?this._allStyles[i].parse(o.style):this._allStyles[i]=new Xr(o.style))}}}}return e.prototype.toJSON=function(){var e=this,t=[];Object.keys(this._allStyles).forEach(function(n){e._allStyles[n].isBuiltIn||t.push({name:n,style:e._allStyles[n]})});var n={default:this.default,emphasis:this.emphasis};return t.length>0&&(n.customStyles=t),n},e.prototype.getStyleByName=function(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[Pr.ContainerStyle.Default]},Object.defineProperty(e.prototype,"default",{get:function(){return this._allStyles[Pr.ContainerStyle.Default]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emphasis",{get:function(){return this._allStyles[Pr.ContainerStyle.Emphasis]},enumerable:!1,configurable:!0}),e}();qn.ContainerStyleSet=Zr;var Qr=function(){function e(e){this.fontFamily="Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif",this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},e&&(this.fontFamily=e)}return e.prototype.parse=function(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}},e.monospace=new e("'Courier New', Courier, monospace"),e}();qn.FontTypeDefinition=Qr;var Kr=function(){function e(e){this.default=new Qr,this.monospace=new Qr("'Courier New', Courier, monospace"),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}return e.prototype.getStyleDefinition=function(e){switch(e){case Pr.FontType.Monospace:return this.monospace;case Pr.FontType.Default:default:return this.default}},e}();qn.FontTypeSet=Kr;var eo=function(){function e(e){this.maxCarouselPages=10,this.minAutoplayDelay=5e3,e&&(this.maxCarouselPages=null!=e.maxCarouselPages?e.maxCarouselPages:this.maxCarouselPages,this.minAutoplayDelay=null!=e.minAutoplayDelay?e.minAutoplayDelay:this.minAutoplayDelay)}return e.prototype.toJSON=function(){return{maxCarouselPages:this.maxCarouselPages,minAutoplayDelay:this.minAutoplayDelay}},e}();qn.CarouselConfig=eo;var to=function(){function e(e){this.hostCapabilities=new Ir.HostCapabilities,this.choiceSetInputValueSeparator=",",this.supportsInteractivity=!0,this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:"#EEEEEE"},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new Zr,this.inputs=new Fr,this.actions=new Gr,this.adaptiveCard=new Mr,this.imageSet=new Nr,this.media=new Dr,this.factSet=new Ur,this.table=new Vr,this.textStyles=new Rr,this.textBlock=new zr,this.carousel=new eo,this.alwaysAllowBleed=!1,e&&(("string"==typeof e||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&"string"==typeof e.choiceSetInputValueSeparator?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.supportsInteractivity=e&&"boolean"==typeof e.supportsInteractivity?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType=new Qr,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new Kr(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new Zr(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new Fr(e.inputs||this.inputs),this.actions=new Gr(e.actions||this.actions),this.adaptiveCard=new Mr(e.adaptiveCard||this.adaptiveCard),this.imageSet=new Nr(e.imageSet),this.factSet=new Ur(e.factSet),this.textStyles=new Rr(e.textStyles),this.textBlock=new zr(e.textBlock),this.carousel=new eo(e.carousel))}return e.prototype.getFontTypeDefinition=function(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e===Pr.FontType.Monospace?Qr.monospace:this._legacyFontType},e.prototype.getEffectiveSpacing=function(e){switch(e){case Pr.Spacing.Small:return this.spacing.small;case Pr.Spacing.Default:return this.spacing.default;case Pr.Spacing.Medium:return this.spacing.medium;case Pr.Spacing.Large:return this.spacing.large;case Pr.Spacing.ExtraLarge:return this.spacing.extraLarge;case Pr.Spacing.Padding:return this.spacing.padding;default:return 0}},e.prototype.paddingDefinitionToSpacingDefinition=function(e){return new Ar.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},e.prototype.makeCssClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push((this.cssClassNamePrefix?this.cssClassNamePrefix+"-":"")+i)}return n},e.prototype.makeCssClassName=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.makeCssClassNames.apply(this,e).join(" ");return n||""},Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._legacyFontType.fontFamily},set:function(e){this._legacyFontType.fontFamily=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSizes",{get:function(){return this._legacyFontType.fontSizes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeights",{get:function(){return this._legacyFontType.fontWeights},enumerable:!1,configurable:!0}),e}();qn.HostConfig=to,qn.defaultHostConfig=new to({supportsInteractivity:!0,spacing:{small:10,default:20,medium:30,large:40,extraLarge:50,padding:20},separator:{lineThickness:1,lineColor:"#EEEEEE"},fontTypes:{default:{fontFamily:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}},monospace:{fontFamily:"'Courier New', Courier, monospace",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}}},imageSizes:{small:40,medium:80,large:160},containerStyles:{default:{backgroundColor:"#FFFFFF",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},emphasis:{backgroundColor:"#08000000",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},accent:{backgroundColor:"#C7DEF9",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},good:{backgroundColor:"#CCFFCC",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},attention:{backgroundColor:"#FFC5B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},warning:{backgroundColor:"#FFE2B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}}},inputs:{label:{requiredInputs:{weight:Pr.TextWeight.Bolder,suffix:" *",suffixColor:Pr.TextColor.Attention},optionalInputs:{weight:Pr.TextWeight.Bolder}},errorMessage:{color:Pr.TextColor.Attention,weight:Pr.TextWeight.Bolder},debounceTimeInMilliSeconds:250},actions:{maxActions:5,spacing:Pr.Spacing.Default,buttonSpacing:10,showCard:{actionMode:Pr.ShowCardActionMode.Inline,inlineTopMargin:16},actionsOrientation:Pr.Orientation.Horizontal,actionAlignment:Pr.ActionAlignment.Left},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:Pr.Size.Medium,maxImageHeight:100},factSet:{title:{color:Pr.TextColor.Default,size:Pr.TextSize.Default,isSubtle:!1,weight:Pr.TextWeight.Bolder,wrap:!0,maxWidth:150},value:{color:Pr.TextColor.Default,size:Pr.TextSize.Default,isSubtle:!1,weight:Pr.TextWeight.Default,wrap:!0},spacing:10},carousel:{maxCarouselPages:10,minAutoplayDuration:5e3},textBlock:{headingLevel:2}});var no={},ro=On&&On.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(no,"__esModule",{value:!0}),no.formatText=void 0;var oo=function(){function e(e){this._regularExpression=e}return e.prototype.format=function(e,t){var n;if(t){for(var r=t;null!=(n=this._regularExpression.exec(t));)r=r.replace(n[0],this.internalFormat(e,n));return r}return t},e}(),io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ro(t,e),t.prototype.internalFormat=function(e,t){var n=new Date(Date.parse(t[1])),r=void 0!==t[2]?t[2].toLowerCase():"compact";return"compact"!==r?n.toLocaleDateString(e,{day:"numeric",weekday:r,month:r,year:"numeric"}):n.toLocaleDateString()},t}(oo),ao=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ro(t,e),t.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})},t}(oo);no.formatText=function(e,t){for(var n=t,r=0,o=[new io(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new ao(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)];r<o.length;r++){n=o[r].format(e,n)}return n};var so={},lo=On&&On.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),co=On&&On.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(so,"__esModule",{value:!0}),so.CardObject=so.ValidationResults=void 0;var uo=Rn,po=Zn,ho=zn,mo=Xn,fo=Yn,go=function(){function e(){this.allIds={},this.validationEvents=[]}return e.prototype.addFailure=function(e,t,n){this.validationEvents.push({phase:uo.ValidationPhase.Validation,source:e,event:t,message:n})},e}();so.ValidationResults=go;var yo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._shouldFallback=!1,t}return lo(t,e),t.prototype.getSchemaKey=function(){return this.getJsonTypeName()},Object.defineProperty(t.prototype,"requires",{get:function(){return this.getValue(t.requiresProperty)},enumerable:!1,configurable:!0}),t.prototype.contains=function(e){return!!this._renderedElement&&this._renderedElement.contains(e)},t.prototype.preProcessPropertyValue=function(e,t){var n=void 0===t?this.getValue(e):t;if(ho.GlobalSettings.allowPreProcessingPropertyValues){for(var r=this;r&&!r.onPreProcessPropertyValue;)r=r.parent;if(r&&r.onPreProcessPropertyValue)return r.onPreProcessPropertyValue(this,e,n)}return n},t.prototype.setParent=function(e){this._parent=e},t.prototype.setShouldFallback=function(e){this._shouldFallback=e},t.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},t.prototype.getRootObject=function(){for(var e=this;e.parent;)e=e.parent;return e},t.prototype.internalValidateProperties=function(e){this.id&&(e.allIds.hasOwnProperty(this.id)?(1===e.allIds[this.id]&&e.addFailure(this,uo.ValidationEvent.DuplicateId,po.Strings.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)},t.prototype.validateProperties=function(){var e=new go;return this.internalValidateProperties(e),e},t.prototype.findDOMNodeOwner=function(e){return this.contains(e)?this:void 0},t.prototype.releaseDOMResources=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),t.typeNameProperty=new fo.StringProperty(fo.Versions.v1_0,"type",void 0,void 0,void 0,function(e){return e.getJsonTypeName()}),t.idProperty=new fo.StringProperty(fo.Versions.v1_0,"id"),t.requiresProperty=new fo.SerializableObjectProperty(fo.Versions.v1_2,"requires",mo.HostCapabilities,!1,new mo.HostCapabilities),co([(0,fo.property)(t.idProperty)],t.prototype,"id",void 0),co([(0,fo.property)(t.requiresProperty)],t.prototype,"requires",null),t}(fo.SerializableObject);so.CardObject=yo;var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.GlobalRegistry=vo.CardObjectRegistry=void 0;var bo=Yn,xo=function(){function e(){this._items={}}return e.prototype.findByName=function(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0},e.prototype.clear=function(){this._items={}},e.prototype.copyTo=function(e){for(var t=0,n=Object.keys(this._items);t<n.length;t++){var r=n[t],o=this._items[r];e.register(o.typeName,o.objectType,o.schemaVersion)}},e.prototype.register=function(e,t,n){void 0===n&&(n=bo.Versions.v1_0);var r=this.findByName(e);void 0!==r?r.objectType=t:r={typeName:e,objectType:t,schemaVersion:n},this._items[e]=r},e.prototype.unregister=function(e){delete this._items[e]},e.prototype.createInstance=function(e,t){var n=this.findByName(e);return n&&n.schemaVersion.compareTo(t)<=0?new n.objectType:void 0},e.prototype.getItemCount=function(){return Object.keys(this._items).length},e.prototype.getItemAt=function(e){var t=this;return Object.keys(this._items).map(function(e){return t._items[e]})[e]},e}();vo.CardObjectRegistry=xo;var Co=function(){function e(){}return e.populateWithDefaultElements=function(t){t.clear(),e.defaultElements.copyTo(t)},e.populateWithDefaultActions=function(t){t.clear(),e.defaultActions.copyTo(t)},Object.defineProperty(e,"elements",{get:function(){return e._elements||(e._elements=new xo,e.populateWithDefaultElements(e._elements)),e._elements},enumerable:!1,configurable:!0}),Object.defineProperty(e,"actions",{get:function(){return e._actions||(e._actions=new xo,e.populateWithDefaultActions(e._actions)),e._actions},enumerable:!1,configurable:!0}),e.reset=function(){e._elements=void 0,e._actions=void 0},e.defaultElements=new xo,e.defaultActions=new xo,e}();vo.GlobalRegistry=Co;var wo={},So={},ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.Constants=void 0;var Po=function(){function e(){}return e.keys={tab:"Tab",enter:"Enter",escape:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",delete:"Delete"},e}();ko.Constants=Po,Object.defineProperty(So,"__esModule",{value:!0}),So.MenuItem=void 0;var Eo=qn,Ao=ko,Io=function(){function e(e,t){this._isEnabled=!0,this.key=e,this._value=t}return e.prototype.click=function(){this.isEnabled&&this.onClick&&this.onClick(this)},e.prototype.updateCssClasses=function(){if(this._element){var e=this._hostConfig?this._hostConfig:Eo.defaultHostConfig;this._element.className=e.makeCssClassName("ac-ctrl"),this._element.classList.add(e.makeCssClassName(this.isEnabled?"ac-ctrl-dropdown-item":"ac-ctrl-dropdown-item-disabled")),this.isEnabled||this._element.classList.add(e.makeCssClassName("ac-disabled"))}},e.prototype.toString=function(){return this.value},e.prototype.render=function(e){var t=this;return this._hostConfig=e,this._element||(this._element=document.createElement("span"),this._element.innerText=this.value,this._element.setAttribute("role","menuitem"),this.isEnabled||this._element.setAttribute("aria-disabled","true"),this._element.setAttribute("aria-current","false"),this._element.onmouseup=function(e){t.click()},this._element.onkeydown=function(e){e.key===Ao.Constants.keys.enter&&(e.cancelBubble=!0,t.click())},this.updateCssClasses()),this._element},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._element&&(this._element.innerText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){this._isEnabled!==e&&(this._isEnabled=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),e}();So.MenuItem=Io;var _o={},To={};Object.defineProperty(To,"__esModule",{value:!0}),To.Collection=void 0;var jo=function(){function e(){this._items=[]}return e.prototype.get=function(e){return this._items[e]},e.prototype.add=function(e){this._items.push(e),this.onItemAdded&&this.onItemAdded(e)},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>=0&&(this._items=this._items.splice(t,1),this.onItemRemoved&&this.onItemRemoved(e))},e.prototype.indexOf=function(e){return this._items.indexOf(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e}();To.Collection=jo;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.PopupControl=void 0;var No=ko,Do=Hn,Vo=qn,Oo=function(){function e(){this._isOpen=!1}return e.prototype.keyDown=function(e){if(e.key===No.Constants.keys.escape)this.closePopup(!0)},e.prototype.render=function(e){var t=this,n=document.createElement("div");return n.tabIndex=0,n.className=this.hostConfig.makeCssClassName("ac-ctrl","ac-ctrl-popup-container"),n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.onkeydown=function(e){return t.keyDown(e),!e.cancelBubble},n.appendChild(this.renderContent()),n},e.prototype.focus=function(){this._popupElement&&this._popupElement.firstElementChild.focus()},e.prototype.popup=function(e){var t,n,r,o,i,a=this;if(!this._isOpen){this._overlayElement=document.createElement("div"),this._overlayElement.className=this.hostConfig.makeCssClassName("ac-ctrl-overlay"),this._overlayElement.tabIndex=0,this._overlayElement.style.width=document.documentElement.scrollWidth+"px",this._overlayElement.style.height=document.documentElement.scrollHeight+"px",this._overlayElement.onfocus=function(e){a.closePopup(!0)},document.body.appendChild(this._overlayElement);var s=e.getBoundingClientRect();this._popupElement=this.render(s),(t=this._popupElement.classList).remove.apply(t,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight","ac-ctrl-slideRightToLeft","ac-ctrl-slideTopToBottom","ac-ctrl-slideRightToLeft")),window.addEventListener("resize",function(e){a.closePopup(!0)});var l=e.getAttribute("aria-label");l&&this._popupElement.setAttribute("aria-label",l),this._overlayElement.appendChild(this._popupElement);var c,u=this._popupElement.getBoundingClientRect(),d=window.innerHeight-s.bottom,p=s.top,h=window.innerWidth-s.right,m=s.left,f=s.left+Do.getScrollX();if(p<u.height&&d<u.height){var g=Math.min(u.height,window.innerHeight);if(this._popupElement.style.maxHeight=g+"px",c=g<u.height?Do.getScrollY():Do.getScrollY()+s.top+(s.height-g)/2,m<u.width&&h<u.width){var y=Math.min(u.width,window.innerWidth);this._popupElement.style.maxWidth=y+"px",f=y<u.width?Do.getScrollX():Do.getScrollX()+s.left+(s.width-y)/2}else h>=u.width?(f=Do.getScrollX()+s.right,(n=this._popupElement.classList).add.apply(n,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight"))):(f=Do.getScrollX()+s.left-u.width,(r=this._popupElement.classList).add.apply(r,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideRightToLeft")))}else d>=u.height?(c=Do.getScrollY()+s.bottom,(o=this._popupElement.classList).add.apply(o,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideTopToBottom"))):(c=Do.getScrollY()+s.top-u.height,(i=this._popupElement.classList).add.apply(i,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideBottomToTop"))),h<u.width&&(f=Do.getScrollX()+s.right-u.width);this._popupElement.style.left=f+"px",this._popupElement.style.top=c+"px",this._popupElement.focus(),this._isOpen=!0}},e.prototype.closePopup=function(e){this._isOpen&&(document.body.removeChild(this._overlayElement),this._isOpen=!1,this.onClose&&this.onClose(this,e))},Object.defineProperty(e.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:Vo.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),e}();Mo.PopupControl=Oo;var Bo=On&&On.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(_o,"__esModule",{value:!0}),_o.PopupMenu=void 0;var Ro,zo,Lo,Ho=ko,Fo=To,Wo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._items=new Fo.Collection,t._renderedItems=[],t._selectedIndex=-1,t}return Bo(t,e),t.prototype.renderContent=function(){var e=document.createElement("div");e.className=this.hostConfig.makeCssClassName("ac-ctrl ac-popup"),e.setAttribute("role","listbox");for(var t=0;t<this._items.length;t++){var n=this._items.get(t).render(this.hostConfig);n.tabIndex=0,e.appendChild(n),t===this.selectedIndex&&n.focus(),this._renderedItems.push(n)}return e},t.prototype.keyDown=function(t){e.prototype.keyDown.call(this,t);var n=this._selectedIndex;switch(t.key){case Ho.Constants.keys.tab:this.closePopup(!0);break;case Ho.Constants.keys.up:(n<=0||--n<0)&&(n=this._renderedItems.length-1),this.selectedIndex=n,t.cancelBubble=!0;break;case Ho.Constants.keys.down:(n<0||++n>=this._renderedItems.length)&&(n=0),this.selectedIndex=n,t.cancelBubble=!0}},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e>=0&&e<this._renderedItems.length&&(this._renderedItems[e].focus(),this._selectedIndex=e)},enumerable:!1,configurable:!0}),t}(Mo.PopupControl);_o.PopupMenu=Wo,Ro=wo,zo=On&&On.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),Lo=On&&On.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||zo(t,e,n)},Object.defineProperty(Ro,"__esModule",{value:!0}),Lo(So,Ro),Lo(_o,Ro);var $o=On&&On.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uo=On&&On.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jo=On&&On.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},Go=On&&On.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.BackgroundImage=Bn.ContainerBase=Bn.StylableCardElementContainer=Bn.ContainerStyleProperty=Bn.ActionSet=Bn.ShowCardAction=Bn.HttpAction=Bn.HttpHeader=Bn.ToggleVisibilityAction=Bn.OpenUrlAction=Bn.DataQuery=Bn.ExecuteAction=Bn.UniversalAction=Bn.SubmitAction=Bn.SubmitActionBase=Bn.Action=Bn.TimeInput=Bn.TimeProperty=Bn.DateInput=Bn.NumberInput=Bn.FilteredChoiceSet=Bn.ChoiceSetInput=Bn.ChoiceSetInputDataQuery=Bn.Choice=Bn.ToggleInput=Bn.TextInput=Bn.Input=Bn.Media=Bn.YouTubePlayer=Bn.DailymotionPlayer=Bn.VimeoPlayer=Bn.IFrameMediaMediaPlayer=Bn.CustomMediaPlayer=Bn.HTML5MediaPlayer=Bn.MediaPlayer=Bn.MediaSource=Bn.CaptionSource=Bn.ContentSource=Bn.ImageSet=Bn.CardElementContainer=Bn.Image=Bn.FactSet=Bn.Fact=Bn.RichTextBlock=Bn.TextRun=Bn.TextBlock=Bn.BaseTextBlock=Bn.ActionProperty=Bn.CardElement=Bn.renderSeparation=void 0,Bn.SerializationContext=Bn.AdaptiveCard=Bn.Authentication=Bn.TokenExchangeResource=Bn.AuthCardButton=Bn.RefreshDefinition=Bn.RefreshActionProperty=Bn.ContainerWithActions=Bn.ColumnSet=Bn.Column=Bn.Container=void 0;var qo=Rn,Xo=zn,Yo=Hn,Zo=qn,Qo=no,Ko=so,ei=Yn,ti=vo,ni=Zn,ri=wo;function oi(e){var t,n,r="undefined"==typeof window?"":null!==(n=null===(t=window.trustedTypes)||void 0===t?void 0:t.emptyHTML)&&void 0!==n?n:"";e.innerHTML=r}function ii(e,t,n){if(t.spacing>0||t.lineThickness&&t.lineThickness>0){var r=document.createElement("div");r.className=e.makeCssClassName("ac-"+(n===qo.Orientation.Horizontal?"horizontal":"vertical")+"-separator"),r.setAttribute("aria-hidden","true");var o=t.lineColor?Yo.stringToCssColor(t.lineColor):"";return n===qo.Orientation.Horizontal?t.lineThickness?(r.style.paddingTop=t.spacing/2+"px",r.style.marginBottom=t.spacing/2+"px",r.style.borderBottom=t.lineThickness+"px solid "+o):r.style.height=t.spacing+"px":t.lineThickness?(r.style.paddingLeft=t.spacing/2+"px",r.style.marginRight=t.spacing/2+"px",r.style.borderRight=t.lineThickness+"px solid "+o):r.style.width=t.spacing+"px",r.style.overflow="hidden",r.style.flex="0 0 auto",r}}Bn.renderSeparation=ii;var ai=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._truncatedDueToOverflow=!1,t}return $o(t,e),Object.defineProperty(t.prototype,"lang",{get:function(){var e=this.getValue(t.langProperty);return e||(this.parent?this.parent.lang:void 0)},set:function(e){this.setValue(t.langProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getValue(t.isVisibleProperty)},set:function(e){Xo.GlobalSettings.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this.isVisible!==e&&(this.setValue(t.isVisibleProperty,e),this.updateRenderedElementVisibility(),this._renderedElement&&xa(this)),this._renderedElement&&this._renderedElement.setAttribute("aria-expanded",e.toString())},enumerable:!1,configurable:!0}),t.prototype.internalRenderSeparator=function(){var e=ii(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.separator?this.hostConfig.separator.lineColor:void 0},this.separatorOrientation);if(Xo.GlobalSettings.alwaysBleedSeparators&&e&&this.separatorOrientation===qo.Orientation.Horizontal){var t=this.getParentContainer();if(t&&t.getEffectivePadding()){var n=this.hostConfig.paddingDefinitionToSpacingDefinition(t.getEffectivePadding());e.style.marginLeft="-"+n.left+"px",e.style.marginRight="-"+n.right+"px"}}return e},t.prototype.updateRenderedElementVisibility=function(){var e=this.isDesignMode()||this.isVisible?this._defaultRenderedElementDisplayMode:"none";this._renderedElement&&(e?this._renderedElement.style.display=e:this._renderedElement.style.removeProperty("display")),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display="none":e?this._separatorElement.style.display=e:this._separatorElement.style.removeProperty("display"))},t.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this.isVisible&&(this._renderedElement.style.visibility="hidden",this.isVisible=!1,xa(this,!1))},t.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this.isVisible&&(this._renderedElement.style.removeProperty("visibility"),this.isVisible=!0,xa(this,!1))},t.prototype.handleOverflow=function(e){if(this.isVisible||this.isHiddenDueToOverflow()){var t=this.truncateOverflow(e);this._truncatedDueToOverflow=t||this._truncatedDueToOverflow,t?t&&!this.isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow()}},t.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),this._truncatedDueToOverflow=!1,e=!0),this.isHiddenDueToOverflow()&&this.showElementHiddenDueToOverflow(),e},t.prototype.getDefaultSerializationContext=function(){return new Ta},t.prototype.createPlaceholderElement=function(){var e=this.getEffectiveStyleDefinition(),t=Yo.stringToCssColor(e.foregroundColors.default.subtle),n=document.createElement("div");return n.style.border="1px dashed "+t,n.style.padding="4px",n.style.minHeight="32px",n.style.fontSize="10px",t&&(n.style.color=t),n.innerText=ni.Strings.defaults.emptyElementText(this.getJsonTypeName()),n},t.prototype.adjustRenderedElementSize=function(e){"auto"===this.height?e.style.flex="0 0 auto":e.style.flex="1 1 auto"},t.prototype.updateInputsVisualState=function(e){var t=this.getAllInputs(),n=e?Ti.MouseEnterOnCard:Ti.MouseLeaveOnCard;t.forEach(function(e){return e.updateVisualState(n)})},t.prototype.isDisplayed=function(){return void 0!==this._renderedElement&&this.isVisible&&this._renderedElement.offsetHeight>0},t.prototype.overrideInternalRender=function(){return this.internalRender()},t.prototype.applyPadding=function(){if(this.separatorElement&&this.separatorOrientation===qo.Orientation.Horizontal)if(Xo.GlobalSettings.alwaysBleedSeparators&&!this.isBleeding()){var e=new Xo.PaddingDefinition;this.getImmediateSurroundingPadding(e);var t=this.hostConfig.paddingDefinitionToSpacingDefinition(e);this.separatorElement.style.marginLeft="-"+t.left+"px",this.separatorElement.style.marginRight="-"+t.right+"px"}else this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0"},t.prototype.truncateOverflow=function(e){return!1},t.prototype.undoOverflowTruncation=function(){},t.prototype.getDefaultPadding=function(){return new Xo.PaddingDefinition},t.prototype.getHasBackground=function(e){return!1},t.prototype.getHasBorder=function(){return!1},t.prototype.getPadding=function(){return this._padding},t.prototype.setPadding=function(e){this._padding=e},t.prototype.shouldSerialize=function(e){return void 0!==e.elementRegistry.findByName(this.getJsonTypeName())},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return qo.Orientation.Horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return qo.ContainerStyle.Default},enumerable:!1,configurable:!0}),t.prototype.parse=function(t,n){e.prototype.parse.call(this,t,n||new Ta)},t.prototype.asString=function(){return""},t.prototype.isBleeding=function(){return!1},t.prototype.getEffectiveStyle=function(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle},t.prototype.getEffectiveStyleDefinition=function(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())},t.prototype.getEffectiveTextStyleDefinition=function(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default},t.prototype.getForbiddenActionTypes=function(){return[]},t.prototype.getImmediateSurroundingPadding=function(e,t,n,r,o){if(void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!0),this.parent){var i=t&&this.parent.isTopElement(this),a=n&&this.parent.isRightMostElement(this),s=r&&this.parent.isBottomElement(this),l=o&&this.parent.isLeftMostElement(this),c=this.parent.getEffectivePadding();c&&(i&&c.top!==qo.Spacing.None&&(e.top=c.top,i=!1),a&&c.right!==qo.Spacing.None&&(e.right=c.right,a=!1),s&&c.bottom!==qo.Spacing.None&&(e.bottom=c.bottom,s=!1),l&&c.left!==qo.Spacing.None&&(e.left=c.left,l=!1)),(i||a||s||l)&&this.parent.getImmediateSurroundingPadding(e,i,a,s,l)}},t.prototype.getActionCount=function(){return 0},t.prototype.getActionAt=function(e){throw new Error(ni.Strings.errors.indexOutOfRange(e))},t.prototype.indexOfAction=function(e){for(var t=0;t<this.getActionCount();t++)if(this.getActionAt(t)===e)return t;return-1},t.prototype.remove=function(){return!!(this.parent&&this.parent instanceof yi)&&this.parent.removeItem(this)},t.prototype.render=function(){return this._renderedElement=this.overrideInternalRender(),this._separatorElement=this.internalRenderSeparator(),this._renderedElement?(this.id&&(this._renderedElement.id=this.id),this.customCssSelector&&this._renderedElement.classList.add(this.customCssSelector),this._renderedElement.style.boxSizing="border-box",this._defaultRenderedElementDisplayMode=this._renderedElement.style.display?this._renderedElement.style.display:void 0,this.adjustRenderedElementSize(this._renderedElement),this.updateLayout(!1)):this.isDesignMode()&&(this._renderedElement=this.createPlaceholderElement()),this._renderedElement},t.prototype.updateLayout=function(e){this.updateRenderedElementVisibility(),this.applyPadding()},t.prototype.updateActionsEnabledState=function(){for(var e=0,t=this.getRootElement().getAllActions();e<t.length;e++){t[e].updateEnabledState()}},t.prototype.indexOf=function(e){return-1},t.prototype.isDesignMode=function(){var e=this.getRootElement();return e instanceof Ia&&e.designMode},t.prototype.isFirstElement=function(e){return!0},t.prototype.isLastElement=function(e){return!0},t.prototype.isAtTheVeryLeft=function(){return!this.parent||this.parent.isLeftMostElement(this)&&this.parent.isAtTheVeryLeft()},t.prototype.isAtTheVeryRight=function(){return!this.parent||this.parent.isRightMostElement(this)&&this.parent.isAtTheVeryRight()},t.prototype.isAtTheVeryTop=function(){return!this.parent||this.parent.isFirstElement(this)&&this.parent.isAtTheVeryTop()},t.prototype.isAtTheVeryBottom=function(){return!this.parent||this.parent.isLastElement(this)&&this.parent.isAtTheVeryBottom()},t.prototype.isBleedingAtTop=function(){return!1},t.prototype.isBleedingAtBottom=function(){return!1},t.prototype.isLeftMostElement=function(e){return!0},t.prototype.isRightMostElement=function(e){return!0},t.prototype.isTopElement=function(e){return this.isFirstElement(e)},t.prototype.isBottomElement=function(e){return this.isLastElement(e)},t.prototype.isHiddenDueToOverflow=function(){return void 0!==this._renderedElement&&"hidden"===this._renderedElement.style.visibility},t.prototype.getRootElement=function(){return this.getRootObject()},t.prototype.getParentContainer=function(){for(var e=this.parent;e;){if(e instanceof ma)return e;e=e.parent}},t.prototype.getAllInputs=function(e){return[]},t.prototype.getAllActions=function(){for(var e=[],t=0;t<this.getActionCount();t++){var n=this.getActionAt(t);n&&e.push(n)}return e},t.prototype.getResourceInformation=function(){return[]},t.prototype.getElementById=function(e){return this.id===e?this:void 0},t.prototype.getActionById=function(e){},t.prototype.getElementByIdFromAction=function(e){for(var t=void 0,n=0;n<this.getActionCount();n++){var r=this.getActionAt(n);if(r instanceof ia&&(t=r.card.getElementById(e)))break}return t},t.prototype.getEffectivePadding=function(){var e=this.getPadding();return e||this.getDefaultPadding()},t.prototype.getEffectiveHorizontalAlignment=function(){return void 0!==this.horizontalAlignment?this.horizontalAlignment:this.parent?this.parent.getEffectiveHorizontalAlignment():qo.HorizontalAlignment.Left},Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:Zo.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.parent?this.parent.indexOf(this):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!(!this.parent||!this.separatorElement)&&(!this.parent.isFirstElement(this)&&(this.isVisible||this.isDesignMode()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorElement",{get:function(){return this._separatorElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),t.langProperty=new ei.StringProperty(ei.Versions.v1_1,"lang",!0,/^[a-z]{2,3}$/gi),t.isVisibleProperty=new ei.BoolProperty(ei.Versions.v1_2,"isVisible",!0),t.separatorProperty=new ei.BoolProperty(ei.Versions.v1_0,"separator",!1),t.heightProperty=new ei.ValueSetProperty(ei.Versions.v1_1,"height",[{value:"auto"},{value:"stretch"}],"auto"),t.horizontalAlignmentProperty=new ei.EnumProperty(ei.Versions.v1_0,"horizontalAlignment",qo.HorizontalAlignment),t.spacingProperty=new ei.EnumProperty(ei.Versions.v1_0,"spacing",qo.Spacing,qo.Spacing.Default),Uo([(0,ei.property)(t.horizontalAlignmentProperty)],t.prototype,"horizontalAlignment",void 0),Uo([(0,ei.property)(t.spacingProperty)],t.prototype,"spacing",void 0),Uo([(0,ei.property)(t.separatorProperty)],t.prototype,"separator",void 0),Uo([(0,ei.property)(t.heightProperty)],t.prototype,"height",void 0),Uo([(0,ei.property)(t.langProperty)],t.prototype,"lang",null),Uo([(0,ei.property)(t.isVisibleProperty)],t.prototype,"isVisible",null),t}(Ko.CardObject);Bn.CardElement=ai;var si=function(e){function t(t,n,r){void 0===r&&(r=[]);var o=e.call(this,t,n,void 0)||this;return o.targetVersion=t,o.name=n,o.forbiddenActionTypes=r,o}return $o(t,e),t.prototype.parse=function(e,t,n){var r=e;return n.parseAction(r,t[this.name],this.forbiddenActionTypes,r.isDesignMode())},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n?n.toJSON(r):void 0,void 0,!0)},t}(ei.PropertyDefinition);Bn.ActionProperty=si;var li=function(e){function t(t){var n=e.call(this)||this;return n.ariaHidden=!1,t&&(n.text=t),n}return $o(t,e),t.prototype.populateSchema=function(n){e.prototype.populateSchema.call(this,n),n.remove(t.selectActionProperty)},Object.defineProperty(t.prototype,"text",{get:function(){return this.getValue(t.textProperty)},set:function(e){this.setText(e)},enumerable:!1,configurable:!0}),t.prototype.getFontSize=function(e){switch(this.effectiveSize){case qo.TextSize.Small:return e.fontSizes.small;case qo.TextSize.Medium:return e.fontSizes.medium;case qo.TextSize.Large:return e.fontSizes.large;case qo.TextSize.ExtraLarge:return e.fontSizes.extraLarge;default:return e.fontSizes.default}},t.prototype.getColorDefinition=function(e,t){switch(t){case qo.TextColor.Accent:return e.accent;case qo.TextColor.Dark:return e.dark;case qo.TextColor.Light:return e.light;case qo.TextColor.Good:return e.good;case qo.TextColor.Warning:return e.warning;case qo.TextColor.Attention:return e.attention;default:return e.default}},t.prototype.setText=function(e){this.setValue(t.textProperty,e)},t.prototype.init=function(e){this.size=e.size,this.weight=e.weight,this.color=e.color,this.isSubtle=e.isSubtle},t.prototype.asString=function(){return this.text},t.prototype.applyStylesTo=function(e){var t,n=this.hostConfig.getFontTypeDefinition(this.effectiveFontType);switch(n.fontFamily&&(e.style.fontFamily=n.fontFamily),this.effectiveSize){case qo.TextSize.Small:t=n.fontSizes.small;break;case qo.TextSize.Medium:t=n.fontSizes.medium;break;case qo.TextSize.Large:t=n.fontSizes.large;break;case qo.TextSize.ExtraLarge:t=n.fontSizes.extraLarge;break;default:t=n.fontSizes.default}e.style.fontSize=t+"px";var r,o=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),i=Yo.stringToCssColor(this.effectiveIsSubtle?o.subtle:o.default);switch(i&&(e.style.color=i),this.effectiveWeight){case qo.TextWeight.Lighter:r=n.fontWeights.lighter;break;case qo.TextWeight.Bolder:r=n.fontWeights.bolder;break;default:r=n.fontWeights.default}e.style.fontWeight=r.toString(),this.ariaHidden&&e.setAttribute("aria-hidden","true")},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},Object.defineProperty(t.prototype,"effectiveColor",{get:function(){return void 0!==this.color?this.color:this.getEffectiveTextStyleDefinition().color},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveFontType",{get:function(){return void 0!==this.fontType?this.fontType:this.getEffectiveTextStyleDefinition().fontType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveIsSubtle",{get:function(){return void 0!==this.isSubtle?this.isSubtle:this.getEffectiveTextStyleDefinition().isSubtle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveSize",{get:function(){return void 0!==this.size?this.size:this.getEffectiveTextStyleDefinition().size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveWeight",{get:function(){return void 0!==this.weight?this.weight:this.getEffectiveTextStyleDefinition().weight},enumerable:!1,configurable:!0}),t.textProperty=new ei.StringProperty(ei.Versions.v1_0,"text",!0),t.sizeProperty=new ei.EnumProperty(ei.Versions.v1_0,"size",qo.TextSize),t.weightProperty=new ei.EnumProperty(ei.Versions.v1_0,"weight",qo.TextWeight),t.colorProperty=new ei.EnumProperty(ei.Versions.v1_0,"color",qo.TextColor),t.isSubtleProperty=new ei.BoolProperty(ei.Versions.v1_0,"isSubtle"),t.fontTypeProperty=new ei.EnumProperty(ei.Versions.v1_2,"fontType",qo.FontType),t.selectActionProperty=new si(ei.Versions.v1_1,"selectAction",["Action.ShowCard"]),Uo([(0,ei.property)(t.sizeProperty)],t.prototype,"size",void 0),Uo([(0,ei.property)(t.weightProperty)],t.prototype,"weight",void 0),Uo([(0,ei.property)(t.colorProperty)],t.prototype,"color",void 0),Uo([(0,ei.property)(t.fontTypeProperty)],t.prototype,"fontType",void 0),Uo([(0,ei.property)(t.isSubtleProperty)],t.prototype,"isSubtle",void 0),Uo([(0,ei.property)(t.textProperty)],t.prototype,"text",null),Uo([(0,ei.property)(t.selectActionProperty)],t.prototype,"selectAction",void 0),t}(ai);Bn.BaseTextBlock=li;var ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!1,t._treatAsPlainText=!0,t.useMarkdown=!0,t}var n,r;return $o(t,e),t.prototype.restoreOriginalContent=function(){var e,n;if(void 0!==this.renderedElement){this.maxLines&&this.maxLines>0&&(this.renderedElement.style.maxHeight=this._computedLineHeight*this.maxLines+"px");var r=null!==(n=null===(e=t._ttRoundtripPolicy)||void 0===e?void 0:e.createHTML(this._originalInnerHtml))&&void 0!==n?n:this._originalInnerHtml;this.renderedElement.innerHTML=r}},t.prototype.truncateIfSupported=function(e){if(void 0!==this.renderedElement){var t=this.renderedElement.children,n=!t.length;if(n||1===t.length&&"p"===t[0].tagName.toLowerCase()&&!t[0].children.length){var r=n?this.renderedElement:t[0];return Yo.truncateText(r,e,this._computedLineHeight),!0}}return!1},t.prototype.setText=function(t){e.prototype.setText.call(this,t),this._processedText=void 0},t.prototype.internalRender=function(){var e,n,r=this;if(this._processedText=void 0,this.text){var o=this.preProcessPropertyValue(li.textProperty),i=this.hostConfig,a=void 0;if(this.forElementId){var s=document.createElement("label");s.htmlFor=this.forElementId,a=s}else a=document.createElement("div");if(a.classList.add(i.makeCssClassName("ac-textBlock")),a.style.overflow="hidden",this.applyStylesTo(a),"heading"===this.style){a.setAttribute("role","heading");var l=this.hostConfig.textBlock.headingLevel;void 0!==l&&l>0&&a.setAttribute("aria-level",l.toString())}if(this.selectAction&&i.supportsInteractivity&&(a.onclick=function(e){r.selectAction&&r.selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,r.selectAction.execute())},this.selectAction.setupElementForAccessibility(a),this.selectAction.isEffectivelyEnabled()&&a.classList.add(i.makeCssClassName("ac-selectable"))),!this._processedText){this._treatAsPlainText=!0;var c=Qo.formatText(this.lang,o);if(this.useMarkdown&&c){Xo.GlobalSettings.allowMarkForTextHighlighting&&(c=c.replace(/<mark>/g,"===").replace(/<\/mark>/g,"/==/"));var u=Ia.applyMarkdown(c);if(u.didProcess&&u.outputHtml){if(this._processedText=u.outputHtml,this._treatAsPlainText=!1,Xo.GlobalSettings.allowMarkForTextHighlighting&&this._processedText){var d="",p=this.getEffectiveStyleDefinition();p.highlightBackgroundColor&&(d+="background-color: "+p.highlightBackgroundColor+";"),p.highlightForegroundColor&&(d+="color: "+p.highlightForegroundColor+";"),d&&(d='style="'+d+'"'),this._processedText=this._processedText.replace(/===/g,"<mark "+d+">").replace(/\/==\//g,"</mark>")}}else this._processedText=c,this._treatAsPlainText=!0}else this._processedText=c,this._treatAsPlainText=!0}if(this._processedText||(this._processedText=""),this._treatAsPlainText)a.innerText=this._processedText;else{var h=null!==(n=null===(e=t._ttMarkdownPolicy)||void 0===e?void 0:e.createHTML(this._processedText))&&void 0!==n?n:this._processedText;a.innerHTML=h}if(a.firstElementChild instanceof HTMLElement){var m=a.firstElementChild;m.style.marginTop="0px",m.style.width="100%",this.wrap||(m.style.overflow="hidden",m.style.textOverflow="ellipsis")}a.lastElementChild instanceof HTMLElement&&(a.lastElementChild.style.marginBottom="0px");for(var f=a.getElementsByTagName("a"),g=function(e){e.classList.add(i.makeCssClassName("ac-anchor")),e.target="_blank",e.onclick=function(t){va(r,e,t)&&(t.preventDefault(),t.cancelBubble=!0)},e.oncontextmenu=function(t){return!va(r,e,t)||(t.preventDefault(),t.cancelBubble=!0,!1)}},y=0,v=Array.from(f);y<v.length;y++){g(v[y])}return this.wrap?(a.style.wordWrap="break-word",this.maxLines&&this.maxLines>0&&(a.style.overflow="hidden",Yo.isInternetExplorer()||!Xo.GlobalSettings.useWebkitLineClamp?a.style.maxHeight=this._computedLineHeight*this.maxLines+"px":(a.style.removeProperty("line-height"),a.style.display="-webkit-box",a.style.webkitBoxOrient="vertical",a.style.webkitLineClamp=this.maxLines.toString()))):(a.style.whiteSpace="nowrap",a.style.textOverflow="ellipsis"),(Xo.GlobalSettings.useAdvancedTextBlockTruncation||Xo.GlobalSettings.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=a.innerHTML),a}},t.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight&&this.truncateIfSupported(e)},t.prototype.undoOverflowTruncation=function(){if(this.restoreOriginalContent(),Xo.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines){var e=this._computedLineHeight*this.maxLines;this.truncateIfSupported(e)}},t.prototype.applyStylesTo=function(t){switch(e.prototype.applyStylesTo.call(this,t),this.getEffectiveHorizontalAlignment()){case qo.HorizontalAlignment.Center:t.style.textAlign="center";break;case qo.HorizontalAlignment.Right:t.style.textAlign="end";break;default:t.style.textAlign="start"}var n=this.hostConfig.lineHeights;if(n)switch(this.effectiveSize){case qo.TextSize.Small:this._computedLineHeight=n.small;break;case qo.TextSize.Medium:this._computedLineHeight=n.medium;break;case qo.TextSize.Large:this._computedLineHeight=n.large;break;case qo.TextSize.ExtraLarge:this._computedLineHeight=n.extraLarge;break;default:this._computedLineHeight=n.default}else this._computedLineHeight=1.33*this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType));t.style.lineHeight=this._computedLineHeight+"px"},t.prototype.getJsonTypeName=function(){return"TextBlock"},t.prototype.getEffectiveTextStyleDefinition=function(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):e.prototype.getEffectiveTextStyleDefinition.call(this)},t.prototype.updateLayout=function(t){void 0===t&&(t=!1),e.prototype.updateLayout.call(this,t),Xo.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines&&this.isDisplayed()&&(this.restoreOriginalContent(),this.truncateIfSupported(this._computedLineHeight*this.maxLines))},t.wrapProperty=new ei.BoolProperty(ei.Versions.v1_0,"wrap",!1),t.maxLinesProperty=new ei.NumProperty(ei.Versions.v1_0,"maxLines"),t.styleProperty=new ei.ValueSetProperty(ei.Versions.v1_5,"style",[{value:"default"},{value:"columnHeader"},{value:"heading"}]),t._ttMarkdownPolicy="undefined"==typeof window||null===(n=window.trustedTypes)||void 0===n?void 0:n.createPolicy("adaptivecards#markdownPassthroughPolicy",{createHTML:function(e){return e}}),t._ttRoundtripPolicy="undefined"==typeof window||null===(r=window.trustedTypes)||void 0===r?void 0:r.createPolicy("adaptivecards#restoreContentsPolicy",{createHTML:function(e){return e}}),Uo([(0,ei.property)(t.wrapProperty)],t.prototype,"wrap",void 0),Uo([(0,ei.property)(t.maxLinesProperty)],t.prototype,"maxLines",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),t}(li);Bn.TextBlock=ci;var ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.italic=!1,t.strikethrough=!1,t.highlight=!1,t.underline=!1,t}return $o(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.add(li.selectActionProperty)},t.prototype.internalRender=function(){var e=this;if(this.text){var t=this.preProcessPropertyValue(li.textProperty),n=this.hostConfig,r=Qo.formatText(this.lang,t);r||(r="");var o=document.createElement("span");if(o.classList.add(n.makeCssClassName("ac-textRun")),this.applyStylesTo(o),this.selectAction&&n.supportsInteractivity){var i=document.createElement("a");i.classList.add(n.makeCssClassName("ac-anchor"));var a=this.selectAction.getHref();i.href=a||"",i.target="_blank",i.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(i),i.innerText=r,o.appendChild(i)}else o.innerText=r;return o}},t.prototype.applyStylesTo=function(t){if(e.prototype.applyStylesTo.call(this,t),this.italic&&(t.style.fontStyle="italic"),this.strikethrough&&(t.style.textDecoration="line-through"),this.highlight){var n=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),r=Yo.stringToCssColor(this.effectiveIsSubtle?n.highlightColors.subtle:n.highlightColors.default);r&&(t.style.backgroundColor=r)}this.underline&&(t.style.textDecoration="underline")},t.prototype.getJsonTypeName=function(){return"TextRun"},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!0},enumerable:!1,configurable:!0}),t.italicProperty=new ei.BoolProperty(ei.Versions.v1_2,"italic",!1),t.strikethroughProperty=new ei.BoolProperty(ei.Versions.v1_2,"strikethrough",!1),t.highlightProperty=new ei.BoolProperty(ei.Versions.v1_2,"highlight",!1),t.underlineProperty=new ei.BoolProperty(ei.Versions.v1_3,"underline",!1),Uo([(0,ei.property)(t.italicProperty)],t.prototype,"italic",void 0),Uo([(0,ei.property)(t.strikethroughProperty)],t.prototype,"strikethrough",void 0),Uo([(0,ei.property)(t.highlightProperty)],t.prototype,"highlight",void 0),Uo([(0,ei.property)(t.underlineProperty)],t.prototype,"underline",void 0),t}(li);Bn.TextRun=ui;var di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._inlines=[],t}return $o(t,e),t.prototype.internalAddInline=function(e,t){if(void 0===t&&(t=!1),!e.isInline)throw new Error(ni.Strings.errors.elementCannotBeUsedAsInline());if(!(void 0===e.parent||t)&&e.parent!==this)throw new Error(ni.Strings.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)},t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),this._inlines=[],Array.isArray(t.inlines))for(var r=0,o=t.inlines;r<o.length;r++){var i=o[r],a=void 0;if("string"==typeof i){var s=new ui;s.text=i,a=s}else a=n.parseElement(this,i,[],!1);a&&this.internalAddInline(a,!0)}},t.prototype.internalToJSON=function(t,n){if(e.prototype.internalToJSON.call(this,t,n),this._inlines.length>0){for(var r=[],o=0,i=this._inlines;o<i.length;o++){var a=i[o];r.push(a.toJSON(n))}n.serializeValue(t,"inlines",r)}},t.prototype.internalRender=function(){if(this._inlines.length>0){var e=void 0;if(this.forElementId){var t=document.createElement("label");t.htmlFor=this.forElementId,e=t}else e=document.createElement("div");switch(e.className=this.hostConfig.makeCssClassName("ac-richTextBlock"),this.getEffectiveHorizontalAlignment()){case qo.HorizontalAlignment.Center:e.style.textAlign="center";break;case qo.HorizontalAlignment.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}for(var n=0,r=0,o=this._inlines;r<o.length;r++){var i=o[r].render();i&&(e.appendChild(i),n++)}if(n>0)return e}},t.prototype.asString=function(){for(var e="",t=0,n=this._inlines;t<n.length;t++){e+=n[t].asString()}return e},t.prototype.getJsonTypeName=function(){return"RichTextBlock"},t.prototype.getInlineCount=function(){return this._inlines.length},t.prototype.getInlineAt=function(e){if(e>=0&&e<this._inlines.length)return this._inlines[e];throw new Error(ni.Strings.errors.indexOutOfRange(e))},t.prototype.addInline=function(e){"string"==typeof e?this.internalAddInline(new ui(e)):this.internalAddInline(e)},t.prototype.removeInline=function(e){var t=this._inlines.indexOf(e);return t>=0&&(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0)},t}(ai);Bn.RichTextBlock=di;var pi=function(e){function t(t,n){var r=e.call(this)||this;return r.name=t,r.value=n,r}return $o(t,e),t.prototype.getSchemaKey=function(){return"Fact"},t.titleProperty=new ei.StringProperty(ei.Versions.v1_0,"title"),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"name",void 0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"value",void 0),t}(ei.SerializableObject);Bn.Fact=pi;var hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=void 0,t=this.hostConfig;if(this.facts.length>0){(e=document.createElement("table")).style.borderWidth="0px",e.style.borderSpacing="0px",e.style.borderStyle="none",e.style.borderCollapse="collapse",e.style.display="block",e.style.overflow="hidden",e.classList.add(t.makeCssClassName("ac-factset")),e.setAttribute("role","presentation");for(var n=0;n<this.facts.length;n++){var r=document.createElement("tr");n>0&&(r.style.marginTop=t.factSet.spacing+"px");var o=document.createElement("td");o.style.padding="0",o.classList.add(t.makeCssClassName("ac-fact-title")),t.factSet.title.maxWidth&&(o.style.maxWidth=t.factSet.title.maxWidth+"px"),o.style.verticalAlign="top";var i=new ci;i.setParent(this),i.text=!this.facts[n].name&&this.isDesignMode()?"Title":this.facts[n].name,i.size=t.factSet.title.size,i.color=t.factSet.title.color,i.isSubtle=t.factSet.title.isSubtle,i.weight=t.factSet.title.weight,i.wrap=t.factSet.title.wrap,i.spacing=qo.Spacing.None,Yo.appendChild(o,i.render()),Yo.appendChild(r,o),(o=document.createElement("td")).style.width="10px",Yo.appendChild(r,o),(o=document.createElement("td")).style.padding="0",o.style.verticalAlign="top",o.classList.add(t.makeCssClassName("ac-fact-value")),(i=new ci).setParent(this),i.text=this.facts[n].value,i.size=t.factSet.value.size,i.color=t.factSet.value.color,i.isSubtle=t.factSet.value.isSubtle,i.weight=t.factSet.value.weight,i.wrap=t.factSet.value.wrap,i.spacing=qo.Spacing.None,Yo.appendChild(o,i.render()),Yo.appendChild(r,o),Yo.appendChild(e,r)}}return e},t.prototype.getJsonTypeName=function(){return"FactSet"},t.factsProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_0,"facts",pi),Uo([(0,ei.property)(t.factsProperty)],t.prototype,"facts",void 0),t}(ai);Bn.FactSet=hi;var mi=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.targetVersion=t,i.name=n,i.internalName=r,i.fallbackProperty=o,i}return $o(t,e),t.prototype.getInternalName=function(){return this.internalName},t.prototype.parse=function(e,t,n){var r=void 0,o=t[this.name];if(void 0===o)return this.defaultValue;var i=!1;if("string"==typeof o){try{var a=Xo.SizeAndUnit.parse(o,!0);a.unit===qo.SizeUnit.Pixel&&(r=a.physicalSize,i=!0)}catch(s){}!i&&this.fallbackProperty&&(i=this.fallbackProperty.isValidValue(o,n))}return i||n.logParseEvent(e,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidPropertyValue(o,this.name)),r},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,"number"!=typeof n||isNaN(n)?void 0:n+"px")},t}(ei.PropertyDefinition),fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.size=qo.Size.Auto,t.style=qo.ImageStyle.Default,t}return $o(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(ai.heightProperty)},t.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+"px"),this.pixelHeight&&(e.style.height=this.pixelHeight+"px");else if(this.maxHeight){switch(this.size){case qo.Size.Small:e.style.height=this.hostConfig.imageSizes.small+"px";break;case qo.Size.Large:e.style.height=this.hostConfig.imageSizes.large+"px";break;default:e.style.height=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight=this.maxHeight+"px"}else{switch(this.size){case qo.Size.Stretch:e.style.width="100%";break;case qo.Size.Auto:e.style.maxWidth="100%";break;case qo.Size.Small:e.style.width=this.hostConfig.imageSizes.small+"px";break;case qo.Size.Large:e.style.width=this.hostConfig.imageSizes.large+"px";break;case qo.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight="100%"}},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=this,n=void 0;if(this.url){(n=document.createElement("div")).style.display="flex",n.style.alignItems="flex-start";var r=this.hostConfig;switch(this.getEffectiveHorizontalAlignment()){case qo.HorizontalAlignment.Center:n.style.justifyContent="center";break;case qo.HorizontalAlignment.Right:n.style.justifyContent="flex-end";break;default:n.style.justifyContent="flex-start"}var o=document.createElement("img");this.renderedImageElement=o,o.onload=function(t){ya(e)},o.onerror=function(t){if(e.renderedElement){var n=e.getRootElement();if(oi(e.renderedElement),n&&n.designMode){var r=document.createElement("div");r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.backgroundColor="#EEEEEE",r.style.color="black",r.innerText=":-(",r.style.padding="10px",e.applySize(r),e.renderedElement.appendChild(r)}}ya(e)},o.style.minWidth="0",o.classList.add(r.makeCssClassName("ac-image")),this.selectAction&&r.supportsInteractivity&&(o.onkeypress=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&("Enter"===t.code||"Space"===t.code)&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},o.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(o),this.selectAction.isEffectivelyEnabled()&&o.classList.add(r.makeCssClassName("ac-selectable"))),this.applySize(o),this.style===qo.ImageStyle.Person&&(o.style.borderRadius="50%",o.style.backgroundPosition="50% 50%",o.style.backgroundRepeat="no-repeat");var i=Yo.stringToCssColor(this.backgroundColor);i&&(o.style.backgroundColor=i),this.setImageSource(o);var a=this.preProcessPropertyValue(t.altTextProperty);a&&(o.alt=a),n.appendChild(o)}return n},t.prototype.getJsonTypeName=function(){return"Image"},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.selectAction&&(n=this.selectAction.getActionById(t)),n},t.prototype.getResourceInformation=function(){return this.url?[{url:this.url,mimeType:"image"}]:[]},t.prototype.setImageSource=function(e){var n=new gi(this.forceLoad,this.url);n.configureImage(this),e.src=this.preProcessPropertyValue(t.urlProperty),n.resetImage(this)},t.urlProperty=new ei.StringProperty(ei.Versions.v1_0,"url"),t.altTextProperty=new ei.StringProperty(ei.Versions.v1_0,"altText"),t.backgroundColorProperty=new ei.StringProperty(ei.Versions.v1_1,"backgroundColor"),t.styleProperty=new ei.EnumProperty(ei.Versions.v1_0,"style",qo.ImageStyle,qo.ImageStyle.Default),t.sizeProperty=new ei.EnumProperty(ei.Versions.v1_0,"size",qo.Size,qo.Size.Auto),t.pixelWidthProperty=new mi(ei.Versions.v1_1,"width","pixelWidth"),t.pixelHeightProperty=new mi(ei.Versions.v1_1,"height","pixelHeight",ai.heightProperty),t.selectActionProperty=new si(ei.Versions.v1_1,"selectAction",["Action.ShowCard"]),t.shouldForceLoadProperty=new ei.BoolProperty(ei.Versions.v1_6,"forceLoad",!1),Uo([(0,ei.property)(t.urlProperty)],t.prototype,"url",void 0),Uo([(0,ei.property)(t.altTextProperty)],t.prototype,"altText",void 0),Uo([(0,ei.property)(t.backgroundColorProperty)],t.prototype,"backgroundColor",void 0),Uo([(0,ei.property)(t.sizeProperty)],t.prototype,"size",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),Uo([(0,ei.property)(t.pixelWidthProperty)],t.prototype,"pixelWidth",void 0),Uo([(0,ei.property)(t.pixelHeightProperty)],t.prototype,"pixelHeight",void 0),Uo([(0,ei.property)(t.selectActionProperty)],t.prototype,"selectAction",void 0),Uo([(0,ei.property)(t.shouldForceLoadProperty)],t.prototype,"forceLoad",void 0),t}(ai);Bn.Image=fi;var gi=function(){function e(e,t){this.doForceLoad=e,this.url=t,t&&t.length&&e&&(this.uniqueHash="?"+Date.now(),this.urlWithForceLoadOption=t+this.uniqueHash)}return e.prototype.configureImage=function(e){this.urlWithForceLoadOption&&this.urlWithForceLoadOption.length&&(e.url=this.urlWithForceLoadOption)},e.prototype.resetImage=function(e){e.url=this.url},e}(),yi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allowVerticalOverflow=!1,t}return $o(t,e),t.prototype.populateSchema=function(n){e.prototype.populateSchema.call(this,n),this.isSelectable||n.remove(t.selectActionProperty)},t.prototype.isElementAllowed=function(e){return this.hostConfig.supportsInteractivity||!e.isInteractive},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new Xo.SpacingDefinition;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0"}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.forbiddenChildElements=function(){return[]},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this);for(var t=0;t<this.getItemCount();t++)this.getItemAt(t).releaseDOMResources()},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0;n<this.getItemCount();n++){var r=this.getItemAt(n);!this.hostConfig.supportsInteractivity&&r.isInteractive&&t.addFailure(this,qo.ValidationEvent.InteractivityNotAllowed,ni.Strings.errors.interactivityNotAllowed()),this.isElementAllowed(r)||t.addFailure(this,qo.ValidationEvent.InteractivityNotAllowed,ni.Strings.errors.elementTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(t)}this._selectAction&&this._selectAction.internalValidateProperties(t)},t.prototype.render=function(){var t=this,n=e.prototype.render.call(this);if(n){var r=this.hostConfig;this.allowVerticalOverflow&&(n.style.overflowX="hidden",n.style.overflowY="auto"),n&&this.isSelectable&&this._selectAction&&r.supportsInteractivity&&(n.onclick=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},n.onkeypress=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&("Enter"===e.code||"Space"===e.code)&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},this._selectAction.setupElementForAccessibility(n),this._selectAction.isEffectivelyEnabled()&&n.classList.add(r.makeCssClassName("ac-selectable")))}return n},t.prototype.updateLayout=function(t){if(void 0===t&&(t=!0),e.prototype.updateLayout.call(this,t),t)for(var n=0;n<this.getItemCount();n++)this.getItemAt(n).updateLayout()},t.prototype.getAllInputs=function(e){void 0===e&&(e=!0);for(var t=[],n=0;n<this.getItemCount();n++)t.push.apply(t,this.getItemAt(n).getAllInputs(e));return t},t.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),n=0;n<this.getItemCount();n++)t.push.apply(t,this.getItemAt(n).getAllActions());return this._selectAction&&t.push(this._selectAction),t},t.prototype.getResourceInformation=function(){for(var e=[],t=0;t<this.getItemCount();t++)e.push.apply(e,this.getItemAt(t).getResourceInformation());return e},t.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);if(!n)for(var r=0;r<this.getItemCount()&&!(n=this.getItemAt(r).getElementById(t));r++);return n},t.prototype.findDOMNodeOwner=function(t){for(var n,r=void 0,o=0;o<this.getItemCount();o++)if(r=this.getItemAt(o).findDOMNodeOwner(t))return r;for(o=0;o<this.getActionCount();o++)if(r=null===(n=this.getActionAt(o))||void 0===n?void 0:n.findDOMNodeOwner(t))return r;return e.prototype.findDOMNodeOwner.call(this,t)},t.selectActionProperty=new si(ei.Versions.v1_1,"selectAction",["Action.ShowCard"]),Uo([(0,ei.property)(t.selectActionProperty)],t.prototype,"_selectAction",void 0),t}(ai);Bn.CardElementContainer=yi;var vi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._images=[],t.imageSize=qo.ImageSize.Medium,t.presentationStyle=qo.ImageSetPresentationStyle.Default,t.pixelOffset=0,t}return $o(t,e),t.prototype.internalRender=function(){var e=void 0;if(this._images.length>0){(e=document.createElement("div")).style.display="flex",e.style.flexWrap="wrap";for(var t=0,n=this._images;t<n.length;t++){var r=n[t];switch(this.imageSize){case qo.ImageSize.Small:r.size=qo.Size.Small;break;case qo.ImageSize.Large:r.size=qo.Size.Large;break;default:r.size=qo.Size.Medium}r.maxHeight=this.hostConfig.imageSet.maxImageHeight;var o=r.render();o&&(o.style.display="inline-flex",o.style.margin="0px",this.presentationStyle==qo.ImageSetPresentationStyle.Default&&(o.style.marginRight="10px"),Yo.appendChild(e,o))}this.presentationStyle==qo.ImageSetPresentationStyle.Stacked&&this.applyStackedPresentationStyle()}return e},t.prototype.applyStackedPresentationStyle=function(){if(this._images[0].renderedImageElement){var e=bi.parseNumericPixelDimension(this._images[0].renderedImageElement.style.height),t=this.getEffectiveBackgroundColor();if(e)new bi(this.pixelOffset,e,t).configureImagesArrayAsStackedLayout(this._images)}},t.prototype.getEffectiveBackgroundColor=function(){var e=this.getParentContainer(),t=null==e?void 0:e.getEffectiveStyle(),n=this.hostConfig.containerStyles.getStyleByName(t,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));return Yo.stringToCssColor(n.backgroundColor)},t.prototype.getItemCount=function(){return this._images.length},t.prototype.getItemAt=function(e){return this._images[e]},t.prototype.getFirstVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0},t.prototype.removeItem=function(e){if(e instanceof fi){var t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.getJsonTypeName=function(){return"ImageSet"},t.prototype.addImage=function(e){if(e.parent)throw new Error("This image already belongs to another ImageSet");this._images.push(e),e.setParent(this)},t.prototype.indexOf=function(e){return e instanceof fi?this._images.indexOf(e):-1},t.imagesProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_0,"images",fi,function(e,t){t.setParent(e)}),t.imageSizeProperty=new ei.EnumProperty(ei.Versions.v1_0,"imageSize",qo.ImageSize,qo.ImageSize.Medium),t.imagePresentationStyle=new ei.EnumProperty(ei.Versions.v1_6,"style",qo.ImageSetPresentationStyle,qo.ImageSetPresentationStyle.Default),t.pixelOffset=new ei.NumProperty(ei.Versions.v1_6,"offset",0,void 0),Uo([(0,ei.property)(t.imagesProperty)],t.prototype,"_images",void 0),Uo([(0,ei.property)(t.imageSizeProperty)],t.prototype,"imageSize",void 0),Uo([(0,ei.property)(t.imagePresentationStyle)],t.prototype,"presentationStyle",void 0),Uo([(0,ei.property)(t.pixelOffset)],t.prototype,"pixelOffset",void 0),t}(yi);Bn.ImageSet=vi;var bi=function(){function e(e,t,n){this.sign45=.7071,this.maxImageCounts=2,this.offset=0,this.normalizationConstant=0,this.border=5,this.dimension=0,this.dimension=t,this.normalizationConstant=2*(t*this.sign45-.5*t),this.offset=this.sign45*(Math.max(e,-t)-this.normalizationConstant),this.style=n||""}return e.prototype.moveImageRight=function(e){e.style.marginLeft=this.offset+"px"},e.prototype.moveImageUp=function(e){e.style.marginBottom=this.offset+this.dimension+"px"},e.prototype.moveImageDown=function(e){e.style.marginTop=this.offset+this.dimension+"px"},e.prototype.makeImageRound=function(e){e.style.borderRadius="50%",e.style.backgroundPosition="50% 50%",e.style.backgroundRepeat="no-repeat"},e.prototype.applyBorder=function(e){e.style.height=this.dimension+2*this.border+"px",e.style.border=this.border+"px solid "+this.style},e.prototype.configureImageForBottomLeft=function(e){this.moveImageDown(e),this.makeImageRound(e),this.applyBorder(e),e.style.zIndex="2"},e.prototype.configureImageForTopRight=function(e){this.moveImageUp(e),this.moveImageRight(e),this.makeImageRound(e),e.style.zIndex="1"},e.prototype.configureImagesArrayAsStackedLayout=function(e){1==e.length?e[0].renderedImageElement&&this.makeImageRound(e[0].renderedImageElement):e.length<=this.maxImageCounts&&e[0].renderedImageElement&&e[1].renderedImageElement&&(this.configureImageForBottomLeft(e[0].renderedImageElement),this.configureImageForTopRight(e[1].renderedImageElement))},e.parseNumericPixelDimension=function(e){if("px"==(null==e?void 0:e.substring(e.length-2)))return parseInt(e.substring(0,e.length-2))},e}(),xi=function(e){function t(t,n){var r=e.call(this)||this;return r.url=t,r.mimeType=n,r}return $o(t,e),t.prototype.isValid=function(){return!(!this.mimeType||!this.url)},t.mimeTypeProperty=new ei.StringProperty(ei.Versions.v1_1,"mimeType"),t.urlProperty=new ei.StringProperty(ei.Versions.v1_1,"url"),Uo([(0,ei.property)(t.mimeTypeProperty)],t.prototype,"mimeType",void 0),Uo([(0,ei.property)(t.urlProperty)],t.prototype,"url",void 0),t}(ei.SerializableObject);Bn.ContentSource=xi;var Ci=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.label=r,o}return $o(t,e),t.prototype.getSchemaKey=function(){return"CaptionSource"},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("track")).src=this.url,e.kind="captions",e.label=this.label),e},t.labelProperty=new ei.StringProperty(ei.Versions.v1_6,"label"),Uo([(0,ei.property)(t.labelProperty)],t.prototype,"label",void 0),t}(xi);Bn.CaptionSource=Ci;var wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"MediaSource"},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("source")).src=this.url,e.type=this.mimeType),e},t}(xi);Bn.MediaSource=wi;var Si=function(){function e(){}return e.prototype.play=function(){},Object.defineProperty(e.prototype,"posterUrl",{get:function(){return this._posterUrl},set:function(e){this._posterUrl=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedMediaType",{get:function(){},enumerable:!1,configurable:!0}),e}();Bn.MediaPlayer=Si;var ki=function(e){function t(t){var n=e.call(this)||this;return n.owner=t,n._selectedSources=[],n._captionSources=[],n.processSources(),n}return $o(t,e),t.prototype.processSources=function(){var e;this._selectedSources=[],this._captionSources=[],this._selectedMediaType=void 0;for(var n=0,r=this.owner.sources;n<r.length;n++){var o=r[n],i=o.mimeType?o.mimeType.split("/"):[];if(2===i.length){if(!this._selectedMediaType){var a=t.supportedMediaTypes.indexOf(i[0]);a>=0&&(this._selectedMediaType=t.supportedMediaTypes[a])}i[0]===this._selectedMediaType&&this._selectedSources.push(o)}}(e=this._captionSources).push.apply(e,this.owner.captionSources)},t.prototype.canPlay=function(){return this._selectedSources.length>0},t.prototype.fetchVideoDetails=function(){return Jo(this,void 0,void 0,function(){return Go(this,function(e){return[2]})})},t.prototype.render=function(){"video"===this._selectedMediaType?this._mediaElement=document.createElement("video"):this._mediaElement=document.createElement("audio"),this._mediaElement.setAttribute("aria-label",this.owner.altText?this.owner.altText:ni.Strings.defaults.mediaPlayerAriaLabel()),this._mediaElement.setAttribute("webkit-playsinline",""),this._mediaElement.setAttribute("playsinline",""),this._mediaElement.setAttribute("crossorigin",""),this._mediaElement.autoplay=!0,this._mediaElement.controls=!0,Yo.isMobileOS()&&(this._mediaElement.muted=!0),this._mediaElement.preload="none",this._mediaElement.style.width="100%";for(var e=0,t=this.owner.sources;e<t.length;e++){var n=t[e].render();Yo.appendChild(this._mediaElement,n)}for(var r=0,o=this.owner.captionSources;r<o.length;r++){var i=o[r];if("vtt"==i.mimeType){var a=i.render();Yo.appendChild(this._mediaElement,a)}}return this._mediaElement},t.prototype.play=function(){this._mediaElement&&this._mediaElement.play()},Object.defineProperty(t.prototype,"selectedMediaType",{get:function(){return this._selectedMediaType},enumerable:!1,configurable:!0}),t.supportedMediaTypes=["audio","video"],t}(Si);Bn.HTML5MediaPlayer=ki;var Pi=function(e){function t(t){return e.call(this)||this}return $o(t,e),t}(Si);Bn.CustomMediaPlayer=Pi;var Ei=function(e){function t(t,n){var r=e.call(this,t)||this;return r.iFrameTitle=n,t.length>=2&&(r._videoId=t[1]),r}return $o(t,e),t.prototype.canPlay=function(){return void 0!==this._videoId},t.prototype.render=function(){var e=document.createElement("div");e.style.position="relative",e.style.width="100%",e.style.height="0",e.style.paddingBottom="56.25%";var t=document.createElement("iframe");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.src=this.getEmbedVideoUrl(),t.frameBorder="0",this.iFrameTitle&&(t.title=this.iFrameTitle),t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",t.allowFullscreen=!0,e.appendChild(t),e},Object.defineProperty(t.prototype,"videoId",{get:function(){return this._videoId},enumerable:!1,configurable:!0}),t}(Pi);Bn.IFrameMediaMediaPlayer=Ei;var Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.fetchVideoDetails=function(){return Jo(this,void 0,void 0,function(){var e,t,n;return Go(this,function(r){switch(r.label){case 0:return e="https://vimeo.com/api/oembed.json?url=".concat(this.getEmbedVideoUrl()),[4,fetch(e)];case 1:return(t=r.sent()).ok?[4,t.json()]:[3,3];case 2:n=r.sent(),this.posterUrl=n.thumbnail_url,r.label=3;case 3:return[2]}})})},t.prototype.getEmbedVideoUrl=function(){return"https://player.vimeo.com/video/".concat(this.videoId,"?autoplay=1")},t}(Ei);Bn.VimeoPlayer=Ai;var Ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.fetchVideoDetails=function(){return Jo(this,void 0,void 0,function(){var e,t,n;return Go(this,function(r){switch(r.label){case 0:return e="https://api.dailymotion.com/video/".concat(this.videoId,"?fields=thumbnail_720_url"),[4,fetch(e)];case 1:return(t=r.sent()).ok?[4,t.json()]:[3,3];case 2:n=r.sent(),this.posterUrl=n.thumbnail_720_url,r.label=3;case 3:return[2]}})})},t.prototype.getEmbedVideoUrl=function(){return"https://www.dailymotion.com/embed/video/".concat(this.videoId,"?autoplay=1")},t}(Ei);Bn.DailymotionPlayer=Ii;var _i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.iFrameTitle=n,t.length>=3&&void 0!==t[2]&&(r._startTimeIndex=parseInt(t[2])),r}return $o(t,e),t.prototype.fetchVideoDetails=function(){return Jo(this,void 0,void 0,function(){return Go(this,function(e){return this.posterUrl=this.videoId?"https://img.youtube.com/vi/".concat(this.videoId,"/maxresdefault.jpg"):void 0,[2]})})},t.prototype.getEmbedVideoUrl=function(){var e="https://www.youtube.com/embed/".concat(this.videoId,"?autoplay=1");return void 0!==this._startTimeIndex&&(e+="&start=".concat(this._startTimeIndex)),e},t}(Ei);Bn.YouTubePlayer=_i;var Ti,ji,Mi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t.captionSources=[],t}return $o(t,e),t.prototype.createMediaPlayer=function(){for(var e=0,n=t.customMediaPlayers;e<n.length;e++)for(var r=n[e],o=0,i=this.sources;o<i.length;o++){var a=i[o];if(a.url)for(var s=0,l=r.urlPatterns;s<l.length;s++){var c=l[s].exec(a.url);if(null!==c)return r.createMediaPlayer(c)}}return new ki(this)},t.prototype.handlePlayButtonInvoke=function(e){if(this.hostConfig.media.allowInlinePlayback){if(e.preventDefault(),e.cancelBubble=!0,this.renderedElement){var n=this._mediaPlayer.render();oi(this.renderedElement),this.renderedElement.appendChild(n),this._mediaPlayer.play(),n.focus()}}else t.onPlay&&(e.preventDefault(),e.cancelBubble=!0,t.onPlay(this))},t.prototype.displayPoster=function(){return Jo(this,void 0,void 0,function(){var e,t,n,r,o,i,a=this;return Go(this,function(s){return this.renderedElement&&((e=document.createElement("div")).className=this.hostConfig.makeCssClassName("ac-media-poster"),e.setAttribute("role","contentinfo"),e.setAttribute("aria-label",this.altText?this.altText:ni.Strings.defaults.mediaPlayerAriaLabel()),e.style.position="relative",e.style.display="flex",(t=this.poster?this.poster:this._mediaPlayer.posterUrl)||(t=this.hostConfig.media.defaultPoster),t?((n=document.createElement("img")).style.width="100%",n.style.height="100%",n.setAttribute("role","presentation"),n.onerror=function(t){n.parentNode&&n.parentNode.removeChild(n),e.classList.add("empty"),e.style.minHeight="150px"},n.src=t,e.appendChild(n)):(e.classList.add("empty"),e.style.minHeight="150px"),this.hostConfig.supportsInteractivity&&this._mediaPlayer.canPlay()&&((r=document.createElement("div")).tabIndex=0,r.setAttribute("role","button"),r.setAttribute("aria-label",ni.Strings.defaults.mediaPlayerPlayMedia()),r.className=this.hostConfig.makeCssClassName("ac-media-playButton"),r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.onclick=function(e){a.handlePlayButtonInvoke(e)},r.onkeypress=function(e){"Enter"!==e.code&&"Space"!==e.code||a.handlePlayButtonInvoke(e)},(o=document.createElement("div")).className=this.hostConfig.makeCssClassName("ac-media-playButton-arrow"),o.style.width="12px",o.style.height="15px",o.style.borderTopWidth="7.5px",o.style.borderBottomWidth="7.5px",o.style.borderLeftWidth="12px",o.style.borderRightWidth="0",o.style.borderStyle="solid",o.style.borderTopColor="transparent",o.style.borderRightColor="transparent",o.style.borderBottomColor="transparent",o.style.transform="translate(1.2px,0px)",r.appendChild(o),(i=document.createElement("div")).style.position="absolute",i.style.left="0",i.style.top="0",i.style.width="100%",i.style.height="100%",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.appendChild(r),e.appendChild(i)),oi(this.renderedElement),this.renderedElement.appendChild(e)),[2]})})},t.prototype.internalRender=function(){var e=document.createElement("div");return e.className=this.hostConfig.makeCssClassName("ac-media"),e},t.prototype.render=function(){var t=this,n=e.prototype.render.call(this);return n&&(this._mediaPlayer=this.createMediaPlayer(),this._mediaPlayer.fetchVideoDetails().then(function(){return t.displayPoster()})),n},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.displayPoster()},t.prototype.getJsonTypeName=function(){return"Media"},t.prototype.getResourceInformation=function(){var e=[];if(this._mediaPlayer){var t=this.poster?this.poster:this.hostConfig.media.defaultPoster;t&&e.push({url:t,mimeType:"image"})}for(var n=0,r=this.sources;n<r.length;n++){var o=r[n];o.isValid()&&e.push({url:o.url,mimeType:o.mimeType})}for(var i=0,a=this.captionSources;i<a.length;i++){var s=a[i];s.isValid()&&e.push({url:s.url,mimeType:s.mimeType})}return e},Object.defineProperty(t.prototype,"selectedMediaType",{get:function(){return this._mediaPlayer.selectedMediaType},enumerable:!1,configurable:!0}),t.customMediaPlayers=[{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?youtube.com\/watch\?(?=.*v=([\w\d-_]+))(?=(?:.*t=(\d+))?).*/gi,/^(?:https?:\/\/)?youtu.be\/([\w\d-_]+)(?:\?t=(\d+))?/gi],createMediaPlayer:function(e){return new _i(e,ni.Strings.defaults.youTubeVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?vimeo.com\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new Ai(e,ni.Strings.defaults.vimeoVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?dailymotion.com\/video\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new Ii(e,ni.Strings.defaults.dailymotionVideoPlayer())}}],t.sourcesProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_1,"sources",wi),t.captionSourcesProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_6,"captionSources",Ci),t.posterProperty=new ei.StringProperty(ei.Versions.v1_1,"poster"),t.altTextProperty=new ei.StringProperty(ei.Versions.v1_1,"altText"),Uo([(0,ei.property)(t.sourcesProperty)],t.prototype,"sources",void 0),Uo([(0,ei.property)(t.captionSourcesProperty)],t.prototype,"captionSources",void 0),Uo([(0,ei.property)(t.posterProperty)],t.prototype,"poster",void 0),Uo([(0,ei.property)(t.altTextProperty)],t.prototype,"altText",void 0),t}(ai);Bn.Media=Mi,(ji=Ti||(Ti={}))[ji.InitialRender=0]="InitialRender",ji[ji.MouseEnterOnCard=1]="MouseEnterOnCard",ji[ji.MouseLeaveOnCard=2]="MouseLeaveOnCard",ji[ji.FocusLeave=3]="FocusLeave";var Ni=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputStyle=qo.InputStyle.Default,t}return $o(t,e),t.prototype.getAllLabelIds=function(){var e=[];return this.labelledBy&&e.push(this.labelledBy),this._renderedLabelElement&&e.push(this._renderedLabelElement.id),this._renderedErrorMessageElement&&e.push(this._renderedErrorMessageElement.id),e},t.prototype.updateInputControlAriaLabelledBy=function(){if(this._renderedInputControlElement){var e=this.getAllLabelIds();e.length>0?this._renderedInputControlElement.setAttribute("aria-labelledby",e.join(" ")):this._renderedInputControlElement.removeAttribute("aria-labelledby")}},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputControlElement",{get:function(){return this._renderedInputControlElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputControlContainerElement",{get:function(){return this._inputControlContainerElement},enumerable:!1,configurable:!0}),t.prototype.overrideInternalRender=function(){var e=this,t=this.hostConfig;this._outerContainerElement=document.createElement("div"),this._outerContainerElement.style.display="flex",this.labelPosition===qo.InputLabelPosition.Inline?this._outerContainerElement.style.flexDirection="row":this._outerContainerElement.style.flexDirection="column";var n=Yo.generateUniqueId();if(this.label){var r=new di;r.setParent(this),r.forElementId=n;var o=new ui(this.label);if(r.addInline(o),this.isRequired){o.init(t.inputs.label.requiredInputs);var i=new ui(t.inputs.label.requiredInputs.suffix);i.color=t.inputs.label.requiredInputs.suffixColor,i.ariaHidden=!0,r.addInline(i)}else o.init(t.inputs.label.optionalInputs);this._renderedLabelElement=r.render(),this._renderedLabelElement&&(this._renderedLabelElement.id=Yo.generateUniqueId(),this.labelPosition===qo.InputLabelPosition.Inline?this._renderedLabelElement.style.alignSelf="center":this._renderedLabelElement.style.marginBottom=t.getEffectiveSpacing(t.inputs.label.inputSpacing)+"px",this._outerContainerElement.appendChild(this._renderedLabelElement))}if(this._inputControlContainerElement=document.createElement("div"),this._inputControlContainerElement.className=t.makeCssClassName("ac-input-container"),this._inputControlContainerElement.style.display="flex","stretch"===this.height&&(this._inputControlContainerElement.style.alignItems="stretch",this._inputControlContainerElement.style.flex="1 1 auto"),this._renderedInputControlElement=this.internalRender(),this._renderedInputControlElement){if(this._renderedInputControlElement.id=n,this._renderedInputControlElement.style.minWidth="0px",this.isNullable&&this.isRequired&&(this._renderedInputControlElement.setAttribute("aria-required","true"),this._renderedInputControlElement.classList.add(t.makeCssClassName("ac-input-required"))),this._inputControlContainerElement.appendChild(this._renderedInputControlElement),this._outerContainerElement.appendChild(this._inputControlContainerElement),this._renderedLabelElement&&this.labelPosition===qo.InputLabelPosition.Inline)if(this.labelWidth){if(this.labelWidth.unit==qo.SizeUnit.Weight){var a=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=a.toString()+"%",this._inputControlContainerElement.style.width=(100-a).toString()+"%"}else if(this.labelWidth.unit==qo.SizeUnit.Pixel){var s=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=s.toString()+"px"}}else{var l=t.inputs.label.width;this._renderedLabelElement.style.width=l.toString()+"%",this._inputControlContainerElement.style.width=100-l+"%"}return this.updateVisualState(Ti.InitialRender),this._renderedInputControlElement&&(this._renderedInputControlElement.onblur=function(t){e.updateVisualState(Ti.FocusLeave)}),this.updateInputControlAriaLabelledBy(),this._outerContainerElement}this.resetDirtyState()},t.prototype.valueChanged=function(){var e,t,n;this.getRootElement().updateActionsEnabledState(),this.isValid()&&this.resetValidationFailureCue(),this.onValueChanged&&this.onValueChanged(this),t=(e=this).getRootElement(),(n=t&&t.onInputValueChanged?t.onInputValueChanged:Ia.onInputValueChanged)&&n(e)},t.prototype.resetValidationFailureCue=function(){this.renderedInputControlElement&&(this.renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.updateInputControlAriaLabelledBy(),this._renderedErrorMessageElement&&(this._outerContainerElement.removeChild(this._renderedErrorMessageElement),this._renderedErrorMessageElement=void 0))},t.prototype.showValidationErrorMessage=function(){if(this.renderedElement&&this.errorMessage&&Xo.GlobalSettings.displayInputValidationErrors){var e=new ci;e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),this._renderedErrorMessageElement=e.render(),this._renderedErrorMessageElement&&(this._renderedErrorMessageElement.id=Yo.generateUniqueId(),this._outerContainerElement.appendChild(this._renderedErrorMessageElement),this.updateInputControlAriaLabelledBy())}},Object.defineProperty(t.prototype,"allowRevealOnHoverStyle",{get:function(){return this.hostConfig.inputs&&this.hostConfig.inputs.allowRevealOnHoverStyle},enumerable:!1,configurable:!0}),t.prototype.shouldHideInputAdornersForRevealOnHover=function(e,t){var n=e===document.activeElement,r=this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover"),o=e.classList.contains(r);return t===Ti.InitialRender||t===Ti.FocusLeave&&!o||t===Ti.MouseLeaveOnCard&&!n},t.prototype.updateVisualState=function(e){this.allowRevealOnHoverStyle&&this._renderedInputControlElement&&this.inputStyle===qo.InputStyle.RevealOnHover&&(e===Ti.InitialRender?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onrender")):e===Ti.MouseEnterOnCard?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover")):e===Ti.MouseLeaveOnCard&&this._renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover")))},t.prototype.focus=function(){this._renderedInputControlElement&&this._renderedInputControlElement.focus()},t.prototype.isValid=function(){return!0},t.prototype.isDirty=function(){return this.value!==this._oldValue},t.prototype.resetDirtyState=function(){this._oldValue=this.value},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.id||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.inputsMustHaveUniqueId()),this.isRequired&&(this.label||t.addFailure(this,qo.ValidationEvent.RequiredInputsShouldHaveLabel,"Required inputs should have a label"),this.errorMessage||t.addFailure(this,qo.ValidationEvent.RequiredInputsShouldHaveErrorMessage,"Required inputs should have an error message"))},t.prototype.validateValue=function(){this.resetValidationFailureCue();var e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return!e&&this.renderedInputControlElement&&(this.renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.showValidationErrorMessage()),e},t.prototype.getAllInputs=function(e){return[this]},t.prototype.render=function(){var t=e.prototype.render.call(this);return this.resetDirtyState(),t},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.labelProperty=new ei.StringProperty(ei.Versions.v1_3,"label",!0),t.isRequiredProperty=new ei.BoolProperty(ei.Versions.v1_3,"isRequired",!1),t.errorMessageProperty=new ei.StringProperty(ei.Versions.v1_3,"errorMessage",!0),t.inputStyleProperty=new ei.EnumProperty(ei.Versions.v1_6,"inputStyle",qo.InputStyle,qo.InputStyle.Default,[{value:qo.InputStyle.RevealOnHover},{value:qo.InputStyle.Default}]),t.labelWidthProperty=new ei.CustomProperty(ei.Versions.v1_6,"labelWidth",function(e,t,n,r){var o=t.defaultValue,i=n[t.name],a=!1;if("number"!=typeof i||isNaN(i))if("string"==typeof i)try{o=Xo.SizeAndUnit.parse(i)}catch(s){a=!0}else a=!0;else((o=new Xo.SizeAndUnit(i,qo.SizeUnit.Weight)).physicalSize<0||o.physicalSize>100)&&(a=!0);return a&&(r.logParseEvent(e,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidInputLabelWidth()),o=void 0),o},function(e,t,n,r,o){r instanceof Xo.SizeAndUnit&&(r.unit===qo.SizeUnit.Pixel?o.serializeValue(n,"labelWidth",r.physicalSize+"px"):o.serializeNumber(n,"labelWidth",r.physicalSize))},void 0),t.labelPositionProperty=new ei.EnumProperty(ei.Versions.v1_6,"labelPosition",qo.InputLabelPosition,qo.InputLabelPosition.Above,[{value:qo.InputLabelPosition.Inline},{value:qo.InputLabelPosition.Above}]),Uo([(0,ei.property)(t.labelProperty)],t.prototype,"label",void 0),Uo([(0,ei.property)(t.isRequiredProperty)],t.prototype,"isRequired",void 0),Uo([(0,ei.property)(t.errorMessageProperty)],t.prototype,"errorMessage",void 0),Uo([(0,ei.property)(t.inputStyleProperty)],t.prototype,"inputStyle",void 0),Uo([(0,ei.property)(t.labelWidthProperty)],t.prototype,"labelWidth",void 0),Uo([(0,ei.property)(t.labelPositionProperty)],t.prototype,"labelPosition",void 0),t}(ai);Bn.Input=Ni;var Di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiline=!1,t.style=qo.InputTextStyle.Text,t}return $o(t,e),t.prototype.setupInput=function(e){var t=this;e.style.flex="1 1 auto",e.tabIndex=this.isDesignMode()?-1:0,this.placeholder&&(e.placeholder=this.placeholder,e.setAttribute("aria-label",this.placeholder)),this.defaultValue&&(e.value=this.defaultValue),this.maxLength&&this.maxLength>0&&(e.maxLength=this.maxLength),e.oninput=function(){t.valueChanged()},e.onkeypress=function(e){e.ctrlKey&&"Enter"===e.code&&t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&t.inlineAction.execute()}},t.prototype.internalRender=function(){var e;return this.isMultiline&&this.style!==qo.InputTextStyle.Password?((e=document.createElement("textarea")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput","ac-multiline"),"stretch"===this.height&&(e.style.height="initial")):((e=document.createElement("input")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput"),e.type=qo.InputTextStyle[this.style].toLowerCase()),this.setupInput(e),e},t.prototype.overrideInternalRender=function(){var t=this,n=e.prototype.overrideInternalRender.call(this);if(this.inlineAction){var r=document.createElement("button");if(r.className=this.hostConfig.makeCssClassName(this.inlineAction.isEffectivelyEnabled()?"ac-inlineActionButton":"ac-inlineActionButton-disabled"),r.onclick=function(e){t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t.inlineAction.execute())},this.inlineAction.iconUrl){r.classList.add("iconOnly");var o=document.createElement("img");o.style.height="100%",o.setAttribute("role","presentation"),o.style.display="none",o.onload=function(){o.style.removeProperty("display")},o.onerror=function(){r.removeChild(o),r.classList.remove("iconOnly"),r.classList.add("textOnly"),r.textContent=t.inlineAction&&t.inlineAction.title?t.inlineAction.title:ni.Strings.defaults.inlineActionTitle()},o.src=this.inlineAction.iconUrl,r.appendChild(o),r.title=this.inlineAction.title?this.inlineAction.title:ni.Strings.defaults.inlineActionTitle()}else r.classList.add("textOnly"),r.textContent=this.inlineAction.title?this.inlineAction.title:ni.Strings.defaults.inlineActionTitle();this.inlineAction.setupElementForAccessibility(r,!0),r.style.marginLeft="8px",this.inputControlContainerElement.appendChild(r)}return n},t.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(this.inlineAction||this.isMultiline||e.prototype.updateVisualState.call(this,t))},t.prototype.getJsonTypeName=function(){return"Input.Text"},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.inlineAction&&t.push(this.inlineAction),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.inlineAction&&(n=this.inlineAction.getActionById(t)),n},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){return!this.value||(!this.regex||new RegExp(this.regex,"g").test(this.value))},Object.defineProperty(t.prototype,"value",{get:function(){return this.renderedInputControlElement?(this.isMultiline,this.renderedInputControlElement.value):void 0},enumerable:!1,configurable:!0}),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),t.maxLengthProperty=new ei.NumProperty(ei.Versions.v1_0,"maxLength"),t.isMultilineProperty=new ei.BoolProperty(ei.Versions.v1_0,"isMultiline",!1),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.styleProperty=new ei.EnumProperty(ei.Versions.v1_0,"style",qo.InputTextStyle,qo.InputTextStyle.Text,[{value:qo.InputTextStyle.Text},{value:qo.InputTextStyle.Tel},{value:qo.InputTextStyle.Url},{value:qo.InputTextStyle.Email},{value:qo.InputTextStyle.Password,targetVersion:ei.Versions.v1_5}]),t.inlineActionProperty=new si(ei.Versions.v1_0,"inlineAction",["Action.ShowCard"]),t.regexProperty=new ei.StringProperty(ei.Versions.v1_3,"regex",!0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.maxLengthProperty)],t.prototype,"maxLength",void 0),Uo([(0,ei.property)(t.isMultilineProperty)],t.prototype,"isMultiline",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),Uo([(0,ei.property)(t.inlineActionProperty)],t.prototype,"inlineAction",void 0),Uo([(0,ei.property)(t.regexProperty)],t.prototype,"regex",void 0),t}(Ni);Bn.TextInput=Di;var Vi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.valueOn="true",t.valueOff="false",t.wrap=!1,t}return $o(t,e),t.prototype.updateInputControlAriaLabelledBy=function(){if(this._checkboxInputElement){var e=this.getAllLabelIds().join(" ");this._checkboxInputLabelElement&&this._checkboxInputLabelElement.id&&(e+=" "+this._checkboxInputLabelElement.id),e?this._checkboxInputElement.setAttribute("aria-labelledby",e):this._checkboxInputElement.removeAttribute("aria-labelledby")}},t.prototype.internalRender=function(){var e=this,t=document.createElement("div");if(t.className=this.hostConfig.makeCssClassName("ac-input","ac-toggleInput"),t.style.width="100%",t.style.display="flex",t.style.alignItems="center",this._checkboxInputElement=document.createElement("input"),this._checkboxInputElement.id=Yo.generateUniqueId(),this._checkboxInputElement.type="checkbox",this._checkboxInputElement.style.display="inline-block",this._checkboxInputElement.style.verticalAlign="middle",this._checkboxInputElement.style.margin="0",this._checkboxInputElement.style.flex="0 0 auto",this.title&&this._checkboxInputElement.setAttribute("aria-label",this.title),this.isRequired&&this._checkboxInputElement.setAttribute("aria-required","true"),this._checkboxInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue===this.valueOn&&(this._checkboxInputElement.checked=!0),this._oldCheckboxValue=this._checkboxInputElement.checked,this._checkboxInputElement.onchange=function(){e.valueChanged()},Yo.appendChild(t,this._checkboxInputElement),this.title||this.isDesignMode()){var n=new ci;if(n.setParent(this),n.forElementId=this._checkboxInputElement.id,n.hostConfig=this.hostConfig,n.text=this.title?this.title:this.getJsonTypeName(),n.useMarkdown=Xo.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,n.wrap=this.wrap,this._checkboxInputLabelElement=n.render(),this._checkboxInputLabelElement){this._checkboxInputLabelElement.id=Yo.generateUniqueId(),this._checkboxInputLabelElement.style.display="inline-block",this._checkboxInputLabelElement.style.flex="1 1 auto",this._checkboxInputLabelElement.style.marginLeft="6px",this._checkboxInputLabelElement.style.verticalAlign="middle";var r=document.createElement("div");r.style.width="6px",Yo.appendChild(t,r),Yo.appendChild(t,this._checkboxInputLabelElement)}}return t},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateVisualState=function(e){},t.prototype.getJsonTypeName=function(){return"Input.Toggle"},t.prototype.focus=function(){this._checkboxInputElement&&this._checkboxInputElement.focus()},t.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},t.prototype.isDirty=function(){return!!this._checkboxInputElement&&this._checkboxInputElement.checked!==this._oldCheckboxValue},Object.defineProperty(t.prototype,"value",{get:function(){return this._checkboxInputElement?this._checkboxInputElement.checked?this.valueOn:this.valueOff:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),t.titleProperty=new ei.StringProperty(ei.Versions.v1_0,"title"),t.valueOnProperty=new ei.StringProperty(ei.Versions.v1_0,"valueOn",!0,void 0,"true",function(e){return"true"}),t.valueOffProperty=new ei.StringProperty(ei.Versions.v1_0,"valueOff",!0,void 0,"false",function(e){return"false"}),t.wrapProperty=new ei.BoolProperty(ei.Versions.v1_2,"wrap",!1),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"title",void 0),Uo([(0,ei.property)(t.valueOnProperty)],t.prototype,"valueOn",void 0),Uo([(0,ei.property)(t.valueOffProperty)],t.prototype,"valueOff",void 0),Uo([(0,ei.property)(t.wrapProperty)],t.prototype,"wrap",void 0),t}(Ni);Bn.ToggleInput=Vi;var Oi=function(e){function t(t,n){var r=e.call(this)||this;return r.title=t,r.value=n,r}return $o(t,e),t.prototype.getSchemaKey=function(){return"Choice"},t.titleProperty=new ei.StringProperty(ei.Versions.v1_0,"title"),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"title",void 0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"value",void 0),t}(ei.SerializableObject);Bn.Choice=Oi;var Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"choices.data"},t.typeProperty=new ei.StringProperty(ei.Versions.v1_6,"type",!0,new RegExp("^Data.Query$")),t.datasetProperty=new ei.StringProperty(ei.Versions.v1_6,"dataset"),t.countProperty=new ei.NumProperty(ei.Versions.v1_6,"count"),t.skipProperty=new ei.NumProperty(ei.Versions.v1_6,"skip"),Uo([(0,ei.property)(t.typeProperty)],t.prototype,"type",void 0),Uo([(0,ei.property)(t.datasetProperty)],t.prototype,"dataset",void 0),Uo([(0,ei.property)(t.countProperty)],t.prototype,"count",void 0),Uo([(0,ei.property)(t.skipProperty)],t.prototype,"skip",void 0),t}(ei.SerializableObject);Bn.ChoiceSetInputDataQuery=Bi;var Ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiSelect=!1,t.wrap=!1,t.choices=[],t}return $o(t,e),Object.defineProperty(t.prototype,"isCompact",{get:function(){return!this.style||"compact"===this.style},set:function(e){this.style=e?void 0:"expanded"},enumerable:!1,configurable:!0}),t.getUniqueCategoryName=function(){var e="__ac-category"+t._uniqueCategoryCounter;return t._uniqueCategoryCounter++,e},t.prototype.isDynamicTypeahead=function(){return!!this.choicesData&&!!this.choicesData.dataset&&"Data.Query"===this.choicesData.type},t.prototype.getFilterForDynamicSearch=function(){var e,t;return null===(t=null===(e=this._filteredChoiceSet)||void 0===e?void 0:e.textInput)||void 0===t?void 0:t.value},t.prototype.renderChoices=function(e){var t;null===(t=this._filteredChoiceSet)||void 0===t||t.processResponse(e)},t.prototype.showLoadingIndicator=function(){var e;null===(e=this._filteredChoiceSet)||void 0===e||e.showLoadingIndicator()},t.prototype.removeLoadingIndicator=function(){var e;null===(e=this._filteredChoiceSet)||void 0===e||e.removeLoadingIndicator()},t.prototype.showErrorIndicator=function(e){var t;null===(t=this._filteredChoiceSet)||void 0===t||t.showErrorIndicator(e)},t.prototype.createPlaceholderOptionWhenValueDoesNotExist=function(){if(!this.value){var e=document.createElement("option");return e.selected=!0,e.disabled=!0,e.hidden=!0,e.value="",this.placeholder&&(e.text=this.placeholder),e}},t.prototype.internalApplyAriaCurrent=function(){if(this._selectElement){var e=this._selectElement.options;if(e)for(var t=0,n=Array.from(e);t<n.length;t++){var r=n[t];r.selected?r.setAttribute("aria-current","true"):r.removeAttribute("aria-current")}}},t.prototype.renderCompoundInput=function(e,t,n){var r=this,o=document.createElement("div");o.className=this.hostConfig.makeCssClassName("ac-input",e),o.style.width="100%",o.tabIndex=this.isDesignMode()?-1:0,this._toggleInputs=[],this._labels=[];for(var i=0,a=this.choices;i<a.length;i++){var s=a[i],l=document.createElement("input");l.id=Yo.generateUniqueId(),l.type=t,l.style.margin="0",l.style.display="inline-block",l.style.verticalAlign="middle",l.style.flex="0 0 auto",l.name=this.id?this.id:this._uniqueCategoryName,this.isRequired&&l.setAttribute("aria-required","true"),l.tabIndex=this.isDesignMode()?-1:0,s.value&&(l.value=s.value),s.title&&l.setAttribute("aria-label",s.title),n&&s.value&&n.indexOf(s.value)>=0&&(l.checked=!0),l.onchange=function(){r.valueChanged()},this._toggleInputs.push(l);var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",Yo.appendChild(c,l);var u=new ci;u.setParent(this),u.forElementId=l.id,u.hostConfig=this.hostConfig,u.text=s.title?s.title:"Choice "+this._toggleInputs.length,u.useMarkdown=Xo.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,u.wrap=this.wrap;var d=u.render();if(this._labels.push(d),d){d.id=Yo.generateUniqueId(),d.style.display="inline-block",d.style.flex="1 1 auto",d.style.marginLeft="6px",d.style.verticalAlign="middle";var p=document.createElement("div");p.style.width="6px",Yo.appendChild(c,p),Yo.appendChild(c,d)}Yo.appendChild(o,c)}return o},t.prototype.updateInputControlAriaLabelledBy=function(){if((this.isMultiSelect||"expanded"===this.style)&&this._toggleInputs&&this._labels)for(var t=this.getAllLabelIds(),n=0;n<this._toggleInputs.length;n++){var r=t.join(" "),o=this._labels[n];o&&o.id&&(r+=" "+o.id),r?this._toggleInputs[n].setAttribute("aria-labelledby",r):this._toggleInputs[n].removeAttribute("aria-labelledby")}else e.prototype.updateInputControlAriaLabelledBy.call(this)},t.prototype.internalRender=function(){var e=this;if(this._uniqueCategoryName=t.getUniqueCategoryName(),this.isDynamicTypeahead()){var n=new zi(t._uniqueCategoryCounter,this.choices,this.hostConfig);if(n.render(),n.textInput){this._textInput=n.textInput,this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute("aria-label",this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var r=Yo.debounce(function(){n.processStaticChoices(),e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute("placeholder"),e._textInput.removeAttribute("aria-label")):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute("aria-label",e.placeholder)))},this.hostConfig.inputs.debounceTimeInMilliSeconds);this._textInput.onclick=r,this._textInput.oninput=r}return n.parent=this,this._filteredChoiceSet=n,n.renderedElement}if(this.isMultiSelect)return this.renderCompoundInput("ac-choiceSetInput-multiSelect","checkbox",this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):void 0);if("expanded"===this.style)return this.renderCompoundInput("ac-choiceSetInput-expanded","radio",this.defaultValue?[this.defaultValue]:void 0);if("filtered"===this.style){var o=document.createElement("div");o.style.width="100%",this._textInput=document.createElement("input"),this._textInput.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered"),this._textInput.type="text",this._textInput.style.width="100%",this._textInput.oninput=function(){e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute("placeholder"),e._textInput.removeAttribute("aria-label")):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute("aria-label",e.placeholder)))},this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute("aria-label",this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var i=document.createElement("datalist");i.id=Yo.generateUniqueId();for(var a=0,s=this.choices;a<s.length;a++){var l=s[a],c=document.createElement("option");l.title&&(c.value=l.title,c.setAttribute("aria-label",l.title)),c.tabIndex=this.isDesignMode()?-1:0,i.appendChild(c)}return this._textInput.setAttribute("list",i.id),o.append(this._textInput,i),o}this._selectElement=document.createElement("select"),this._selectElement.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-compact"),this._selectElement.style.width="100%",this._selectElement.tabIndex=this.isDesignMode()?-1:0;var u=this.createPlaceholderOptionWhenValueDoesNotExist();Yo.appendChild(this._selectElement,u);for(var d=0,p=this.choices;d<p.length;d++){l=p[d];(c=document.createElement("option")).value=l.value,l.title&&(c.text=l.title,c.setAttribute("aria-label",l.title)),c.tabIndex=this.isDesignMode()?-1:0,l.value===this.defaultValue&&(c.selected=!0),Yo.appendChild(this._selectElement,c)}return this._selectElement.onchange=function(){e.internalApplyAriaCurrent(),e.valueChanged()},this.internalApplyAriaCurrent(),this._selectElement},t.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(!this.isMultiSelect&&this.isCompact&&(e.prototype.updateVisualState.call(this,t),this._selectElement&&this.inputStyle===qo.InputStyle.RevealOnHover&&(this.shouldHideInputAdornersForRevealOnHover(this._selectElement,t)?(this._selectElement.style.appearance="none",this._selectElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus"))):(this._selectElement.style.appearance="auto",this._selectElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus"))))))},t.prototype.getJsonTypeName=function(){return"Input.ChoiceSet"},t.prototype.focus=function(){this._toggleInputs&&(this.isMultiSelect||"expanded"===this.style)?this._toggleInputs.length>0&&this._toggleInputs[0].focus():this._textInput?this._textInput.focus():e.prototype.focus.call(this)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),0===this.choices.length&&t.addFailure(this,qo.ValidationEvent.CollectionCantBeEmpty,ni.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(var n=0,r=this.choices;n<r.length;n++){var o=r[n];o.title&&o.value||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(this._textInput){if(""===this.value||this.value===this.placeholder)return!0;for(var t=0,n=this.choices;t<n.length;t++){var r=n[t];if(this.value===r.value)return!0}if(this.dynamicChoices)for(var o=0,i=this.dynamicChoices;o<i.length;o++){r=i[o];if(this.value===r)return!0}return!1}return e.prototype.isValid.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.isMultiSelect){if(!this._toggleInputs||0===this._toggleInputs.length)return;for(var e="",t=0,n=this._toggleInputs;t<n.length;t++){(l=n[t]).checked&&(""!==e&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=l.value)}return e||void 0}if(this._selectElement)return this._selectElement.selectedIndex>0?this._selectElement.value:void 0;if(this._textInput){for(var r=0,o=this.choices;r<o.length;r++){var i=o[r];if(i.title&&this._textInput.value===i.title)return i.value}return this._textInput.value}if(this._toggleInputs&&this._toggleInputs.length>0)for(var a=0,s=this._toggleInputs;a<s.length;a++){var l;if((l=s[a]).checked)return l.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dynamicChoices",{get:function(){var e;return null===(e=this._filteredChoiceSet)||void 0===e?void 0:e.dynamicChoices},enumerable:!1,configurable:!0}),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),t.choicesProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_0,"choices",Oi),t.choicesDataProperty=new ei.SerializableObjectProperty(ei.Versions.v1_6,"choices.data",Bi),t.styleProperty=new ei.ValueSetProperty(ei.Versions.v1_0,"style",[{value:"compact"},{value:"expanded"},{value:"filtered",targetVersion:ei.Versions.v1_5}],"compact"),t.isMultiSelectProperty=new ei.BoolProperty(ei.Versions.v1_0,"isMultiSelect",!1),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.wrapProperty=new ei.BoolProperty(ei.Versions.v1_2,"wrap",!1),t._uniqueCategoryCounter=0,Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),Uo([(0,ei.property)(t.isMultiSelectProperty)],t.prototype,"isMultiSelect",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),Uo([(0,ei.property)(t.wrapProperty)],t.prototype,"wrap",void 0),Uo([(0,ei.property)(t.choicesProperty)],t.prototype,"choices",void 0),Uo([(0,ei.property)(t.choicesDataProperty)],t.prototype,"choicesData",void 0),t}(Ni);Bn.ChoiceSetInput=Ri;var zi=function(){function e(e,t,n){this._choiceSetId=e,this._choices=t,this._dynamicChoices=[],this._visibleChoiceCount=0,this._hostConfig=n}return e.prototype.render=function(){var e=this,t=document.createElement("div");t.style.position="relative",t.style.width="100%",this._textInput=document.createElement("input"),this._textInput.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered"),this._textInput.type="text",this._textInput.style.width="100%",this._textInput.onkeydown=function(t){"ArrowDown"===t.key&&e.focusChoice(0)},this._dropdown=document.createElement("div"),this._dropdown.style.display="none",this._dropdown.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered-dropdown"),t.append(this._textInput,this._dropdown),document.onclick=function(t){if(e._dropdown){for(var n=e._dropdown.firstChild;n&&t.target!==n;)n=n.nextSibling;(n||t.target!==e._textInput)&&(e._dropdown.style.display="none")}},this._renderedElement=t},e.prototype.createChoice=function(e,t,n){var r=this,o=document.createElement("span");return o.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-choice"),o.id="ac-choiceSetInput-".concat(this._choiceSetId,"-choice-").concat(n),o.innerHTML=e.replace(t,"<b>".concat(t,"</b>")),o.tabIndex=-1,o.addEventListener("focusin",function(){o.classList.add("focused")}),o.addEventListener("focusout",function(){o.classList.remove("focused")}),o.onclick=function(){r._textInput&&(r._textInput.value=o.innerText),r._dropdown&&(r._dropdown.style.display="none")},o.onkeydown=function(e){"ArrowDown"===e.key?r.focusChoice(n+1):"ArrowUp"===e.key?r.focusChoice(n-1):"Enter"===e.key&&o.click()},o.onmouseover=function(){r.focusChoice(n)},o},e.prototype.focusChoice=function(e){var t=document.getElementById("ac-choiceSetInput-".concat(this._choiceSetId,"-choice-").concat(e));if(t)t.focus();else if(this._textInput){this._textInput.focus();var n=this._textInput.value.length;this._textInput.setSelectionRange(n,n)}},e.prototype.filterChoices=function(e){var t,n,r=null===(t=this._textInput)||void 0===t?void 0:t.value.toLowerCase();if(r)for(var o=0,i=e?this._dynamicChoices:this._choices;o<i.length;o++){var a=i[o];if(a.title){var s=a.title.toLowerCase().indexOf(r);if(-1!==s){var l=a.title.substring(s,s+r.length),c=this.createChoice(a.title,l,this._visibleChoiceCount++);null===(n=this._dropdown)||void 0===n||n.appendChild(c)}}}},e.prototype.getStatusIndicator=function(e){if(e){if(!this._errorIndicator){var t=document.createElement("div");t.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-statusIndicator","ac-choiceSetInput-errorIndicator"),this._errorIndicator=t}return this._errorIndicator.innerText=e,this._errorIndicator}if(!this._loadingIndicator){var n=document.createElement("div");n.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-statusIndicator"),this._loadingIndicator=n}return this._loadingIndicator.innerText=0===this._visibleChoiceCount?"Loading...":"Loading more...",this._loadingIndicator},e.prototype.resetDropdown=function(){this._dynamicChoices=[],this._dropdown&&(Yo.clearElementChildren(this._dropdown),this._visibleChoiceCount=0)},e.prototype.showDropdown=function(){var e;(null===(e=this._dropdown)||void 0===e?void 0:e.hasChildNodes)&&(this._dropdown.style.display="block")},e.prototype.processStaticChoices=function(){this.resetDropdown(),this.filterChoices(),this.showDropdown()},e.prototype.processResponse=function(e){this._dynamicChoices=e,this.filterChoices(!0),0===this._visibleChoiceCount&&this.showErrorIndicator("No results found.")},e.prototype.showLoadingIndicator=function(){var e,t=this.getStatusIndicator();null===(e=this._dropdown)||void 0===e||e.appendChild(t),this.showDropdown()},e.prototype.removeLoadingIndicator=function(){var e,t;this._loadingIndicator&&(null===(e=this._dropdown)||void 0===e?void 0:e.contains(this._loadingIndicator))&&(null===(t=this._dropdown)||void 0===t||t.removeChild(this._loadingIndicator))},e.prototype.showErrorIndicator=function(e){var t;this.removeLoadingIndicator();var n=this.getStatusIndicator(e);null===(t=this._dropdown)||void 0===t||t.appendChild(n)},Object.defineProperty(e.prototype,"dynamicChoices",{get:function(){var e;return null===(e=this._dynamicChoices)||void 0===e?void 0:e.map(function(e){return e.title})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:Zo.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){this._parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textInput",{get:function(){return this._textInput},enumerable:!1,configurable:!0}),e}();Bn.FilteredChoiceSet=zi;var Li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.internalRender=function(){var e=this;return this._numberInputElement=document.createElement("input"),this._numberInputElement.setAttribute("type","number"),void 0!==this.min&&this._numberInputElement.setAttribute("min",this.min.toString()),void 0!==this.max&&this._numberInputElement.setAttribute("max",this.max.toString()),this._numberInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-numberInput"),this._numberInputElement.style.width="100%",this._numberInputElement.tabIndex=this.isDesignMode()?-1:0,void 0!==this.defaultValue&&(this._numberInputElement.valueAsNumber=this.defaultValue),this.placeholder&&(this._numberInputElement.placeholder=this.placeholder,this._numberInputElement.setAttribute("aria-label",this.placeholder)),this._numberInputElement.oninput=function(){e.valueChanged()},this._numberInputElement},t.prototype.getJsonTypeName=function(){return"Input.Number"},t.prototype.isSet=function(){return void 0!==this.value&&!isNaN(this.value)},t.prototype.isValid=function(){if(void 0===this.value)return!this.isRequired;var e=!0;return void 0!==this.min&&(e=e&&this.value>=this.min),void 0!==this.max&&(e=e&&this.value<=this.max),e},Object.defineProperty(t.prototype,"value",{get:function(){return this._numberInputElement?this._numberInputElement.valueAsNumber:void 0},set:function(e){e&&this._numberInputElement&&(this._numberInputElement.value=e.toString())},enumerable:!1,configurable:!0}),t.valueProperty=new ei.NumProperty(ei.Versions.v1_0,"value"),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.minProperty=new ei.NumProperty(ei.Versions.v1_0,"min"),t.maxProperty=new ei.NumProperty(ei.Versions.v1_0,"max"),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.minProperty)],t.prototype,"min",void 0),Uo([(0,ei.property)(t.maxProperty)],t.prototype,"max",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(Ni);Bn.NumberInput=Li;var Hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.internalRender=function(){var e=this;return this._dateInputElement=document.createElement("input"),this._dateInputElement.setAttribute("type","date"),this.min&&this._dateInputElement.setAttribute("min",this.min),this.max&&this._dateInputElement.setAttribute("max",this.max),this.placeholder&&(this._dateInputElement.placeholder=this.placeholder,this._dateInputElement.setAttribute("aria-label",this.placeholder)),this._dateInputElement.tabIndex=this.isDesignMode()?-1:0,this._dateInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dateInput"),this._dateInputElement.style.width="100%",this._dateInputElement.oninput=function(){e.valueChanged()},this.defaultValue&&(this._dateInputElement.value=this.defaultValue),this._dateInputElement},t.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._dateInputElement&&this.inputStyle===qo.InputStyle.RevealOnHover)){var n=this.shouldHideInputAdornersForRevealOnHover(this._dateInputElement,t);n?this._dateInputElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")):this._dateInputElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")),Ca(this._dateInputElement,n)}},t.prototype.getJsonTypeName=function(){return"Input.Date"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=new Date(this.value),t=!0;if(this.min){var n=new Date(this.min);t=t&&e>=n}if(this.max){var r=new Date(this.max);t=t&&e<=r}return t},Object.defineProperty(t.prototype,"value",{get:function(){return this._dateInputElement?this._dateInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.minProperty=new ei.StringProperty(ei.Versions.v1_0,"min"),t.maxProperty=new ei.StringProperty(ei.Versions.v1_0,"max"),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.minProperty)],t.prototype,"min",void 0),Uo([(0,ei.property)(t.maxProperty)],t.prototype,"max",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(Ni);Bn.DateInput=Hi;var Fi=function(e){function t(t,n){var r=e.call(this,t,n,function(e,t,n,r){var o=n[t.name];if("string"==typeof o&&o&&/^[0-9]{2}:[0-9]{2}$/.test(o))return o},function(e,t,n,r,o){o.serializeValue(n,t.name,r)})||this;return r.targetVersion=t,r.name=n,r}return $o(t,e),t}(ei.CustomProperty);Bn.TimeProperty=Fi;var Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.convertTimeStringToDate=function(e){return new Date("1973-09-04T"+e+":00Z")},t.prototype.internalRender=function(){var e=this;return this._timeInputElement=document.createElement("input"),this._timeInputElement.setAttribute("type","time"),this.min&&this._timeInputElement.setAttribute("min",this.min),this.max&&this._timeInputElement.setAttribute("max",this.max),this._timeInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-timeInput"),this._timeInputElement.style.width="100%",this._timeInputElement.oninput=function(){e.valueChanged()},this.placeholder&&(this._timeInputElement.placeholder=this.placeholder,this._timeInputElement.setAttribute("aria-label",this.placeholder)),this._timeInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue&&(this._timeInputElement.value=this.defaultValue),this._timeInputElement},t.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._timeInputElement&&this.inputStyle===qo.InputStyle.RevealOnHover)){var n=this.shouldHideInputAdornersForRevealOnHover(this._timeInputElement,t);n?this._timeInputElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")):this._timeInputElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")),Ca(this._timeInputElement,n)}},t.prototype.getJsonTypeName=function(){return"Input.Time"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=t.convertTimeStringToDate(this.value),n=!0;if(this.min){var r=t.convertTimeStringToDate(this.min);n=n&&e>=r}if(this.max){var o=t.convertTimeStringToDate(this.max);n=n&&e<=o}return n},Object.defineProperty(t.prototype,"value",{get:function(){return this._timeInputElement?this._timeInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new Fi(ei.Versions.v1_0,"value"),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.minProperty=new Fi(ei.Versions.v1_0,"min"),t.maxProperty=new Fi(ei.Versions.v1_0,"max"),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.minProperty)],t.prototype,"min",void 0),Uo([(0,ei.property)(t.maxProperty)],t.prototype,"max",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(Ni);Bn.TimeInput=Wi;var $i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=qo.ActionStyle.Default,t.mode=qo.ActionMode.Primary,t._state=0,t._isFocusable=!0,t}return $o(t,e),t.prototype.renderButtonContent=function(){if(this.renderedElement){var e=this.hostConfig,t=document.createElement("div");if(t.style.overflow="hidden",t.style.textOverflow="ellipsis",e.actions.iconPlacement===qo.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(t.style.whiteSpace="nowrap"),this.title&&(t.innerText=this.title),this.iconUrl){var n=document.createElement("img");n.src=this.iconUrl,n.style.width=e.actions.iconSize+"px",n.style.height=e.actions.iconSize+"px",n.style.flex="0 0 auto",e.actions.iconPlacement===qo.ActionIconPlacement.AboveTitle?(this.renderedElement.classList.add("iconAbove"),this.renderedElement.style.flexDirection="column",this.title&&(n.style.marginBottom="6px")):(this.renderedElement.classList.add("iconLeft"),n.style.maxHeight="100%",this.title&&(n.style.marginRight="6px")),this.renderedElement.appendChild(n),this.renderedElement.appendChild(t)}else this.renderedElement.classList.add("noIcon"),this.renderedElement.appendChild(t)}},t.prototype.getParentContainer=function(){return this.parent instanceof ma?this.parent:this.parent?this.parent.getParentContainer():void 0},t.prototype.isDesignMode=function(){var e=this.getRootObject();return e instanceof ai&&e.isDesignMode()},t.prototype.updateCssClasses=function(){var e,t;if(this.parent&&this.renderedElement){var n=this.parent.hostConfig;this.renderedElement.className=n.makeCssClassName(this.isEffectivelyEnabled()?"ac-pushButton":"ac-pushButton-disabled");var r=this.getParentContainer();if(r){var o=r.getEffectiveStyle();o&&this.renderedElement.classList.add("style-"+o)}switch(this.renderedElement.tabIndex=!this.isDesignMode()&&this.isFocusable?0:-1,this._state){case 0:break;case 1:this.renderedElement.classList.add(n.makeCssClassName("expanded"));break;case 2:this.renderedElement.classList.add(n.makeCssClassName("subdued"))}this.style&&this.isEffectivelyEnabled()&&(this.style===qo.ActionStyle.Positive?(e=this.renderedElement.classList).add.apply(e,n.makeCssClassNames("primary","style-positive")):(t=this.renderedElement.classList).add.apply(t,n.makeCssClassNames("style-"+this.style.toLowerCase())))}},t.prototype.getDefaultSerializationContext=function(){return new Ta},t.prototype.internalGetReferencedInputs=function(){return{}},t.prototype.internalPrepareForExecution=function(e){},t.prototype.internalValidateInputs=function(e){var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=e[r[n]];o.validateValue()||t.push(o)}return t},t.prototype.shouldSerialize=function(e){return void 0!==e.actionRegistry.findByName(this.getJsonTypeName())},t.prototype.raiseExecuteActionEvent=function(){var e,t,n;this.onExecute&&this.onExecute(this),t=(e=this).parent?e.parent.getRootElement():void 0,n=t&&t.onExecuteAction?t.onExecuteAction:Ia.onExecuteAction,e.prepareForExecution()&&n&&n(e)},t.prototype.internalAfterExecute=function(){var e=this.getRootObject();e instanceof ai&&e.updateActionsEnabledState()},t.prototype.getHref=function(){return""},t.prototype.getAriaRole=function(){var e=this.getAriaRoleFromEnum();return null!=e?e:"button"},t.prototype.getAriaRoleFromEnum=function(){switch(this.role){case qo.ActionRole.Button:return"button";case qo.ActionRole.Link:return"link";case qo.ActionRole.Menu:return"menu";case qo.ActionRole.MenuItem:return"menuitem";case qo.ActionRole.Tab:return"tab";default:return}},t.prototype.setupElementForAccessibility=function(e,t){void 0===t&&(t=!1),e.tabIndex=this.isEffectivelyEnabled()&&!this.isDesignMode()?0:-1,e.setAttribute("role",this.getAriaRole()),e instanceof HTMLButtonElement&&(e.disabled=!this.isEffectivelyEnabled()),this.isEffectivelyEnabled()?(e.removeAttribute("aria-disabled"),e.classList.add(this.hostConfig.makeCssClassName("ac-selectable"))):e.setAttribute("aria-disabled","true"),this.title?(e.setAttribute("aria-label",this.title),e.title=this.title):(e.removeAttribute("aria-label"),e.removeAttribute("title")),this.tooltip&&(t&&!this.title&&e.setAttribute("aria-label",this.tooltip),e.title=this.tooltip)},t.prototype.parse=function(t,n){return e.prototype.parse.call(this,t,n||new Ta)},t.prototype.render=function(){var e=this,t=document.createElement("button");t.type="button",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.onclick=function(t){e.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.execute())},this._renderedElement=t,this.renderButtonContent(),this.updateCssClasses(),this.setupElementForAccessibility(t)},t.prototype.execute=function(){this._actionCollection&&this._actionCollection.actionExecuted(this),this.raiseExecuteActionEvent(),this.internalAfterExecute()},t.prototype.prepareForExecution=function(){var e=this.getReferencedInputs(),t=this.internalValidateInputs(e);return t.length>0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)},t.prototype.remove=function(){return!!this._actionCollection&&this._actionCollection.removeAction(this)},t.prototype.getAllInputs=function(e){return[]},t.prototype.getAllActions=function(){return[this]},t.prototype.getResourceInformation=function(){return this.iconUrl?[{url:this.iconUrl,mimeType:"image"}]:[]},t.prototype.getActionById=function(e){return this.id===e?this:void 0},t.prototype.getReferencedInputs=function(){return this.internalGetReferencedInputs()},t.prototype.validateInputs=function(){return this.internalValidateInputs(this.getReferencedInputs())},t.prototype.updateEnabledState=function(){},t.prototype.isEffectivelyEnabled=function(){return this.isEnabled},Object.defineProperty(t.prototype,"isPrimary",{get:function(){return this.style===qo.ActionStyle.Positive},set:function(e){e?this.style=qo.ActionStyle.Positive:this.style===qo.ActionStyle.Positive&&(this.style=qo.ActionStyle.Default)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this.parent?this.parent.hostConfig:Zo.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(this._state=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusable",{get:function(){return this._isFocusable},set:function(e){this._isFocusable!==e&&(this._isFocusable=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),t.titleProperty=new ei.StringProperty(ei.Versions.v1_0,"title"),t.iconUrlProperty=new ei.StringProperty(ei.Versions.v1_1,"iconUrl"),t.styleProperty=new ei.ValueSetProperty(ei.Versions.v1_2,"style",[{value:qo.ActionStyle.Default},{value:qo.ActionStyle.Positive},{value:qo.ActionStyle.Destructive}],qo.ActionStyle.Default),t.modeProperty=new ei.ValueSetProperty(ei.Versions.v1_5,"mode",[{value:qo.ActionMode.Primary},{value:qo.ActionMode.Secondary}],qo.ActionMode.Primary),t.tooltipProperty=new ei.StringProperty(ei.Versions.v1_5,"tooltip"),t.isEnabledProperty=new ei.BoolProperty(ei.Versions.v1_5,"isEnabled",!0),t.roleProperty=new ei.EnumProperty(ei.Versions.v1_6,"role",qo.ActionRole),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"title",void 0),Uo([(0,ei.property)(t.iconUrlProperty)],t.prototype,"iconUrl",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),Uo([(0,ei.property)(t.modeProperty)],t.prototype,"mode",void 0),Uo([(0,ei.property)(t.tooltipProperty)],t.prototype,"tooltip",void 0),Uo([(0,ei.property)(t.isEnabledProperty)],t.prototype,"isEnabled",void 0),Uo([(0,ei.property)(t.roleProperty)],t.prototype,"role",void 0),t}(Ko.CardObject);Bn.Action=$i;var Ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabledUnlessAssociatedInputsChange=!1,t._isPrepared=!1,t._areReferencedInputsDirty=!1,t}return $o(t,e),t.prototype.internalGetReferencedInputs=function(){var e={};if("none"!==this.associatedInputs){for(var t=this.parent,n=[];t;)n.push.apply(n,t.getAllInputs(!1)),t=t.parent;for(var r=0,o=n;r<o.length;r++){var i=o[r];i.id&&(e[i.id]=i)}}return e},t.prototype.internalPrepareForExecution=function(e){if(this._originalData?this._processedData=JSON.parse(JSON.stringify(this._originalData)):this._processedData={},this._processedData&&e)for(var t=0,n=Object.keys(e);t<n.length;t++){var r=e[n[t]];r.id&&r.isSet()&&(this._processedData[r.id]="string"==typeof r.value?r.value:r.value.toString())}this._isPrepared=!0},t.prototype.internalAfterExecute=function(){Xo.GlobalSettings.resetInputsDirtyStateAfterActionExecution&&this.resetReferencedInputsDirtyState()},t.prototype.resetReferencedInputsDirtyState=function(){var e=this.getReferencedInputs();if(this._areReferencedInputsDirty=!1,e)for(var t=0,n=Object.keys(e);t<n.length;t++){e[n[t]].resetDirtyState()}},t.prototype.updateEnabledState=function(){this._areReferencedInputsDirty=!1;var e=this.getReferencedInputs();if(e)for(var t=0,n=Object.keys(e);t<n.length;t++){if(e[n[t]].isDirty()){this._areReferencedInputsDirty=!0;break}}this.updateCssClasses(),this._renderedElement&&this.setupElementForAccessibility(this._renderedElement)},t.prototype.isEffectivelyEnabled=function(){var t=e.prototype.isEffectivelyEnabled.call(this);return this.disabledUnlessAssociatedInputsChange?t&&this._areReferencedInputsDirty:t},Object.defineProperty(t.prototype,"data",{get:function(){return this._isPrepared?this._processedData:this._originalData},set:function(e){this._originalData=e,this._isPrepared=!1},enumerable:!1,configurable:!0}),t.dataProperty=new ei.PropertyDefinition(ei.Versions.v1_0,"data"),t.associatedInputsProperty=new ei.CustomProperty(ei.Versions.v1_3,"associatedInputs",function(e,t,n,r){var o=n[t.name];if(void 0!==o&&"string"==typeof o)return"none"===o.toLowerCase()?"none":"auto"},function(e,t,n,r,o){o.serializeValue(n,t.name,r)}),t.disabledUnlessAssociatedInputsChangeProperty=new ei.BoolProperty(ei.Versions.v1_6,"disabledUnlessAssociatedInputsChange",!1),Uo([(0,ei.property)(t.dataProperty)],t.prototype,"_originalData",void 0),Uo([(0,ei.property)(t.associatedInputsProperty)],t.prototype,"associatedInputs",void 0),Uo([(0,ei.property)(t.disabledUnlessAssociatedInputsChangeProperty)],t.prototype,"disabledUnlessAssociatedInputsChange",void 0),t}($i);Bn.SubmitActionBase=Ui;var Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.JsonTypeName="Action.Submit",t}(Ui),Gi=Bn.SubmitAction=Ji,qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t}(Ui);Bn.UniversalAction=qi;var Xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.JsonTypeName="Action.Execute",t.verbProperty=new ei.StringProperty(ei.Versions.v1_4,"verb"),Uo([(0,ei.property)(t.verbProperty)],t.prototype,"verb",void 0),t}(qi),Yi=Bn.ExecuteAction=Xi,Zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.JsonTypeName="Data.Query",t.datasetProperty=new ei.StringProperty(ei.Versions.v1_6,"dataset"),t.filterProperty=new ei.StringProperty(ei.Versions.v1_6,"filter"),t.countProperty=new ei.NumProperty(ei.Versions.v1_6,"count"),t.skipProperty=new ei.NumProperty(ei.Versions.v1_6,"skip"),Uo([(0,ei.property)(t.datasetProperty)],t.prototype,"dataset",void 0),Uo([(0,ei.property)(t.filterProperty)],t.prototype,"filter",void 0),Uo([(0,ei.property)(t.countProperty)],t.prototype,"count",void 0),Uo([(0,ei.property)(t.skipProperty)],t.prototype,"skip",void 0),t}(qi);Bn.DataQuery=Zi;var Qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.getAriaRole=function(){var e=this.getAriaRoleFromEnum();return null!=e?e:"link"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("url"))},t.prototype.getHref=function(){return this.url},t.urlProperty=new ei.StringProperty(ei.Versions.v1_0,"url"),t.JsonTypeName="Action.OpenUrl",Uo([(0,ei.property)(t.urlProperty)],t.prototype,"url",void 0),t}($i),Ki=Bn.OpenUrlAction=Qi,ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.targetElements={},t}return $o(t,e),t.prototype.updateAriaControlsAttribute=function(){if(this.targetElements){var e=Object.keys(this.targetElements);this._renderedElement&&(e.length>0?this._renderedElement.setAttribute("aria-controls",e.join(" ")):this._renderedElement.removeAttribute("aria-controls"))}},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.targetElements||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("targetElements"))},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.render=function(){e.prototype.render.call(this),this.updateAriaControlsAttribute()},t.prototype.execute=function(){if(e.prototype.execute.call(this),this.parent)for(var t=0,n=Object.keys(this.targetElements);t<n.length;t++){var r=n[t],o=this.parent.getRootElement().getElementById(r);o&&("boolean"==typeof this.targetElements[r]?o.isVisible=this.targetElements[r]:o.isVisible=!o.isVisible)}},t.prototype.addTargetElement=function(e,t){void 0===t&&(t=void 0),this.targetElements[e]=t,this.updateAriaControlsAttribute()},t.prototype.removeTargetElement=function(e){delete this.targetElements[e],this.updateAriaControlsAttribute()},t.targetElementsProperty=new ei.CustomProperty(ei.Versions.v1_2,"targetElements",function(e,t,n,r){var o={};if(Array.isArray(n[t.name]))for(var i=0,a=n[t.name];i<a.length;i++){var s=a[i];if("string"==typeof s)o[s]=void 0;else if("object"==typeof s){var l=s.elementId;"string"==typeof l&&(o[l]=Yo.parseBool(s.isVisible))}}return o},function(e,t,n,r,o){for(var i=[],a=0,s=Object.keys(r);a<s.length;a++){var l=s[a];"boolean"==typeof r[l]?i.push({elementId:l,isVisible:r[l]}):i.push(l)}o.serializeArray(n,t.name,i)},{},function(e){return{}}),t.JsonTypeName="Action.ToggleVisibility",Uo([(0,ei.property)(t.targetElementsProperty)],t.prototype,"targetElements",void 0),t}($i),ta=Bn.ToggleVisibilityAction=ea,na=function(e){function t(t,n){var r=e.call(this,t,n,void 0,function(){return new Xo.StringWithSubstitutions})||this;return r.targetVersion=t,r.name=n,r}return $o(t,e),t.prototype.parse=function(e,t,n){var r=new Xo.StringWithSubstitutions;return r.set(Yo.parseString(t[this.name])),r},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n.getOriginal())},t}(ei.PropertyDefinition),ra=function(e){function t(t,n){void 0===t&&(t=""),void 0===n&&(n="");var r=e.call(this)||this;return r.name=t,r.value=n,r}return $o(t,e),t.prototype.getSchemaKey=function(){return"HttpHeader"},t.prototype.getReferencedInputs=function(e,t){this._value.getReferencedInputs(e,t)},t.prototype.prepareForExecution=function(e){this._value.substituteInputValues(e,Xo.ContentTypes.applicationXWwwFormUrlencoded)},Object.defineProperty(t.prototype,"value",{get:function(){return this._value.get()},set:function(e){this._value.set(e)},enumerable:!1,configurable:!0}),t.nameProperty=new ei.StringProperty(ei.Versions.v1_0,"name"),t.valueProperty=new na(ei.Versions.v1_0,"value"),Uo([(0,ei.property)(t.nameProperty)],t.prototype,"name",void 0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"_value",void 0),t}(ei.SerializableObject);Bn.HttpHeader=ra;var oa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._ignoreInputValidation=!1,t}return $o(t,e),t.prototype.internalGetReferencedInputs=function(){var e=this.parent?this.parent.getRootElement().getAllInputs():[],t={};this._url.getReferencedInputs(e,t);for(var n=0,r=this.headers;n<r.length;n++){r[n].getReferencedInputs(e,t)}return this._body.getReferencedInputs(e,t),t},t.prototype.internalPrepareForExecution=function(e){if(e){this._url.substituteInputValues(e,Xo.ContentTypes.applicationXWwwFormUrlencoded);for(var t=Xo.ContentTypes.applicationJson,n=0,r=this.headers;n<r.length;n++){var o=r[n];o.prepareForExecution(e),o.name&&"content-type"===o.name.toLowerCase()&&(t=o.value)}this._body.substituteInputValues(e,t)}},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.internalValidateProperties=function(t){if(e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("url")),this.headers.length>0)for(var n=0,r=this.headers;n<r.length;n++){r[n].name||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.actionHttpHeadersMustHaveNameAndValue())}},Object.defineProperty(t.prototype,"ignoreInputValidation",{get:function(){return this._ignoreInputValidation},set:function(e){this._ignoreInputValidation=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._url.get()},set:function(e){this._url.set(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._body.get()},set:function(e){this._body.set(e)},enumerable:!1,configurable:!0}),t.urlProperty=new na(ei.Versions.v1_0,"url"),t.bodyProperty=new na(ei.Versions.v1_0,"body"),t.methodProperty=new ei.StringProperty(ei.Versions.v1_0,"method"),t.headersProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_0,"headers",ra),t.ignoreInputValidationProperty=new ei.BoolProperty(ei.Versions.v1_3,"ignoreInputValidation",!1),t.JsonTypeName="Action.Http",Uo([(0,ei.property)(t.urlProperty)],t.prototype,"_url",void 0),Uo([(0,ei.property)(t.bodyProperty)],t.prototype,"_body",void 0),Uo([(0,ei.property)(t.methodProperty)],t.prototype,"method",void 0),Uo([(0,ei.property)(t.headersProperty)],t.prototype,"headers",void 0),Uo([(0,ei.property)(t.ignoreInputValidationProperty)],t.prototype,"_ignoreInputValidation",void 0),t}($i);Bn.HttpAction=oa;var ia=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.card=new _a,t}return $o(t,e),t.prototype.updateCssClasses=function(){if(e.prototype.updateCssClasses.call(this),this.renderedElement){var t=this.parent?this.parent.hostConfig:Zo.defaultHostConfig;this.renderedElement.classList.add(t.makeCssClassName("expandable")),this.renderedElement.setAttribute("aria-expanded",(1===this.state).toString())}},t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n);var r=t.card;r?this.card.parse(r,n):n.logParseEvent(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.showCardMustHaveCard())},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this.card&&n.serializeValue(t,"card",this.card.toJSON(n))},t.prototype.raiseExecuteActionEvent=function(){this.hostConfig.actions.showCard.actionMode===qo.ShowCardActionMode.Popup&&e.prototype.raiseExecuteActionEvent.call(this)},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.card.releaseDOMResources()},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.card.internalValidateProperties(t)},t.prototype.setParent=function(t){e.prototype.setParent.call(this,t),this.card.setParent(t)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),this.card.getAllInputs(e)},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this.card.getAllActions()),t},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this.card.getResourceInformation()),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return n||(n=this.card.getActionById(t)),n},t.JsonTypeName="Action.ShowCard",t}($i),aa=Bn.ShowCardAction=ia,sa=function(e){function t(t){var n=e.call(this)||this;return n._actions=t,n.title=ni.Strings.defaults.overflowButtonText(),n.tooltip=ni.Strings.defaults.overflowButtonTooltip(),n}return $o(t,e),t.prototype.getActions=function(){return this._actions},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this._actions),t},t.prototype.getJsonTypeName=function(){return ia.JsonTypeName},t.prototype.execute=function(){var e,t,n,r,o,i=this;if((t=this,n=this.renderedElement,r=t.parent?t.parent.getRootElement():void 0,!(void 0!==(o=r&&r.onDisplayOverflowActionMenu?r.onDisplayOverflowActionMenu:Ia.onDisplayOverflowActionMenu)&&o(t.getActions(),n)))&&this.renderedElement){var a=new ri.PopupMenu;a.hostConfig=this.hostConfig;for(var s=function(t){var n=new ri.MenuItem(t.toString(),null!==(e=l._actions[t].title)&&void 0!==e?e:"");n.isEnabled=l._actions[t].isEnabled,n.onClick=function(){var e=i._actions[t];a.closePopup(!1),e.isEnabled&&e.execute()},a.items.add(n)},l=this,c=0;c<this._actions.length;c++)s(c);a.onClose=function(){var e;null===(e=i.renderedElement)||void 0===e||e.setAttribute("aria-expanded","false")},this.renderedElement.setAttribute("aria-expanded","true"),a.popup(this.renderedElement)}},t.prototype.setupElementForAccessibility=function(t,n){void 0===n&&(n=!1),e.prototype.setupElementForAccessibility.call(this,t,n),t.setAttribute("aria-label",ni.Strings.defaults.overflowButtonTooltip()),t.setAttribute("aria-expanded","false")},t.JsonTypeName="Action.Overflow",t}($i),la=function(){function e(e){this._items=[],this._renderedActions=[],this._owner=e}return e.prototype.isActionAllowed=function(e){var t=this._owner.getForbiddenActionTypes();if(t)for(var n=0,r=t;n<r.length;n++){var o=r[n];if(e.constructor===o)return!1}return!0},e.prototype.refreshContainer=function(){if(oi(this._actionCardContainer),this._actionCard){this._actionCardContainer.style.marginTop=this.renderedActionCount>0?this._owner.hostConfig.actions.showCard.inlineTopMargin+"px":"0px";var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e);var t=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e);this._actionCard&&(this._actionCard.style.paddingLeft=t.left+"px",this._actionCard.style.paddingRight=t.right+"px",this._actionCard.style.marginLeft="-"+t.left+"px",this._actionCard.style.marginRight="-"+t.right+"px",0===t.bottom||this._owner.isDesignMode()||(this._actionCard.style.paddingBottom=t.bottom+"px",this._actionCard.style.marginBottom="-"+t.bottom+"px"),Yo.appendChild(this._actionCardContainer,this._actionCard))}else this._actionCardContainer.style.marginTop="0px"},e.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},e.prototype.showActionCard=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),e.card.suppressStyle=t;var r=e.card.renderedElement&&!this._owner.isDesignMode()?e.card.renderedElement:e.card.render();this._actionCard=r,this._expandedAction=e,this.refreshContainer(),n&&(this.layoutChanged(),ba(e,!0))},e.prototype.collapseExpandedAction=function(){for(var e=0,t=this._renderedActions;e<t.length;e++){t[e].state=0}var n=this._expandedAction;this._expandedAction=void 0,this._actionCard=void 0,this.refreshContainer(),n&&(this.layoutChanged(),ba(n,!1))},e.prototype.expandShowCardAction=function(e,t){for(var n=this,r=!1,o=0,i=this._renderedActions;o<i.length;o++){var a=i[o];this._owner.hostConfig.actions.actionsOrientation==qo.Orientation.Horizontal&&r&&(a.isFocusable=!1),a!==e?a.state=2:(a.state=1,r=!0,a.renderedElement&&(a.renderedElement.onblur=function(e){for(var t=0,r=n._renderedActions;t<r.length;t++){r[t].isFocusable=!0}}))}this.showActionCard(e,!(this._owner.isAtTheVeryLeft()&&this._owner.isAtTheVeryRight()),t)},e.prototype.releaseDOMResources=function(){for(var e=0,t=this._renderedActions;e<t.length;e++){t[e].releaseDOMResources()}},e.prototype.actionExecuted=function(e){e instanceof ia?e===this._expandedAction?this.collapseExpandedAction():this._owner.hostConfig.actions.showCard.actionMode===qo.ShowCardActionMode.Inline&&this.expandShowCardAction(e,!0):this.collapseExpandedAction()},e.prototype.parse=function(e,t){if(this.clear(),Array.isArray(e))for(var n=0,r=e;n<r.length;n++){var o=r[n],i=[];this._owner instanceof wa&&(i=this._owner.getForbiddenActionNames());var a=t.parseAction(this._owner,o,i,!this._owner.isDesignMode());a&&this.addAction(a)}},e.prototype.toJSON=function(e,t,n){n.serializeArray(e,t,this._items)},e.prototype.getActionAt=function(e){return this._items[e]},e.prototype.getActionCount=function(){return this._items.length},e.prototype.getActionById=function(e){for(var t=void 0,n=0,r=this._items;n<r.length;n++){if(t=r[n].getActionById(e))break}return t},e.prototype.validateProperties=function(e){this._owner.hostConfig.actions.maxActions&&this._items.length>this._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,qo.ValidationEvent.TooManyActions,ni.Strings.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,qo.ValidationEvent.InteractivityNotAllowed,ni.Strings.errors.interactivityNotAllowed());for(var t=0,n=this._items;t<n.length;t++){var r=n[t];this.isActionAllowed(r)||e.addFailure(this._owner,qo.ValidationEvent.ActionTypeNotAllowed,ni.Strings.errors.actionTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(e)}},e.prototype.render=function(e){var t=this._owner.hostConfig;if(t.supportsInteractivity){var n=document.createElement("div"),r=t.actions.maxActions?Math.min(t.actions.maxActions,this._items.length):this._items.length;if(this._actionCardContainer=document.createElement("div"),this._renderedActions=[],t.actions.preExpandSingleShowCardAction&&1===r&&this._items[0]instanceof ia&&this.isActionAllowed(this._items[0]))this.showActionCard(this._items[0],!0),this._renderedActions.push(this._items[0]);else{var o=document.createElement("div");if(o.className=t.makeCssClassName("ac-actionSet"),o.style.display="flex",e===qo.Orientation.Horizontal)if(o.style.flexDirection="row",this._owner.horizontalAlignment&&t.actions.actionAlignment!==qo.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case qo.HorizontalAlignment.Center:o.style.justifyContent="center";break;case qo.HorizontalAlignment.Right:o.style.justifyContent="flex-end";break;default:o.style.justifyContent="flex-start"}else switch(t.actions.actionAlignment){case qo.ActionAlignment.Center:o.style.justifyContent="center";break;case qo.ActionAlignment.Right:o.style.justifyContent="flex-end";break;default:o.style.justifyContent="flex-start"}else if(o.style.flexDirection="column",this._owner.horizontalAlignment&&t.actions.actionAlignment!==qo.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case qo.HorizontalAlignment.Center:o.style.alignItems="center";break;case qo.HorizontalAlignment.Right:o.style.alignItems="flex-end";break;default:o.style.alignItems="flex-start"}else switch(t.actions.actionAlignment){case qo.ActionAlignment.Center:o.style.alignItems="center";break;case qo.ActionAlignment.Right:o.style.alignItems="flex-end";break;case qo.ActionAlignment.Stretch:o.style.alignItems="stretch";break;default:o.style.alignItems="flex-start"}var i=this._items.filter(this.isActionAllowed.bind(this)),a=[],s=[];if(this._owner.isDesignMode())a=i;else{i.forEach(function(e){return e.mode===qo.ActionMode.Secondary?s.push(e):a.push(e)});var l=a.splice(t.actions.maxActions);Xo.GlobalSettings.allowMoreThanMaxActionsInOverflowMenu&&s.push.apply(s,l);var c=!0;if(s.length>0){this._overflowAction||(this._overflowAction=new sa(s),this._overflowAction.setParent(this._owner),this._overflowAction._actionCollection=this);var u=this._owner instanceof Ia&&!this._owner.parent;c=!function(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onRenderOverflowActions?n.onRenderOverflowActions:Ia.onRenderOverflowActions;return void 0!==r&&r(e.getActions(),t)}(this._overflowAction,u)}this._overflowAction&&c&&a.push(this._overflowAction)}for(var d=0;d<a.length;d++){var p=a[d];if(p.render(),p.renderedElement&&(t.actions.actionsOrientation===qo.Orientation.Horizontal&&t.actions.actionAlignment===qo.ActionAlignment.Stretch?p.renderedElement.style.flex="0 1 100%":p.renderedElement.style.flex="0 1 auto",o.appendChild(p.renderedElement),this._renderedActions.push(p),d<a.length-1&&t.actions.buttonSpacing>0)){var h=document.createElement("div");e===qo.Orientation.Horizontal?(h.style.flex="0 0 auto",h.style.width=t.actions.buttonSpacing+"px"):h.style.height=t.actions.buttonSpacing+"px",Yo.appendChild(o,h)}}var m=document.createElement("div");m.style.overflow="hidden",m.appendChild(o),Yo.appendChild(n,m)}Yo.appendChild(n,this._actionCardContainer);for(var f=0,g=this._renderedActions;f<g.length;f++){var y=g[f];if(1===y.state){this.expandShowCardAction(y,!1);break}}return this._renderedActions.length>0?n:void 0}},e.prototype.addAction=function(e){if(!e)throw new Error("The action parameter cannot be null.");if(e.parent&&e.parent!==this._owner||!(this._items.indexOf(e)<0))throw new Error(ni.Strings.errors.actionAlreadyParented());this._items.push(e),e.parent||e.setParent(this._owner),e._actionCollection=this},e.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction===e&&this.collapseExpandedAction();var t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0),e._actionCollection=void 0;for(var n=0;n<this._renderedActions.length;n++)if(this._renderedActions[n]===e){this._renderedActions.splice(n,1);break}return!0}return!1},e.prototype.clear=function(){this._items=[],this._renderedActions=[],this._expandedAction=void 0},e.prototype.getAllInputs=function(e){void 0===e&&(e=!0);var t=[];if(e)for(var n=0,r=this._items;n<r.length;n++){var o=r[n];t.push.apply(t,o.getAllInputs())}return t},e.prototype.getResourceInformation=function(){for(var e=[],t=0,n=this._items;t<n.length;t++){var r=n[t];e.push.apply(e,r.getResourceInformation())}return e},Object.defineProperty(e.prototype,"renderedActionCount",{get:function(){return this._renderedActions.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expandedAction",{get:function(){return this._expandedAction},enumerable:!1,configurable:!0}),e}(),ca=function(e){function t(){var t=e.call(this)||this;return t._actionCollection=new la(t),t}return $o(t,e),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._actionCollection.parse(t.actions,n)},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,"actions",n)},t.prototype.internalRender=function(){return this._actionCollection.render(void 0!==this.orientation?this.orientation:this.hostConfig.actions.actionsOrientation)},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},t.prototype.isBleedingAtBottom=function(){return 0===this._actionCollection.renderedActionCount?e.prototype.isBleedingAtBottom.call(this):1===this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction},t.prototype.getJsonTypeName=function(){return"ActionSet"},t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},t.prototype.getActionById=function(t){var n=this._actionCollection.getActionById(t);return n||e.prototype.getActionById.call(this,t)},t.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),n=0;n<this.getActionCount();n++){var r=this.getActionAt(n);r&&t.push(r)}return t},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection.validateProperties(t)},t.prototype.addAction=function(e){this._actionCollection.addAction(e)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),e?this._actionCollection.getAllInputs():[]},t.prototype.getResourceInformation=function(){return this._actionCollection.getResourceInformation()},t.prototype.findDOMNodeOwner=function(t){for(var n=void 0,r=0;r<this.getActionCount();r++){var o=this.getActionAt(r);if(o&&(n=o.findDOMNodeOwner(t)))return n}return e.prototype.findDOMNodeOwner.call(this,t)},t.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);return n||(n=this.getElementByIdFromAction(t)),n},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.orientationProperty=new ei.EnumProperty(ei.Versions.v1_1,"orientation",qo.Orientation),Uo([(0,ei.property)(t.orientationProperty)],t.prototype,"orientation",void 0),t}(ai);Bn.ActionSet=ca;var ua=function(e){function t(t,n,r,o){var i=e.call(this,t,n,[{value:qo.ContainerStyle.Default},{value:qo.ContainerStyle.Emphasis},{targetVersion:ei.Versions.v1_2,value:qo.ContainerStyle.Accent},{targetVersion:ei.Versions.v1_2,value:qo.ContainerStyle.Good},{targetVersion:ei.Versions.v1_2,value:qo.ContainerStyle.Attention},{targetVersion:ei.Versions.v1_2,value:qo.ContainerStyle.Warning}],r,o)||this;return i.targetVersion=t,i.name=n,i.defaultValue=r,i.onGetInitialValue=o,i}return $o(t,e),t}(ei.ValueSetProperty);Bn.ContainerStyleProperty=ua;var da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),Object.defineProperty(t.prototype,"style",{get:function(){if(this.allowCustomStyle){var e=this.getValue(t.styleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}},set:function(e){this.setValue(t.styleProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomStyle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasExplicitStyle",{get:function(){return void 0!==this.getValue(t.styleProperty)},enumerable:!1,configurable:!0}),t.prototype.applyBorder=function(){},t.prototype.applyBackground=function(){if(this.renderedElement){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(e.backgroundColor){var t=Yo.stringToCssColor(e.backgroundColor);t&&(this.renderedElement.style.backgroundColor=t)}}},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new Xo.SpacingDefinition;if(this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.isBleeding()){var n=new Xo.PaddingDefinition;this.getImmediateSurroundingPadding(n);var r=this.hostConfig.paddingDefinitionToSpacingDefinition(n);this.renderedElement.style.marginRight="-"+r.right+"px",this.renderedElement.style.marginLeft="-"+r.left+"px",this.isDesignMode()||(this.renderedElement.style.marginTop="-"+r.top+"px",this.renderedElement.style.marginBottom="-"+r.bottom+"px"),this.separatorElement&&this.separatorOrientation===qo.Orientation.Horizontal&&(this.separatorElement.style.marginLeft="-"+r.left+"px",this.separatorElement.style.marginRight="-"+r.right+"px")}else this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0",this.renderedElement.style.marginTop="0",this.renderedElement.style.marginBottom="0",this.separatorElement&&this.separatorOrientation===qo.Orientation.Horizontal&&(this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0")}},t.prototype.getHasBackground=function(e){void 0===e&&(e=!1);for(var n=this.parent;n;){var r=!1;if(r=!e&&(n instanceof ma&&n.backgroundImage.isValid()),n instanceof t&&this.hasExplicitStyle&&(n.getEffectiveStyle()!==this.getEffectiveStyle()||r))return!0;n=n.parent}return!1},t.prototype.getDefaultPadding=function(){return this.getHasBackground()||this.getHasBorder()?new Xo.PaddingDefinition(qo.Spacing.Padding,qo.Spacing.Padding,qo.Spacing.Padding,qo.Spacing.Padding):e.prototype.getDefaultPadding.call(this)},t.prototype.internalValidateProperties=function(n){e.prototype.internalValidateProperties.call(this,n);var r=this.getValue(t.styleProperty);void 0!==r&&(this.hostConfig.containerStyles.getStyleByName(r)||n.addFailure(this,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidPropertyValue(r,"style")))},t.prototype.render=function(){var t=e.prototype.render.call(this);return t&&this.getHasBackground()&&this.applyBackground(),this.applyBorder(),t},t.prototype.getEffectiveStyle=function(){var t=this.style;return t||e.prototype.getEffectiveStyle.call(this)},t.styleProperty=new ua(ei.Versions.v1_0,"style"),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",null),t}(yi);Bn.StylableCardElementContainer=da;var pa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._bleed=!1,t}return $o(t,e),t.prototype.adjustRenderedElementSize=function(t){e.prototype.adjustRenderedElementSize.call(this,t),this.minPixelHeight&&(t.style.minHeight=this.minPixelHeight+"px")},t.prototype.getHasExpandedAction=function(){return!1},t.prototype.getBleed=function(){return this._bleed},t.prototype.setBleed=function(e){this._bleed=e},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.isBleeding=function(){return(this.getHasBackground()||this.hostConfig.alwaysAllowBleed)&&this.getBleed()},t.bleedProperty=new ei.BoolProperty(ei.Versions.v1_2,"bleed",!1),t.minHeightProperty=new ei.PixelSizeProperty(ei.Versions.v1_2,"minHeight"),Uo([(0,ei.property)(t.bleedProperty)],t.prototype,"_bleed",void 0),Uo([(0,ei.property)(t.minHeightProperty)],t.prototype,"minPixelHeight",void 0),t}(da);Bn.ContainerBase=pa;var ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"BackgroundImage"},t.prototype.internalParse=function(t,n){if("string"!=typeof t)return e.prototype.internalParse.call(this,t,n);this.resetDefaultValues(),this.url=t},t.prototype.apply=function(e){if(this.url&&e.renderedElement){switch(e.renderedElement.style.backgroundImage="url('"+e.preProcessPropertyValue(t.urlProperty,this.url)+"')",this.fillMode){case qo.FillMode.Repeat:e.renderedElement.style.backgroundRepeat="repeat";break;case qo.FillMode.RepeatHorizontally:e.renderedElement.style.backgroundRepeat="repeat-x";break;case qo.FillMode.RepeatVertically:e.renderedElement.style.backgroundRepeat="repeat-y";break;case qo.FillMode.Cover:default:e.renderedElement.style.backgroundRepeat="no-repeat",e.renderedElement.style.backgroundSize="cover"}switch(this.horizontalAlignment){case qo.HorizontalAlignment.Left:break;case qo.HorizontalAlignment.Center:e.renderedElement.style.backgroundPositionX="center";break;case qo.HorizontalAlignment.Right:e.renderedElement.style.backgroundPositionX="right"}switch(this.verticalAlignment){case qo.VerticalAlignment.Top:break;case qo.VerticalAlignment.Center:e.renderedElement.style.backgroundPositionY="center";break;case qo.VerticalAlignment.Bottom:e.renderedElement.style.backgroundPositionY="bottom"}}},t.prototype.isValid=function(){return!!this.url},t.urlProperty=new ei.StringProperty(ei.Versions.v1_0,"url"),t.fillModeProperty=new ei.EnumProperty(ei.Versions.v1_2,"fillMode",qo.FillMode,qo.FillMode.Cover),t.horizontalAlignmentProperty=new ei.EnumProperty(ei.Versions.v1_2,"horizontalAlignment",qo.HorizontalAlignment,qo.HorizontalAlignment.Left),t.verticalAlignmentProperty=new ei.EnumProperty(ei.Versions.v1_2,"verticalAlignment",qo.VerticalAlignment,qo.VerticalAlignment.Top),Uo([(0,ei.property)(t.urlProperty)],t.prototype,"url",void 0),Uo([(0,ei.property)(t.fillModeProperty)],t.prototype,"fillMode",void 0),Uo([(0,ei.property)(t.horizontalAlignmentProperty)],t.prototype,"horizontalAlignment",void 0),Uo([(0,ei.property)(t.verticalAlignmentProperty)],t.prototype,"verticalAlignment",void 0),t}(ei.SerializableObject);Bn.BackgroundImage=ha;var ma=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._items=[],t._renderedItems=[],t}return $o(t,e),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getValue(t.backgroundImageProperty)},enumerable:!1,configurable:!0}),t.prototype.insertItemAt=function(e,t,n){if(e.parent&&!n)throw new Error(ni.Strings.errors.elementAlreadyParented());if(!e.isStandalone)throw new Error(ni.Strings.errors.elementTypeNotStandalone(e.getJsonTypeName()));t<0||t>=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this)},t.prototype.getItemsCollectionPropertyName=function(){return"items"},t.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.renderedElement&&this.backgroundImage.apply(this),e.prototype.applyBackground.call(this)},t.prototype.applyRTL=function(e){void 0!==this.rtl&&(e.dir=this.rtl?"rtl":"ltr")},t.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement("div");switch(this.applyRTL(t),t.classList.add(e.makeCssClassName("ac-container")),t.style.display="flex",t.style.flexDirection="column",Xo.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveVerticalContentAlignment()){case qo.VerticalAlignment.Center:t.style.justifyContent="center";break;case qo.VerticalAlignment.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}if(this._items.length>0)for(var n=0,r=this._items;n<r.length;n++){var o=r[n],i=this.isElementAllowed(o)?o.render():void 0;i&&(this._renderedItems.length>0&&o.separatorElement&&(o.separatorElement.style.flex="0 0 auto",Yo.appendChild(t,o.separatorElement)),Yo.appendChild(t,i),this._renderedItems.push(o))}else if(this.isDesignMode()){var a=this.createPlaceholderElement();a.style.width="100%",a.style.height="100%",t.appendChild(a)}return t},t.prototype.truncateOverflow=function(e){if(this.renderedElement){for(var t=this.renderedElement.offsetTop+e+1,n=function(e){var r=e.renderedElement;if(r)switch(Yo.getFitStatus(r,t)){case qo.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&n(e);break;case qo.ContainerFitStatus.Overflowing:var o=t-r.offsetTop;e.handleOverflow(o);break;case qo.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0)}},r=0,o=this._items;r<o.length;r++){var i=o[r];n(i)}return!0}return!1},t.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._items;e<t.length;e++){t[e].resetOverflow()}},t.prototype.getHasBackground=function(t){return void 0===t&&(t=!1),!t&&this.backgroundImage.isValid()||e.prototype.getHasBackground.call(this,t)},t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.clear(),this.setShouldFallback(!1);var r=t[this.getItemsCollectionPropertyName()];if(Array.isArray(r))for(var o=0,i=r;o<i.length;o++){var a=i[o],s=n.parseElement(this,a,this.forbiddenChildElements(),!this.isDesignMode());s&&this.insertItemAt(s,-1,!0)}},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n);var r=this.getItemsCollectionPropertyName();n.serializeArray(t,r,this._items)},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getEffectivePadding=function(){return Xo.GlobalSettings.removePaddingFromContainersWithBackgroundImage&&!this.getHasBackground(!0)?new Xo.PaddingDefinition:e.prototype.getEffectivePadding.call(this)},t.prototype.getEffectiveVerticalContentAlignment=function(){if(void 0!==this.verticalContentAlignment)return this.verticalContentAlignment;var e=this.getParentContainer();return e?e.getEffectiveVerticalContentAlignment():qo.VerticalAlignment.Top},t.prototype.getItemCount=function(){return this._items.length},t.prototype.getItemAt=function(e){return this._items[e]},t.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=0,t=this._renderedItems;e<t.length;e++){var n=t[e];if(n.isVisible)return n}},t.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]},t.prototype.getJsonTypeName=function(){return"Container"},t.prototype.isFirstElement=function(e){for(var t=this.isDesignMode(),n=0,r=this._items;n<r.length;n++){var o=r[n];if(o.isVisible||t)return o===e}return!1},t.prototype.isLastElement=function(e){for(var t=this.isDesignMode(),n=this._items.length-1;n>=0;n--)if(this._items[n].isVisible||t)return this._items[n]===e;return!1},t.prototype.isRtl=function(){if(void 0!==this.rtl)return this.rtl;var e=this.getParentContainer();return!!e&&e.isRtl()},t.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtTop()},t.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||!!e&&(e.isBleedingAtBottom()&&e.getEffectiveStyle()===this.getEffectiveStyle())},t.prototype.indexOf=function(e){return this._items.indexOf(e)},t.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},t.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},t.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},t.prototype.removeItem=function(e){var t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)},t.prototype.clear=function(){this._items=[],this._renderedItems=[]},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&t.push({url:this.backgroundImage.url,mimeType:"image"}),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);if(!n&&(this.selectAction&&(n=this.selectAction.getActionById(t)),!n))for(var r=0,o=this._items;r<o.length;r++){if(n=o[r].getActionById(t))break}return n},Object.defineProperty(t.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),t.backgroundImageProperty=new ei.SerializableObjectProperty(ei.Versions.v1_0,"backgroundImage",ha),t.verticalContentAlignmentProperty=new ei.EnumProperty(ei.Versions.v1_1,"verticalContentAlignment",qo.VerticalAlignment),t.rtlProperty=new ei.BoolProperty(ei.Versions.v1_0,"rtl"),Uo([(0,ei.property)(t.backgroundImageProperty)],t.prototype,"backgroundImage",null),Uo([(0,ei.property)(t.verticalContentAlignmentProperty)],t.prototype,"verticalContentAlignment",void 0),Uo([(0,ei.property)(t.rtlProperty)],t.prototype,"rtl",void 0),t}(pa);Bn.Container=ma;var fa=function(e){function t(t){void 0===t&&(t="stretch");var n=e.call(this)||this;return n.width="stretch",n._computedWeight=0,n.width=t,n}return $o(t,e),t.prototype.adjustRenderedElementSize=function(e){this.isDesignMode()?(e.style.minWidth="20px",e.style.minHeight=(this.minPixelHeight?Math.max(this.minPixelHeight,20):20)+"px"):(e.style.minWidth="0",this.minPixelHeight&&(e.style.minHeight=this.minPixelHeight+"px")),"auto"===this.width?e.style.flex="0 1 auto":"stretch"===this.width?e.style.flex="1 1 50px":this.width instanceof Xo.SizeAndUnit&&(this.width.unit===qo.SizeUnit.Pixel?(e.style.flex="0 0 auto",e.style.width=this.width.physicalSize+"px"):e.style.flex="1 1 "+(this._computedWeight>0?this._computedWeight:this.width.physicalSize)+"%")},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return qo.Orientation.Vertical},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"Column"},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!!(this.parent&&this.parent instanceof ga)&&(void 0!==this.separatorElement&&!this.parent.isLeftMostElement(this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.widthProperty=new ei.CustomProperty(ei.Versions.v1_0,"width",function(e,t,n,r){var o=t.defaultValue,i=n[t.name],a=!1;if("number"!=typeof i||isNaN(i))if("auto"===i||"stretch"===i)o=i;else if("string"==typeof i)try{(o=Xo.SizeAndUnit.parse(i)).unit===qo.SizeUnit.Pixel&&t.targetVersion.compareTo(r.targetVersion)>0&&(a=!0)}catch(s){a=!0}else a=!0;else o=new Xo.SizeAndUnit(i,qo.SizeUnit.Weight);return a&&(r.logParseEvent(e,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidColumnWidth(i)),o="auto"),o},function(e,t,n,r,o){r instanceof Xo.SizeAndUnit?r.unit===qo.SizeUnit.Pixel?o.serializeValue(n,"width",r.physicalSize+"px"):o.serializeNumber(n,"width",r.physicalSize):o.serializeValue(n,"width",r)},"stretch"),Uo([(0,ei.property)(t.widthProperty)],t.prototype,"width",void 0),t}(ma);Bn.Column=fa;var ga=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._columns=[],t}return $o(t,e),t.prototype.createColumnInstance=function(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),function(e){return e&&"Column"!==e?void 0:new fa},function(e,n){t.logParseEvent(void 0,qo.ValidationEvent.ElementTypeNotAllowed,ni.Strings.errors.elementTypeNotAllowed(e))})},t.prototype.internalRender=function(){if(this._renderedColumns=[],this._columns.length>0){var e=this.hostConfig,t=document.createElement("div");switch(t.className=e.makeCssClassName("ac-columnSet"),t.style.display="flex",Xo.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveHorizontalAlignment()){case qo.HorizontalAlignment.Center:t.style.justifyContent="center";break;case qo.HorizontalAlignment.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}for(var n=0,r=0,o=this._columns;r<o.length;r++){(s=o[r]).width instanceof Xo.SizeAndUnit&&s.width.unit===qo.SizeUnit.Weight&&(n+=s.width.physicalSize)}for(var i=0,a=this._columns;i<a.length;i++){var s;if((s=a[i]).width instanceof Xo.SizeAndUnit&&s.width.unit===qo.SizeUnit.Weight&&n>0){var l=100/n*s.width.physicalSize;s._computedWeight=l}var c=s.render();c&&(this._renderedColumns.length>0&&s.separatorElement&&(s.separatorElement.style.flex="0 0 auto",Yo.appendChild(t,s.separatorElement)),Yo.appendChild(t,c),this._renderedColumns.push(s))}return this._renderedColumns.length>0?t:void 0}},t.prototype.truncateOverflow=function(e){for(var t=0,n=this._columns;t<n.length;t++){n[t].handleOverflow(e)}return!0},t.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._columns;e<t.length;e++){t[e].resetOverflow()}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._columns=[],this._renderedColumns=[];var r=t.columns;if(Array.isArray(r))for(var o=0,i=r;o<i.length;o++){var a=i[o],s=this.createColumnInstance(a,n);s&&this._columns.push(s)}},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),n.serializeArray(t,"columns",this._columns)},t.prototype.isFirstElement=function(e){for(var t=0,n=this._columns;t<n.length;t++){var r=n[t];if(r.isVisible)return r===e}return!1},t.prototype.isBleedingAtTop=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(var e=0,t=this._columns;e<t.length;e++){if(t[e].isBleedingAtTop())return!0}return!1},t.prototype.isBleedingAtBottom=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(var e=0,t=this._columns;e<t.length;e++){if(t[e].isBleedingAtBottom())return!0}return!1},t.prototype.getItemCount=function(){return this._columns.length},t.prototype.getFirstVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[this._renderedColumns.length-1]:void 0},t.prototype.getColumnAt=function(e){return this._columns[e]},t.prototype.getItemAt=function(e){return this.getColumnAt(e)},t.prototype.getJsonTypeName=function(){return"ColumnSet"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0,r=0,o=0,i=this._columns;o<i.length;o++){var a=i[o];"number"==typeof a.width?n++:"stretch"===a.width&&r++}n>0&&r>0&&t.addFailure(this,qo.ValidationEvent.Hint,ni.Strings.hints.dontUseWeightedAndStrecthedColumnsInSameSet())},t.prototype.addColumn=function(e){if(e.parent)throw new Error(ni.Strings.errors.columnAlreadyBelongsToAnotherSet());this._columns.push(e),e.setParent(this)},t.prototype.removeItem=function(e){if(e instanceof fa){var t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.indexOf=function(e){return e instanceof fa?this._columns.indexOf(e):-1},t.prototype.isLeftMostElement=function(e){return 0===this._columns.indexOf(e)},t.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)===this._columns.length-1},t.prototype.isTopElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.isBottomElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.getActionById=function(e){for(var t=void 0,n=0,r=this._columns;n<r.length;n++){if(t=r[n].getActionById(e))break}return t},Object.defineProperty(t.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),t}(pa);function ya(e){var t=e.getRootElement(),n=t&&t.onImageLoaded?t.onImageLoaded:Ia.onImageLoaded;n&&n(e)}function va(e,t,n){var r=e.getRootElement(),o=r&&r.onAnchorClicked?r.onAnchorClicked:Ia.onAnchorClicked;return void 0!==o&&o(e,t,n)}function ba(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onInlineCardExpanded?n.onInlineCardExpanded:Ia.onInlineCardExpanded;r&&r(e,t)}function xa(e,t){void 0===t&&(t=!0);var n=e.getRootElement();t&&n.updateLayout();var r=n,o=r&&r.onElementVisibilityChanged?r.onElementVisibilityChanged:Ia.onElementVisibilityChanged;void 0!==o&&o(e)}function Ca(e,t){t?(e.readOnly=!0,e.required=!0):(e.readOnly=!1,e.required=!1)}Bn.ColumnSet=ga;var wa=function(e){function t(){var t=e.call(this)||this;return t._actionCollection=new la(t),t}return $o(t,e),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.parseActions(t,n)},t.prototype.parseActions=function(e,t){this._actionCollection.parse(e.actions,t)},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,"actions",n)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);if(t){var n=this._actionCollection.render(this.hostConfig.actions.actionsOrientation);return n&&(Yo.appendChild(t,ii(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing)},qo.Orientation.Horizontal)),Yo.appendChild(t,n)),this.renderIfEmpty||t.children.length>0?t:void 0}},t.prototype.getHasExpandedAction=function(){return 0!==this.renderedActionCount&&(1===this.renderedActionCount?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction)},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return this._actionCollection.renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},t.prototype.getActionById=function(t){var n=this._actionCollection.getActionById(t);return n||e.prototype.getActionById.call(this,t)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection&&this._actionCollection.validateProperties(t)},t.prototype.isLastElement=function(t){return e.prototype.isLastElement.call(this,t)&&0===this._actionCollection.getActionCount()},t.prototype.addAction=function(e){this._actionCollection.addAction(e)},t.prototype.clear=function(){e.prototype.clear.call(this),this._actionCollection.clear()},t.prototype.getAllInputs=function(t){void 0===t&&(t=!0);var n=e.prototype.getAllInputs.call(this,t);return t&&n.push.apply(n,this._actionCollection.getAllInputs(t)),n},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this._actionCollection.getResourceInformation()),t},t.prototype.isBleedingAtBottom=function(){return 0===this._actionCollection.renderedActionCount?e.prototype.isBleedingAtBottom.call(this):1===this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction},t.prototype.getForbiddenActionNames=function(){return[]},t.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);return n||(n=this.getElementByIdFromAction(t)),n},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(ma);Bn.ContainerWithActions=wa;var Sa=function(e){function t(t,n){var r=e.call(this,t,n,void 0)||this;return r.targetVersion=t,r.name=n,r}return $o(t,e),t.prototype.parse=function(e,t,n){var r=n.parseAction(e.parent,t[this.name],[],!1);if(void 0!==r){if(r instanceof Xi)return r;n.logParseEvent(e,qo.ValidationEvent.ActionTypeNotAllowed,ni.Strings.errors.actionTypeNotAllowed(r.getJsonTypeName()))}n.logParseEvent(e,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("action"))},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n?n.toJSON(r):void 0,void 0,!0)},t}(ei.PropertyDefinition);Bn.RefreshActionProperty=Sa;var ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),Object.defineProperty(t.prototype,"action",{get:function(){return this.getValue(t.actionProperty)},set:function(e){this.setValue(t.actionProperty,e),e&&e.setParent(this.parent)},enumerable:!1,configurable:!0}),t.prototype.getSchemaKey=function(){return"RefreshDefinition"},t.actionProperty=new Sa(ei.Versions.v1_4,"action"),t.userIdsProperty=new ei.StringArrayProperty(ei.Versions.v1_4,"userIds"),Uo([(0,ei.property)(t.actionProperty)],t.prototype,"action",null),Uo([(0,ei.property)(t.userIdsProperty)],t.prototype,"userIds",void 0),t}(ei.SerializableObject);Bn.RefreshDefinition=ka;var Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"AuthCardButton"},t.typeProperty=new ei.StringProperty(ei.Versions.v1_4,"type"),t.titleProperty=new ei.StringProperty(ei.Versions.v1_4,"title"),t.imageProperty=new ei.StringProperty(ei.Versions.v1_4,"image"),t.valueProperty=new ei.StringProperty(ei.Versions.v1_4,"value"),Uo([(0,ei.property)(t.typeProperty)],t.prototype,"type",void 0),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"title",void 0),Uo([(0,ei.property)(t.imageProperty)],t.prototype,"image",void 0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"value",void 0),t}(ei.SerializableObject);Bn.AuthCardButton=Pa;var Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"TokenExchangeResource"},t.idProperty=new ei.StringProperty(ei.Versions.v1_4,"id"),t.uriProperty=new ei.StringProperty(ei.Versions.v1_4,"uri"),t.providerIdProperty=new ei.StringProperty(ei.Versions.v1_4,"providerId"),Uo([(0,ei.property)(t.idProperty)],t.prototype,"id",void 0),Uo([(0,ei.property)(t.uriProperty)],t.prototype,"uri",void 0),Uo([(0,ei.property)(t.providerIdProperty)],t.prototype,"providerId",void 0),t}(ei.SerializableObject);Bn.TokenExchangeResource=Ea;var Aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"Authentication"},t.textProperty=new ei.StringProperty(ei.Versions.v1_4,"text"),t.connectionNameProperty=new ei.StringProperty(ei.Versions.v1_4,"connectionName"),t.buttonsProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_4,"buttons",Pa),t.tokenExchangeResourceProperty=new ei.SerializableObjectProperty(ei.Versions.v1_4,"tokenExchangeResource",Ea,!0),Uo([(0,ei.property)(t.textProperty)],t.prototype,"text",void 0),Uo([(0,ei.property)(t.connectionNameProperty)],t.prototype,"connectionName",void 0),Uo([(0,ei.property)(t.buttonsProperty)],t.prototype,"buttons",void 0),Uo([(0,ei.property)(t.tokenExchangeResourceProperty)],t.prototype,"tokenExchangeResource",void 0),t}(ei.SerializableObject);Bn.Authentication=Aa;var Ia=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.designMode=!1,t}return $o(t,e),Object.defineProperty(t.prototype,"refresh",{get:function(){return this.getValue(t.refreshProperty)},set:function(e){this.setValue(t.refreshProperty,e),e&&(e.parent=this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"processMarkdown",{get:function(){throw new Error(ni.Strings.errors.processMarkdownEventRemoved())},set:function(e){throw new Error(ni.Strings.errors.processMarkdownEventRemoved())},enumerable:!1,configurable:!0}),t.applyMarkdown=function(e){var n={didProcess:!1};if(t.onProcessMarkdown)t.onProcessMarkdown(e,n);else if(window.markdownit){var r=window.markdownit;n.outputHtml=r().render(e),n.didProcess=!0}else t._haveWarnedAboutNoMarkdownProcessing||(console.warn(ni.Strings.errors.markdownProcessingNotEnabled),t._haveWarnedAboutNoMarkdownProcessing=!0);return n},t.prototype.isVersionSupported=function(){return!!this.bypassVersionCheck||!(!this.version||!this.version.isValid||this.maxVersion.major<this.version.major||this.maxVersion.major===this.version.major&&this.maxVersion.minor<this.version.minor)},t.prototype.getDefaultSerializationContext=function(){return new Ta(this.version)},t.prototype.getItemsCollectionPropertyName=function(){return"body"},t.prototype.internalParse=function(n,r){this._fallbackCard=void 0;var o=r.parseElement(void 0,n.fallback,this.forbiddenChildElements(),!this.isDesignMode());o&&(this._fallbackCard=new t,this._fallbackCard.addItem(o)),e.prototype.internalParse.call(this,n,r)},t.prototype.internalToJSON=function(n,r){this.setValue(t.versionProperty,r.targetVersion),e.prototype.internalToJSON.call(this,n,r)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return Xo.GlobalSettings.useAdvancedCardBottomTruncation&&t&&t.style.removeProperty("minHeight"),t},t.prototype.getHasBackground=function(e){return!0},t.prototype.getDefaultPadding=function(){return new Xo.PaddingDefinition(qo.Spacing.Padding,qo.Spacing.Padding,qo.Spacing.Padding,qo.Spacing.Padding)},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bypassVersionCheck",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomStyle",{get:function(){return this.hostConfig.adaptiveCard&&this.hostConfig.adaptiveCard.allowCustomStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"AdaptiveCard"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),"AdaptiveCard"!==this.getValue(ai.typeNameProperty)&&t.addFailure(this,qo.ValidationEvent.MissingCardType,ni.Strings.errors.invalidCardType()),this.bypassVersionCheck||this.version?this.isVersionSupported()||t.addFailure(this,qo.ValidationEvent.UnsupportedCardVersion,ni.Strings.errors.unsupportedCardVersion(this.version.toString(),this.maxVersion.toString())):t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("version"))},t.prototype.render=function(t){var n,r=this;return this.shouldFallback()&&this._fallbackCard?(this._fallbackCard.hostConfig=this.hostConfig,n=this._fallbackCard.render()):(n=e.prototype.render.call(this))&&(n.classList.add(this.hostConfig.makeCssClassName("ac-adaptiveCard")),Xo.GlobalSettings.setTabIndexAtCardRoot&&(n.tabIndex=0),this.speak&&n.setAttribute("aria-label",this.speak),n.onmouseenter=function(e){r.updateInputsVisualState(!0)},n.onmouseleave=function(e){r.updateInputsVisualState(!1)},this.getRootElement().updateActionsEnabledState()),t&&(Yo.appendChild(t,n),this.updateLayout()),n},t.prototype.updateLayout=function(t){if(void 0===t&&(t=!0),e.prototype.updateLayout.call(this,t),Xo.GlobalSettings.useAdvancedCardBottomTruncation&&this.isDisplayed()){var n=this.hostConfig.getEffectiveSpacing(qo.Spacing.Default);this.handleOverflow(this.renderedElement.offsetHeight-n)}},t.prototype.shouldFallback=function(){return e.prototype.shouldFallback.call(this)||!this.isVersionSupported()},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!1},enumerable:!1,configurable:!0}),t.schemaUrl="http://adaptivecards.io/schemas/adaptive-card.json",t.$schemaProperty=new ei.CustomProperty(ei.Versions.v1_0,"$schema",function(e,n,r,o){return t.schemaUrl},function(e,n,r,o,i){i.serializeValue(r,n.name,t.schemaUrl)}),t.versionProperty=new ei.CustomProperty(ei.Versions.v1_0,"version",function(e,t,n,r){var o=ei.Version.parse(n[t.name],r);return void 0===o&&(o=ei.Versions.latest,r.logParseEvent(e,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidCardVersion(o.toString()))),o},function(e,t,n,r,o){void 0!==r&&o.serializeValue(n,t.name,r.toString())},ei.Versions.v1_0),t.fallbackTextProperty=new ei.StringProperty(ei.Versions.v1_0,"fallbackText"),t.speakProperty=new ei.StringProperty(ei.Versions.v1_0,"speak"),t.refreshProperty=new ei.SerializableObjectProperty(ei.Versions.v1_4,"refresh",ka,!0),t.authenticationProperty=new ei.SerializableObjectProperty(ei.Versions.v1_4,"authentication",Aa,!0),t._haveWarnedAboutNoMarkdownProcessing=!1,Uo([(0,ei.property)(t.versionProperty)],t.prototype,"version",void 0),Uo([(0,ei.property)(t.fallbackTextProperty)],t.prototype,"fallbackText",void 0),Uo([(0,ei.property)(t.speakProperty)],t.prototype,"speak",void 0),Uo([(0,ei.property)(t.refreshProperty)],t.prototype,"refresh",null),Uo([(0,ei.property)(t.authenticationProperty)],t.prototype,"authentication",void 0),t}(wa);Bn.AdaptiveCard=Ia;var _a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suppressStyle=!1,t}return $o(t,e),t.prototype.getSchemaKey=function(){return"InlineAdaptiveCard"},t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(Ia.$schemaProperty,Ia.versionProperty)},t.prototype.getDefaultPadding=function(){return new Xo.PaddingDefinition(this.suppressStyle?qo.Spacing.None:qo.Spacing.Padding,qo.Spacing.Padding,this.suppressStyle?qo.Spacing.None:qo.Spacing.Padding,qo.Spacing.Padding)},Object.defineProperty(t.prototype,"bypassVersionCheck",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return this.suppressStyle?qo.ContainerStyle.Default:this.hostConfig.actions.showCard.style?this.hostConfig.actions.showCard.style:qo.ContainerStyle.Emphasis},enumerable:!1,configurable:!0}),t.prototype.render=function(t){var n=e.prototype.render.call(this,t);return n&&(n.setAttribute("aria-live","polite"),n.removeAttribute("tabindex")),n},t}(Ia),Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._forbiddenTypes=new Set,t}return $o(t,e),t.prototype.internalParseCardObject=function(e,t,n,r,o,i){var a=this,s=void 0;if(t&&"object"==typeof t){var l=new Set;this._forbiddenTypes.forEach(function(e){l.add(e)}),n.forEach(function(e){a._forbiddenTypes.add(e)});var c=Yo.parseString(t.type);if(c&&this._forbiddenTypes.has(c))i(c,qo.TypeErrorType.ForbiddenType);else{var u=!1;if((s=o(c))?(s.setParent(e),s.parse(t,this),u=Xo.GlobalSettings.enableFallback&&r&&s.shouldFallback()):(u=Xo.GlobalSettings.enableFallback&&r,i(c,qo.TypeErrorType.UnknownType)),u){var d=t.fallback;!d&&e&&e.setShouldFallback(!0),"string"==typeof d&&"drop"===d.toLowerCase()?s=void 0:"object"==typeof d&&(s=this.internalParseCardObject(e,d,n,!0,o,i))}}this._forbiddenTypes=l}return s},t.prototype.cardObjectParsed=function(e,t){e instanceof $i&&this.onParseAction?this.onParseAction(e,t,this):e instanceof ai&&this.onParseElement&&this.onParseElement(e,t,this)},t.prototype.shouldSerialize=function(e){return e instanceof $i?void 0!==this.actionRegistry.findByName(e.getJsonTypeName()):!(e instanceof ai)||void 0!==this.elementRegistry.findByName(e.getJsonTypeName())},t.prototype.parseCardObject=function(e,t,n,r,o,i){var a=new Set(n),s=this.internalParseCardObject(e,t,a,r,o,i);return void 0!==s&&this.cardObjectParsed(s,t),s},t.prototype.parseElement=function(e,t,n,r){var o=this;return this.parseCardObject(e,t,n,r,function(e){return o.elementRegistry.createInstance(e,o.targetVersion)},function(e,t){t===qo.TypeErrorType.UnknownType?o.logParseEvent(void 0,qo.ValidationEvent.UnknownElementType,ni.Strings.errors.unknownElementType(e)):o.logParseEvent(void 0,qo.ValidationEvent.ElementTypeNotAllowed,ni.Strings.errors.elementTypeNotAllowed(e))})},t.prototype.parseAction=function(e,t,n,r){var o=this;return this.parseCardObject(e,t,n,r,function(e){return o.actionRegistry.createInstance(e,o.targetVersion)},function(e,t){t===qo.TypeErrorType.UnknownType?o.logParseEvent(void 0,qo.ValidationEvent.UnknownActionType,ni.Strings.errors.unknownActionType(e)):o.logParseEvent(void 0,qo.ValidationEvent.ActionTypeNotAllowed,ni.Strings.errors.actionTypeNotAllowed(e))})},Object.defineProperty(t.prototype,"elementRegistry",{get:function(){var e;return null!==(e=this._elementRegistry)&&void 0!==e?e:ti.GlobalRegistry.elements},enumerable:!1,configurable:!0}),t.prototype.setElementRegistry=function(e){this._elementRegistry=e},Object.defineProperty(t.prototype,"actionRegistry",{get:function(){var e;return null!==(e=this._actionRegistry)&&void 0!==e?e:ti.GlobalRegistry.actions},enumerable:!1,configurable:!0}),t.prototype.setActionRegistry=function(e){this._actionRegistry=e},t}(ei.BaseSerializationContext);Bn.SerializationContext=Ta,ti.GlobalRegistry.defaultElements.register("Container",ma),ti.GlobalRegistry.defaultElements.register("TextBlock",ci),ti.GlobalRegistry.defaultElements.register("RichTextBlock",di,ei.Versions.v1_2),ti.GlobalRegistry.defaultElements.register("TextRun",ui,ei.Versions.v1_2),ti.GlobalRegistry.defaultElements.register("Image",fi),ti.GlobalRegistry.defaultElements.register("ImageSet",vi),ti.GlobalRegistry.defaultElements.register("Media",Mi,ei.Versions.v1_1),ti.GlobalRegistry.defaultElements.register("FactSet",hi),ti.GlobalRegistry.defaultElements.register("ColumnSet",ga),ti.GlobalRegistry.defaultElements.register("ActionSet",ca,ei.Versions.v1_2),ti.GlobalRegistry.defaultElements.register("Input.Text",Di),ti.GlobalRegistry.defaultElements.register("Input.Date",Hi),ti.GlobalRegistry.defaultElements.register("Input.Time",Wi),ti.GlobalRegistry.defaultElements.register("Input.Number",Li),ti.GlobalRegistry.defaultElements.register("Input.ChoiceSet",Ri),ti.GlobalRegistry.defaultElements.register("Input.Toggle",Vi),ti.GlobalRegistry.defaultActions.register(Qi.JsonTypeName,Qi),ti.GlobalRegistry.defaultActions.register(Ji.JsonTypeName,Ji),ti.GlobalRegistry.defaultActions.register(ia.JsonTypeName,ia),ti.GlobalRegistry.defaultActions.register(ea.JsonTypeName,ea,ei.Versions.v1_2),ti.GlobalRegistry.defaultActions.register(Xi.JsonTypeName,Xi,ei.Versions.v1_4);const ja=e=>{let t;return t=e.iconUrl?c.jsx(p.Button,{className:e.className,onClick:e.actionClickHandler,appearance:"primary",children:c.jsxs("div",{style:{display:"flex",flexDirection:e.iconPlacement===Rn.ActionIconPlacement.LeftOfTitle?"row":"column",justifyContent:"center",alignItems:"center"},children:[c.jsx("img",{src:e.iconUrl,style:{width:e.iconSize,height:e.iconSize,flexShrink:0,marginRight:e.iconPlacement===Rn.ActionIconPlacement.LeftOfTitle?4:0,marginBottom:e.iconPlacement!==Rn.ActionIconPlacement.LeftOfTitle?4:0},alt:""}),c.jsx("span",{children:e.text})]})}):"positive"===e.style.toLocaleLowerCase().trim()||"destructive"===e.style.toLocaleLowerCase().trim()?c.jsx(p.Button,{className:e.className,onClick:e.actionClickHandler,appearance:"primary",children:e.text}):c.jsx(p.Button,{className:e.className,onClick:e.actionClickHandler,children:e.text}),t},Ma=(e,t,n,r,o,i,a,s)=>{const l=document.createElement("div");return l.className="fluentUI",H.render(c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:s,children:c.jsx(ja,{text:e,className:n,iconUrl:t,iconPlacement:r,iconSize:o,actionClickHandler:i,style:a,theme:s})})}),l),l.addEventListener("DOMNodeRemoved",()=>{H.unmountComponentAtNode(l)}),l};class Na extends Yi{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,n;const r=this.hostConfig.hostCapabilities.getCustomProperty(Nn),o=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title??"",this.iconUrl||"",e||"",o.iconPlacement,o.iconSize,this.actionClickHandler,this.style,r)}}class Da extends Ki{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,n;const r=this.hostConfig.hostCapabilities.getCustomProperty(Nn),o=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title??"",this.iconUrl||"",e||"",o.iconPlacement,o.iconSize,this.actionClickHandler,this.style,r)}}class Va extends aa{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){if(this.renderedElement){const e=1===this.state;this.renderedElement.setAttribute("aria-expanded",e.toString())}}render(e){var t,n;const r=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title||"Default Title",this.iconUrl||"",this.iconUrl??"",r.iconPlacement,r.iconSize,this.actionClickHandler,this.style)}}class Oa extends Gi{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,n;const r=this.hostConfig.hostCapabilities.getCustomProperty(Nn),o=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title??"",this.iconUrl??"",e||"",o.iconPlacement,o.iconSize,this.actionClickHandler,this.style,r)}}class Ba extends ta{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){if(this.renderedElement){const e=1===this.state;this.renderedElement.setAttribute("aria-expanded",e.toString())}}render(e){var t,n;const r=this.hostConfig.hostCapabilities.getCustomProperty(Nn),o=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title??"",this.iconUrl??"",e||"",o.iconPlacement,o.iconSize,this.actionClickHandler,this.style,r)}}const Ra=e=>{const t=document.createElement("div");return H.render(e(),t),t};var za=Object.defineProperty,La=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&za(t,n,i),i};const Ha=(e=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"style"),s(this,"isMultiSelect",!1),s(this,"placeholder"),s(this,"wrap",!1),s(this,"choices",[]),s(this,"element"),s(this,"refControl"),s(this,"selectedValues",[]),s(this,"defaultSelectedValues",[]),s(this,"updateSelectedValues",(e,t,n)=>{t?n?this.selectedValues.includes(e)||this.selectedValues.push(e):this.removeItemFromArray(this.selectedValues,e):this.selectedValues=[e]}),s(this,"removeItemFromArray",(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})}get isCompact(){return!this.style||"compact"===this.style}set isCompact(e){this.style=e?void 0:"expanded"}internalRender(){const e=Dn(this.hostConfig),t=this.choices?this.choices.map(e=>({key:e.value,text:e.title})):[];this.defaultValue&&(this.defaultSelectedValues=this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator),this.selectedValues=[...this.defaultSelectedValues]);const n=()=>{var e;const[n,r]=L.useState(this.selectedValues);return L.useEffect(()=>{r(this.selectedValues)},[this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)]),c.jsx(p.Combobox,{style:{width:"100%"},placeholder:this.placeholder,multiselect:this.isMultiSelect,value:this.isMultiSelect?n.map(e=>{var n;return null==(n=t.find(t=>t.key===e))?void 0:n.text}).join(this.hostConfig.choiceSetInputValueSeparator):null==(e=t.find(e=>n[0]===e.key))?void 0:e.text,selectedOptions:this.isMultiSelect?n:[n[0]],autoComplete:"filtered"===this.style?"on":"off",onOptionSelect:(e,t)=>{if(this.isMultiSelect)r(t.selectedOptions),this.selectedValues=t.selectedOptions;else{const e=t.optionValue??"";r([e]),this.selectedValues=[e]}this.valueChanged()},ref:e=>{this.refControl=e},children:t.map(e=>c.jsx(p.Option,{value:e.key,children:e.text??""},e.key))})};return this.element=Ra(()=>c.jsxs(c.Fragment,{children:[!this.isMultiSelect&&"expanded"===this.style&&c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(p.RadioGroup,{defaultValue:this.defaultValue,onChange:(e,t)=>{this.updateSelectedValues(t.value,this.isMultiSelect,!0),this.valueChanged()},ref:e=>{this.refControl=e},children:this.choices.map((e,t)=>c.jsx(p.Radio,{value:e.value,label:e.title,style:{marginTop:t>0?this.hostConfig.spacing.default:0}},e.value))})})}),this.isMultiSelect&&"expanded"===this.style&&c.jsx("div",{style:{display:"flex",gap:this.hostConfig.spacing.default},children:this.choices.map((t,n)=>{const r=this.defaultSelectedValues.indexOf(t.value??"")>-1;return c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(p.Checkbox,{label:t.title,defaultChecked:r,onChange:(e,n)=>{this.updateSelectedValues(t.value??"",this.isMultiSelect,!!n),this.valueChanged()},ref:e=>{0===n&&(this.refControl=e)}})})},t.value)})}),("compact"===this.style||"filtered"===this.style)&&c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(n,{})})})]})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.ChoiceSet"}focus(){this.refControl&&this.refControl.focus&&this.refControl.focus()}internalValidateProperties(e){super.internalValidateProperties(e),0===this.choices.length&&e.addFailure(this,A.ValidationEvent.CollectionCantBeEmpty,A.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(const t of this.choices)t.title&&t.value||e.addFailure(this,A.ValidationEvent.PropertyCantBeNull,A.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}isSet(){return!!this.value}isValid(){return!!this.value||!this.isRequired}get value(){if(this.selectedValues)return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)}},s(e,"valueProperty",new A.StringProperty(A.Versions.v1_5,"value")),s(e,"choicesProperty",new A.SerializableObjectCollectionProperty(A.Versions.v1_5,"choices",A.Choice)),s(e,"styleProperty",new A.ValueSetProperty(A.Versions.v1_5,"style",[{value:"compact"},{value:"expanded"},{value:"filtered",targetVersion:A.Versions.v1_5}],"compact")),s(e,"isMultiSelectProperty",new A.BoolProperty(A.Versions.v1_5,"isMultiSelect",!1)),s(e,"placeholderProperty",new A.StringProperty(A.Versions.v1_5,"placeholder")),s(e,"wrapProperty",new A.BoolProperty(A.Versions.v1_5,"wrap",!1)),e);La([A.property(Ha.valueProperty)],Ha.prototype,"defaultValue"),La([A.property(Ha.styleProperty)],Ha.prototype,"style"),La([A.property(Ha.isMultiSelectProperty)],Ha.prototype,"isMultiSelect"),La([A.property(Ha.placeholderProperty)],Ha.prototype,"placeholder"),La([A.property(Ha.wrapProperty)],Ha.prototype,"wrap"),La([A.property(Ha.choicesProperty)],Ha.prototype,"choices");let Fa=Ha;var Wa=Object.defineProperty,$a=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&Wa(t,n,i),i};const Ua=(t=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"min"),s(this,"max"),s(this,"placeholder"),s(this,"_value"),s(this,"refControl"),s(this,"element")}internalRender(){const e=Dn(this.hostConfig);return this.element=Ra(()=>c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(T.DatePicker,{id:this.id,placeholder:this.placeholder,minDate:this.convertStringToDate(this.min),maxDate:this.convertStringToDate(this.max),onSelectDate:e=>{this._value=e??void 0,this.valueChanged()},ref:e=>{this.refControl=e},style:{width:"100%"}})})})),this.element.style.width="100%",this.element}convertStringToDate(e){if(e)try{const t=new Date(e);return isNaN(t.getTime())?void 0:t}catch{return}}getJsonTypeName(){return"Input.Date"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;const e=new Date(this.value);let t=!0;if(this.min){const n=new Date(this.min);t=t&&e>=n}if(this.max){const n=new Date(this.max);t=t&&e<=n}return t}get value(){if(this._value){const e=this._value.getTimezoneOffset();return new Date(this._value.getTime()-60*e*1e3).toISOString().split("T")[0]}}},s(t,"valueProperty",new A.StringProperty(A.Versions.v1_5,"value")),s(t,"placeholderProperty",new A.StringProperty(A.Versions.v1_5,"placeholder")),s(t,"minProperty",new A.StringProperty(A.Versions.v1_0,"min")),s(t,"maxProperty",new A.StringProperty(A.Versions.v1_0,"max")),t);$a([A.property(Ua.valueProperty)],Ua.prototype,"defaultValue"),$a([A.property(Ua.minProperty)],Ua.prototype,"min"),$a([A.property(Ua.maxProperty)],Ua.prototype,"max"),$a([A.property(Ua.placeholderProperty)],Ua.prototype,"placeholder");let Ja=Ua;var Ga=Object.defineProperty,qa=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&Ga(t,n,i),i};const Xa=(n=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"min"),s(this,"max"),s(this,"placeholder"),s(this,"refControl",null),s(this,"element")}internalRender(){const e=Dn(this.hostConfig);return this.element=Ra(()=>c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(p.SpinButton,{style:{width:"calc(100% - 10px)"},id:this.id,defaultValue:void 0!==this.defaultValue?this.defaultValue:void 0,placeholder:this.placeholder,min:this.min,max:this.max,onChange:()=>{this.valueChanged()},ref:e=>{this.refControl=e}})})})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.Number"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){const e=this.value;return void 0!==e&&!isNaN(e)}isValid(){const e=this.value;if(void 0===e)return!this.isRequired;let t=!0;return void 0!==this.min&&(t=t&&e>=this.min),void 0!==this.max&&(t=t&&e<=this.max),t}get value(){return this.refControl?Number(this.refControl.value):void 0}},s(n,"valueProperty",new A.NumProperty(A.Versions.v1_5,"value")),s(n,"placeholderProperty",new A.StringProperty(A.Versions.v1_5,"placeholder")),s(n,"minProperty",new A.NumProperty(A.Versions.v1_0,"min")),s(n,"maxProperty",new A.NumProperty(A.Versions.v1_0,"max")),n);qa([A.property(Xa.valueProperty)],Xa.prototype,"defaultValue"),qa([A.property(Xa.minProperty)],Xa.prototype,"min"),qa([A.property(Xa.maxProperty)],Xa.prototype,"max"),qa([A.property(Xa.placeholderProperty)],Xa.prototype,"placeholder");let Ya=Xa;const Za=e=>{const{ariaLabel:t,iconProps:n,styles:r,className:o,onClick:i,...a}=e;return c.jsx(p.Button,{appearance:"transparent","aria-label":t,className:o,onClick:i,style:r,...a,children:c.jsx("img",{src:n.src,alt:t,style:{height:n.height||"100%",width:n.width||"auto"}})})},Qa={marginLeft:8};var Ka=Object.defineProperty,es=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&Ka(t,n,i),i};const ts=(r=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"maxLength"),s(this,"isMultiline",!1),s(this,"placeholder"),s(this,"style",A.InputTextStyle.Text),s(this,"inlineAction"),s(this,"regex"),s(this,"refControl",null),s(this,"element"),s(this,"_value",this.defaultValue||""),s(this,"handleKeyDown",e=>{var t;"Enter"===e.key&&this.inlineAction&&(null==(t=this.inlineAction)||t.execute())}),s(this,"buildInlineActionButton",()=>{var e;return Ra((null==(e=this.inlineAction)?void 0:e.iconUrl)?this.inlineIconActionButton:this.buildTextOnlyInlineActionActionButton)}),s(this,"inlineActionClickHandler",e=>{var t;e.stopPropagation(),e.preventDefault(),null==(t=this.inlineAction)||t.execute()}),s(this,"inlineIconActionButton",()=>{var e,t;const n=this.hostConfig.hostCapabilities.getCustomProperty(Nn);return c.jsx(p.FluentProvider,{theme:n,children:c.jsx(Za,{ariaLabel:(null==(e=this.inlineAction)?void 0:e.title)||"Inline action",className:this.hostConfig.makeCssClassName("ac-inlineActionButton","iconOnly"),iconProps:{src:(null==(t=this.inlineAction)?void 0:t.iconUrl)??""},onClick:this.inlineActionClickHandler,styles:Qa})})}),s(this,"buildTextOnlyInlineActionActionButton",()=>{var e;const t=this.hostConfig.hostCapabilities.getCustomProperty(Nn);return c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:t,children:c.jsx(p.Button,{appearance:"primary",className:this.hostConfig.makeCssClassName("ac-inlineActionButton","textOnly"),onClick:this.inlineActionClickHandler,style:Qa,children:(null==(e=this.inlineAction)?void 0:e.title)??""})})})})}internalRender(){const e=Dn(this.hostConfig);return this.element=Ra(()=>c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:this.isMultiline?c.jsx(p.Textarea,{resize:"vertical",style:{width:"100%"},id:this.id,defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e}}):c.jsx(p.Input,{id:this.id,style:{width:"100%"},type:A.InputTextStyle[this.style].toLowerCase(),defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e?e.inputElement:null}})})})),this.element.style.width="100%",this.element}overrideInternalRender(){const e=super.overrideInternalRender();return this.inlineAction&&this.inputControlContainerElement.appendChild(this.buildInlineActionButton()),e||document.createElement("div")}getJsonTypeName(){return"Input.Text"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}getActionById(e){let t=super.getActionById(e);if(!t&&this.inlineAction&&(t=this.inlineAction.getActionById(e)),!t)throw new Error(`Action with id '${e}' not found.`);return t}isSet(){return!!this.value}isValid(){return this.value?!this.regex||new RegExp(this.regex,"g").test(this.value):!this.isRequired}get value(){if(this._value)return this._value}},s(r,"valueProperty",new A.StringProperty(A.Versions.v1_0,"value")),s(r,"maxLengthProperty",new A.NumProperty(A.Versions.v1_0,"maxLength")),s(r,"isMultilineProperty",new A.BoolProperty(A.Versions.v1_0,"isMultiline",!1)),s(r,"placeholderProperty",new A.StringProperty(A.Versions.v1_0,"placeholder")),s(r,"styleProperty",new A.EnumProperty(A.Versions.v1_0,"style",A.InputTextStyle,A.InputTextStyle.Text)),s(r,"inlineActionProperty",new A.ActionProperty(A.Versions.v1_0,"inlineAction",["Action.ShowCard"])),s(r,"regexProperty",new A.StringProperty(A.Versions.v1_3,"regex",!0)),r);es([A.property(ts.valueProperty)],ts.prototype,"defaultValue"),es([A.property(ts.maxLengthProperty)],ts.prototype,"maxLength"),es([A.property(ts.isMultilineProperty)],ts.prototype,"isMultiline"),es([A.property(ts.placeholderProperty)],ts.prototype,"placeholder"),es([A.property(ts.styleProperty)],ts.prototype,"style"),es([A.property(ts.inlineActionProperty)],ts.prototype,"inlineAction"),es([A.property(ts.regexProperty)],ts.prototype,"regex");let ns=ts;var rs=Object.defineProperty,os=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&rs(t,n,i),i};const is=e=>{const{id:t,defaultTime:n,minTime:r,maxTime:o,placeholder:i,theme:a,onTimeChange:s}=e,[l,u]=L.useState(n),[d,h]=L.useState(n?j.formatDateToTimeString(n??new Date):"");return c.jsx(p.IdPrefixProvider,{value:t,children:c.jsx(p.FluentProvider,{theme:a,children:c.jsx(j.TimePicker,{style:{width:"100%"},expandIcon:c.jsx(v.ClockRegular,{}),id:t,freeform:!0,min:r?j.formatDateToTimeString(r):void 0,max:o?j.formatDateToTimeString(o):void 0,placeholder:i,value:l?j.formatDateToTimeString(l):d,onTimeChange:(e,t)=>{const n=t.selectedTime??void 0,r=t.selectedTimeText??"";u(n),h(r),s&&n&&s(n,r)},onInput:e=>{h(e.target.value)}})})})},as=(o=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"min"),s(this,"max"),s(this,"placeholder"),s(this,"_time"),s(this,"element")}static convertTimeStringToDate(e){return new Date("1973-09-04T"+e+":00Z")}internalRender(){const e=Dn(this.hostConfig),t=this.defaultValue?o.convertTimeStringToDate(this.defaultValue):void 0,n=this.min?o.convertTimeStringToDate(this.min):void 0,r=this.max?o.convertTimeStringToDate(this.max):void 0;return this.element=Ra(()=>c.jsx(is,{id:A.generateUniqueId(),defaultTime:t,minTime:n,maxTime:r,placeholder:this.placeholder,theme:e,onTimeChange:e=>{this._time=e,this.valueChanged()}})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.Time"}focus(){}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;if(!this._time)return!1;let e=!0;if(this.min){const t=o.convertTimeStringToDate(this.min);e=e&&this._time>=t}if(this.max){const t=o.convertTimeStringToDate(this.max);e=e&&this._time<=t}return e}get value(){return this._time?j.formatDateToTimeString(this._time):void 0}},s(o,"valueProperty",new A.TimeProperty(A.Versions.v1_0,"value")),s(o,"placeholderProperty",new A.StringProperty(A.Versions.v1_0,"placeholder")),s(o,"minProperty",new A.TimeProperty(A.Versions.v1_0,"min")),s(o,"maxProperty",new A.TimeProperty(A.Versions.v1_0,"max")),o);os([A.property(as.valueProperty)],as.prototype,"defaultValue"),os([A.property(as.minProperty)],as.prototype,"min"),os([A.property(as.maxProperty)],as.prototype,"max"),os([A.property(as.placeholderProperty)],as.prototype,"placeholder");let ss=as;var ls=Object.defineProperty,cs=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&ls(t,n,i),i};const us=(i=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"title"),s(this,"valueOn","true"),s(this,"valueOff","false"),s(this,"wrap",!1),s(this,"_value"),s(this,"refControl",null),s(this,"element")}internalRender(){const e=Dn(this.hostConfig);return this.element=Ra(()=>c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,style:{backgroundColor:"transparent"},children:c.jsx(p.Switch,{id:this.id,label:this.title,onChange:(e,t)=>{this._value=t.checked,this.valueChanged()},defaultChecked:this.defaultValue===this.valueOn,style:{marginBottom:0,marginTop:0},ref:e=>{this.refControl=e}})})})),this.element.style.width="100%",this.element}get isNullable(){return!1}getJsonTypeName(){return"Input.Toggle"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return this.isRequired?this.value===this.valueOn:!!this.value}get value(){return null!==this._value&&void 0!==this._value?this._value?this.valueOn:this.valueOff:this.isRequired?void 0:this.valueOff}},s(i,"valueProperty",new A.StringProperty(A.Versions.v1_5,"value")),s(i,"titleProperty",new A.StringProperty(A.Versions.v1_5,"title")),s(i,"valueOnProperty",new A.StringProperty(A.Versions.v1_5,"valueOn",!0,void 0,"true",e=>"true")),s(i,"valueOffProperty",new A.StringProperty(A.Versions.v1_5,"valueOff",!0,void 0,"false",e=>"false")),s(i,"wrapProperty",new A.BoolProperty(A.Versions.v1_2,"wrap",!1)),i);cs([A.property(us.valueProperty)],us.prototype,"defaultValue"),cs([A.property(us.titleProperty)],us.prototype,"title"),cs([A.property(us.valueOnProperty)],us.prototype,"valueOn"),cs([A.property(us.valueOffProperty)],us.prototype,"valueOff"),cs([A.property(us.wrapProperty)],us.prototype,"wrap");let ds=us;console.log("expression:",N.Expression);const ps=e=>{switch(e){case jn.SharePoint:return p.webLightTheme;case jn.Teams:return p.teamsLightTheme;case jn.TeamsDark:return p.teamsDarkTheme;case jn.TeamsHighContrast:return p.teamsHighContrastTheme;default:return p.webLightTheme}};var hs=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ms="-ms-",fs="-moz-",gs="-webkit-",ys="comm",vs="rule",bs="decl",xs="@keyframes",Cs=Math.abs,ws=String.fromCharCode,Ss=Object.assign;function ks(e){return e.trim()}function Ps(e,t,n){return e.replace(t,n)}function Es(e,t){return e.indexOf(t)}function As(e,t){return 0|e.charCodeAt(t)}function Is(e,t,n){return e.slice(t,n)}function _s(e){return e.length}function Ts(e){return e.length}function js(e,t){return t.push(e),e}var Ms=1,Ns=1,Ds=0,Vs=0,Os=0,Bs="";function Rs(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ms,column:Ns,length:a,return:""}}function zs(e,t){return Ss(Rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ls(){return Os=Vs>0?As(Bs,--Vs):0,Ns--,10===Os&&(Ns=1,Ms--),Os}function Hs(){return Os=Vs<Ds?As(Bs,Vs++):0,Ns++,10===Os&&(Ns=1,Ms++),Os}function Fs(){return As(Bs,Vs)}function Ws(){return Vs}function $s(e,t){return Is(Bs,e,t)}function Us(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Js(e){return Ms=Ns=1,Ds=_s(Bs=e),Vs=0,[]}function Gs(e){return Bs="",e}function qs(e){return ks($s(Vs-1,Zs(91===e?e+2:40===e?e+1:e)))}function Xs(e){for(;(Os=Fs())&&Os<33;)Hs();return Us(e)>2||Us(Os)>3?"":" "}function Ys(e,t){for(;--t&&Hs()&&!(Os<48||Os>102||Os>57&&Os<65||Os>70&&Os<97););return $s(e,Ws()+(t<6&&32==Fs()&&32==Hs()))}function Zs(e){for(;Hs();)switch(Os){case e:return Vs;case 34:case 39:34!==e&&39!==e&&Zs(Os);break;case 40:41===e&&Zs(e);break;case 92:Hs()}return Vs}function Qs(e,t){for(;Hs()&&e+Os!==57&&(e+Os!==84||47!==Fs()););return"/*"+$s(t,Vs-1)+"*"+ws(47===e?e:Hs())}function Ks(e){for(;!Us(Fs());)Hs();return $s(e,Vs)}function el(e){return Gs(tl("",null,null,null,[""],e=Js(e),0,[0],e))}function tl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,m=0,f=1,g=1,y=1,v=0,b="",x=o,C=i,w=r,S=b;g;)switch(m=v,v=Hs()){case 40:if(108!=m&&58==As(S,d-1)){-1!=Es(S+=Ps(qs(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=qs(v);break;case 9:case 10:case 13:case 32:S+=Xs(m);break;case 92:S+=Ys(Ws()-1,7);continue;case 47:switch(Fs()){case 42:case 47:js(rl(Qs(Hs(),Ws()),t,n),l);break;default:S+="/"}break;case 123*f:s[c++]=_s(S)*y;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=Ps(S,/\f/g,"")),h>0&&_s(S)-d&&js(h>32?ol(S+";",r,n,d-1):ol(Ps(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(js(w=nl(S,t,n,c,u,o,s,b,x=[],C=[],d),i),123===v)if(0===u)tl(S,t,w,w,x,i,d,s,C);else switch(99===p&&110===As(S,3)?100:p){case 100:case 108:case 109:case 115:tl(e,w,w,r&&js(nl(e,w,w,0,0,o,s,b,o,x=[],d),C),o,C,d,s,r?x:C);break;default:tl(S,w,w,w,[""],C,0,s,C)}}c=u=h=0,f=y=1,b=S="",d=a;break;case 58:d=1+_s(S),h=m;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Ls())continue;switch(S+=ws(v),v*f){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(_s(S)-1)*y,y=1;break;case 64:45===Fs()&&(S+=qs(Hs())),p=Fs(),u=d=_s(b=S+=Ks(Ws())),v++;break;case 45:45===m&&2==_s(S)&&(f=0)}}return i}function nl(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=Ts(p),m=0,f=0,g=0;m<r;++m)for(var y=0,v=Is(e,d+1,d=Cs(f=a[m])),b=e;y<h;++y)(b=ks(f>0?p[y]+" "+v:Ps(v,/&\f/g,p[y])))&&(l[g++]=b);return Rs(e,t,n,0===o?vs:s,l,c,u)}function rl(e,t,n){return Rs(e,t,n,ys,ws(Os),Is(e,2,-2),0)}function ol(e,t,n,r){return Rs(e,t,n,bs,Is(e,0,r),Is(e,r+1,-1),r)}function il(e,t){for(var n="",r=Ts(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function al(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bs:return e.return=e.return||e.value;case ys:return"";case xs:return e.return=e.value+"{"+il(e.children,r)+"}";case vs:e.value=e.props.join(",")}return _s(n=il(e.children,r))?e.return=e.value+"{"+n+"}":""}function sl(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ll=function(e,t,n){for(var r=0,o=0;r=o,o=Fs(),38===r&&12===o&&(t[n]=1),!Us(o);)Hs();return $s(e,Vs)},cl=function(e,t){return Gs(function(e,t){var n=-1,r=44;do{switch(Us(r)){case 0:38===r&&12===Fs()&&(t[n]=1),e[n]+=ll(Vs-1,t,n);break;case 2:e[n]+=qs(r);break;case 4:if(44===r){e[++n]=58===Fs()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ws(r)}}while(r=Hs());return e}(Js(e),t))},ul=new WeakMap,dl=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ul.get(n))&&!r){ul.set(e,!0);for(var o=[],i=cl(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},pl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function hl(e,t){switch(function(e,t){return 45^As(e,0)?(((t<<2^As(e,0))<<2^As(e,1))<<2^As(e,2))<<2^As(e,3):0}(e,t)){case 5103:return gs+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gs+e+fs+e+ms+e+e;case 6828:case 4268:return gs+e+ms+e+e;case 6165:return gs+e+ms+"flex-"+e+e;case 5187:return gs+e+Ps(e,/(\w+).+(:[^]+)/,gs+"box-$1$2"+ms+"flex-$1$2")+e;case 5443:return gs+e+ms+"flex-item-"+Ps(e,/flex-|-self/,"")+e;case 4675:return gs+e+ms+"flex-line-pack"+Ps(e,/align-content|flex-|-self/,"")+e;case 5548:return gs+e+ms+Ps(e,"shrink","negative")+e;case 5292:return gs+e+ms+Ps(e,"basis","preferred-size")+e;case 6060:return gs+"box-"+Ps(e,"-grow","")+gs+e+ms+Ps(e,"grow","positive")+e;case 4554:return gs+Ps(e,/([^-])(transform)/g,"$1"+gs+"$2")+e;case 6187:return Ps(Ps(Ps(e,/(zoom-|grab)/,gs+"$1"),/(image-set)/,gs+"$1"),e,"")+e;case 5495:case 3959:return Ps(e,/(image-set\([^]*)/,gs+"$1$`$1");case 4968:return Ps(Ps(e,/(.+:)(flex-)?(.*)/,gs+"box-pack:$3"+ms+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gs+e+e;case 4095:case 3583:case 4068:case 2532:return Ps(e,/(.+)-inline(.+)/,gs+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_s(e)-1-t>6)switch(As(e,t+1)){case 109:if(45!==As(e,t+4))break;case 102:return Ps(e,/(.+:)(.+)-([^]+)/,"$1"+gs+"$2-$3$1"+fs+(108==As(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Es(e,"stretch")?hl(Ps(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==As(e,t+1))break;case 6444:switch(As(e,_s(e)-3-(~Es(e,"!important")&&10))){case 107:return Ps(e,":",":"+gs)+e;case 101:return Ps(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gs+(45===As(e,14)?"inline-":"")+"box$3$1"+gs+"$2$3$1"+ms+"$2box$3")+e}break;case 5936:switch(As(e,t+11)){case 114:return gs+e+ms+Ps(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gs+e+ms+Ps(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gs+e+ms+Ps(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gs+e+ms+e+e}return e}var ml,fl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case bs:e.return=hl(e.value,e.length);break;case xs:return il([zs(e,{value:Ps(e.value,"@","@"+gs)})],r);case vs:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return il([zs(e,{props:[Ps(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return il([zs(e,{props:[Ps(t,/:(plac\w+)/,":"+gs+"input-$1")]}),zs(e,{props:[Ps(t,/:(plac\w+)/,":-moz-$1")]}),zs(e,{props:[Ps(t,/:(plac\w+)/,ms+"input-$1")]})],r)}return""})}}],gl=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||fl,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,p=[al,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[dl,pl].concat(i,p),u=Ts(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,il(el(e?e+"{"+t.styles+"}":t.styles),h),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new hs({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return m.sheet.hydrate(s),m},yl={exports:{}},vl={};var bl,xl={};
24
+ var s=function(){function e(){}return e.generate=function(){var t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0,o=4294967295*Math.random()|0;return e.lut[255&t]+e.lut[t>>8&255]+e.lut[t>>16&255]+e.lut[t>>24&255]+"-"+e.lut[255&n]+e.lut[n>>8&255]+"-"+e.lut[n>>16&15|64]+e.lut[n>>24&255]+"-"+e.lut[63&r|128]+e.lut[r>>8&255]+"-"+e.lut[r>>16&255]+e.lut[r>>24&255]+e.lut[255&o]+e.lut[o>>8&255]+e.lut[o>>16&255]+e.lut[o>>24&255]},e.initialize=function(){for(var t=0;t<256;t++)e.lut[t]=(t<16?"0":"")+t.toString(16)},e.lut=[],e}();e.UUID=s,s.initialize()}(zn);var Ln,Hn={};Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.debounce=Hn.addCancelSelectActionEventHandler=Hn.clearElementChildren=Hn.getScrollY=Hn.getScrollX=Hn.getFitStatus=Hn.truncate=Hn.truncateText=Hn.stringToCssColor=Hn.parseEnum=Hn.getEnumValueByName=Hn.parseBool=Hn.parseNumber=Hn.parseString=Hn.appendChild=Hn.generateUniqueId=Hn.isMobileOS=Hn.isInternetExplorer=void 0;var Fn=Rn,Wn=zn;function $n(e,t){for(var n in e){var r=parseInt(n,10);if(r>=0){var o=e[n];if(o&&"string"==typeof o&&o.toLowerCase()===t.toLowerCase())return r}}}function Un(e,t,n,r,o){var i=function(){return t-e.scrollHeight>=-1};if(!i()){for(var a=function(e){var t=[],n=Gn(e,-1);for(;n<e.length;)" "===e[n]&&t.push(n),n=Gn(e,n);return t}(n),s=0,l=a.length,c=0;s<l;){var u=Math.floor((s+l)/2);r(n,a[u]),i()?(c=a[u],s=u+1):l=u}if(r(n,c),o&&t-e.scrollHeight>=o-1){for(var d=Gn(n,c);d<n.length&&(r(n,d),i());)c=d,d=Gn(n,d);r(n,c)}}}Hn.isInternetExplorer=function(){return void 0!==window.document.documentMode},Hn.isMobileOS=function(){var e=window.navigator.userAgent;return!!e.match(/Android/i)||!!e.match(/iPad/i)||!!e.match(/iPhone/i)},Hn.generateUniqueId=function(){return"__ac-"+Wn.UUID.generate()},Hn.appendChild=function(e,t){t&&e.appendChild(t)},Hn.parseString=function(e,t){return"string"==typeof e?e:t},Hn.parseNumber=function(e,t){return"number"==typeof e?e:t},Hn.parseBool=function(e,t){if("boolean"==typeof e)return e;if("string"==typeof e)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return t}return t},Hn.getEnumValueByName=$n,Hn.parseEnum=function(e,t,n){if(!t)return n;var r=$n(e,t);return void 0!==r?r:n},Hn.stringToCssColor=function(e){if(e){var t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){var n=parseInt(t[1],16)/255;return"rgba("+parseInt(t[2],16)+","+parseInt(t[3],16)+","+parseInt(t[4],16)+","+n+")"}}return e},Hn.truncateText=function(e,t,n){Un(e,t,e.innerText,function(t,n){e.innerText=t.substring(0,n)+"..."},n)};var Jn="undefined"==typeof window||null===(Ln=window.trustedTypes)||void 0===Ln?void 0:Ln.createPolicy("adaptivecards#deprecatedExportedFunctionPolicy",{createHTML:function(e){return e}});function Gn(e,t){for(t+=1;t<e.length&&"<"===e[t];)for(;t<e.length&&">"!==e[t++];);return t}Hn.truncate=function(e,t,n){Un(e,t,e.innerHTML,function(t,n){var r,o=t.substring(0,n)+"...",i=null!==(r=null==Jn?void 0:Jn.createHTML(o))&&void 0!==r?r:o;e.innerHTML=i},n)},Hn.getFitStatus=function(e,t){var n=e.offsetTop;return n+e.clientHeight<=t?Fn.ContainerFitStatus.FullyInContainer:n<t?Fn.ContainerFitStatus.Overflowing:Fn.ContainerFitStatus.FullyOutOfContainer},Hn.getScrollX=function(){return window.pageXOffset},Hn.getScrollY=function(){return window.pageYOffset},Hn.clearElementChildren=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},Hn.addCancelSelectActionEventHandler=function(e){e.onclick=function(e){e.preventDefault(),e.cancelBubble=!0}},Hn.debounce=function(e,t){var n;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n&&clearTimeout(n),n=setTimeout(function(){e.apply(void 0,r)},t)}};var qn={},Xn={},Yn={},Zn={};Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.Strings=void 0;var Qn=function(){function e(){}return e.errors={unknownElementType:function(e){return'Unknown element type "'.concat(e,'". Fallback will be used if present.')},unknownActionType:function(e){return'Unknown action type "'.concat(e,'". Fallback will be used if present.')},elementTypeNotAllowed:function(e){return'Element type "'.concat(e,'" is not allowed in this context.')},actionTypeNotAllowed:function(e){return'Action type "'.concat(e,'" is not allowed in this context.')},invalidPropertyValue:function(e,t){return'Invalid value "'.concat(e,'" for property "').concat(t,'".')},showCardMustHaveCard:function(){return'"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.'},invalidColumnWidth:function(e){return'Invalid column width "'.concat(e,'" - defaulting to "auto".')},invalidCardVersion:function(e){return'Invalid card version. Defaulting to "'.concat(e,'".')},invalidVersionString:function(e){return'Invalid version string "'.concat(e,'".')},propertyValueNotSupported:function(e,t,n,r){return'Value "'.concat(e,'" for property "').concat(t,'" is supported in version ').concat(n,", but you are using version ").concat(r,".")},propertyNotSupported:function(e,t,n){return'Property "'.concat(e,'" is supported in version ').concat(t,", but you are using version ").concat(n,".")},indexOutOfRange:function(e){return"Index out of range (".concat(e,").")},elementCannotBeUsedAsInline:function(){return"RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline."},inlineAlreadyParented:function(){return"RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock."},interactivityNotAllowed:function(){return"Interactivity is not allowed."},inputsMustHaveUniqueId:function(){return"All inputs must have a unique Id."},choiceSetMustHaveAtLeastOneChoice:function(){return"An Input.ChoiceSet must have at least one choice defined."},choiceSetChoicesMustHaveTitleAndValue:function(){return"All choices in an Input.ChoiceSet must have their title and value properties set."},propertyMustBeSet:function(e){return'Property "'.concat(e,'" must be set.')},actionHttpHeadersMustHaveNameAndValue:function(){return"All headers of an Action.Http must have their name and value properties set."},tooManyActions:function(e){return"Maximum number of actions exceeded (".concat(e,").")},tooLittleTimeDelay:function(e){return"Autoplay Delay is too short (".concat(e,").")},tooManyCarouselPages:function(e){return"Maximum number of Carousel pages exceeded (".concat(e,").")},invalidInitialPageIndex:function(e){return"InitialPage for carousel is invalid (".concat(e,").")},columnAlreadyBelongsToAnotherSet:function(){return"This column already belongs to another ColumnSet."},invalidCardType:function(){return'Invalid or missing card type. Make sure the card\'s type property is set to "AdaptiveCard".'},unsupportedCardVersion:function(e,t){return"The specified card version (".concat(e,") is not supported or still in preview. The latest released card version is ").concat(t,".")},duplicateId:function(e){return'Duplicate Id "'.concat(e,'".')},markdownProcessingNotEnabled:function(){return"Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown"},processMarkdownEventRemoved:function(){return"The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead."},elementAlreadyParented:function(){return"The element already belongs to another container."},actionAlreadyParented:function(){return"The action already belongs to another element."},elementTypeNotStandalone:function(e){return"Elements of type ".concat(e," cannot be used as standalone elements.")},invalidInputLabelWidth:function(){return"Invalid input label width. Defaulting to label width from host config."}},e.magicCodeInputCard={tryAgain:function(){return"That didn't work... let's try again."},pleaseLogin:function(){return'Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"'},enterMagicCode:function(){return"Enter magic code"},pleaseEnterMagicCodeYouReceived:function(){return"Please enter the magic code you received."},submit:function(){return"Submit"},cancel:function(){return"Cancel"},somethingWentWrong:function(){return"Something went wrong. This action can't be handled."},authenticationFailed:function(){return"Authentication failed."}},e.runtime={automaticRefreshPaused:function(){return"Automatic refresh paused."},clckToRestartAutomaticRefresh:function(){return"Click to restart."},refreshThisCard:function(){return"Refresh this card"}},e.hints={dontUseWeightedAndStrecthedColumnsInSameSet:function(){return"It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space."}},e.defaults={inlineActionTitle:function(){return"Inline Action"},overflowButtonText:function(){return"..."},overflowButtonTooltip:function(){return"More options"},emptyElementText:function(e){return"Empty ".concat(e)},mediaPlayerAriaLabel:function(){return"Media content"},mediaPlayerPlayMedia:function(){return"Play media"},youTubeVideoPlayer:function(){return"YouTube video player"},vimeoVideoPlayer:function(){return"Vimeo video player"},dailymotionVideoPlayer:function(){return"Dailymotion video player"},carouselNavigationPreviousTooltip:function(){return"Previous carousel page"},carouselNavigationNextTooltip:function(){return"Next carousel page"}},e}();Zn.Strings=Qn;var Kn=Vn&&Vn.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.SerializableObject=Yn.property=Yn.SerializableObjectSchema=Yn.CustomProperty=Yn.SerializableObjectCollectionProperty=Yn.SerializableObjectProperty=Yn.EnumProperty=Yn.ValueSetProperty=Yn.StringArrayProperty=Yn.PixelSizeProperty=Yn.NumProperty=Yn.BoolProperty=Yn.StringProperty=Yn.PropertyDefinition=Yn.BaseSerializationContext=Yn.isVersionLessOrEqual=Yn.Versions=Yn.Version=void 0;var er=zn,tr=Hn,nr=Rn,rr=Zn,or=function(){function e(e,t,n){void 0===e&&(e=1),void 0===t&&(t=1),this._isValid=!0,this._major=e,this._minor=t,this._label=n}return e.parse=function(t,n){if(t){var r=new e;r._versionString=t;var o=/(\d+).(\d+)/gi.exec(t);return null!=o&&3===o.length?(r._major=parseInt(o[1]),r._minor=parseInt(o[2])):r._isValid=!1,r._isValid||n.logParseEvent(void 0,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidVersionString(r._versionString)),r}},e.prototype.toString=function(){return this._isValid?this._major+"."+this._minor:this._versionString},e.prototype.toJSON=function(){return this.toString()},e.prototype.compareTo=function(e){if(!this.isValid||!e.isValid)throw new Error("Cannot compare invalid version.");return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:0},Object.defineProperty(e.prototype,"label",{get:function(){return this._label?this._label:this.toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"major",{get:function(){return this._major},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minor",{get:function(){return this._minor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValid",{get:function(){return this._isValid},enumerable:!1,configurable:!0}),e}();Yn.Version=or;var ir=function(){function e(){}return e.getAllDeclaredVersions=function(){var t=e,n=[];for(var r in t)if(r.match(/^v[0-9_]*$/))try{var o=t[r];o instanceof or&&n.push(o)}catch(i){}return n.sort(function(e,t){return e.compareTo(t)})},e.v1_0=new or(1,0),e.v1_1=new or(1,1),e.v1_2=new or(1,2),e.v1_3=new or(1,3),e.v1_4=new or(1,4),e.v1_5=new or(1,5),e.v1_6=new or(1,6,"1.6 Preview"),e.latest=e.v1_5,e}();Yn.Versions=ir,Yn.isVersionLessOrEqual=function(e,t){return!(e instanceof or)||(!(t instanceof or)||t.compareTo(e)>=0)};var ar=function(){function e(e){void 0===e&&(e=ir.latest),this._validationEvents=[],this.targetVersion=e}return e.prototype.isTemplateString=function(e){return"string"==typeof e&&e.startsWith("${")},e.prototype.tryDeleteValue=function(e,t){er.GlobalSettings.enableFullJsonRoundTrip||delete e[t]},e.prototype.tryDeleteDefaultValue=function(e,t){er.GlobalSettings.enableFullJsonRoundTrip&&this.isTemplateString(e[t])||delete e[t]},e.prototype.serializeValue=function(e,t,n,r,o){void 0===r&&(r=void 0),void 0===o&&(o=!1),null==n?er.GlobalSettings.enableFullJsonRoundTrip&&!o||delete e[t]:n===r?er.GlobalSettings.enableFullJsonRoundTrip&&!o&&this.isTemplateString(e[t])||delete e[t]:e[t]=n},e.prototype.serializeString=function(e,t,n,r){null==n?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeBool=function(e,t,n,r){null==n?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeNumber=function(e,t,n,r){null==n||isNaN(n)?this.tryDeleteValue(e,t):n===r?this.tryDeleteDefaultValue(e,t):e[t]=n},e.prototype.serializeEnum=function(e,t,n,r,o){void 0===o&&(o=void 0),null==r?this.tryDeleteValue(t,n):r===o?this.tryDeleteDefaultValue(t,n):t[n]=e[r]},e.prototype.serializeArray=function(e,t,n){var r=[];if(n)for(var o=0,i=n;o<i.length;o++){var a=i[o],s=void 0;void 0!==(s=a instanceof xr?a.toJSON(this):a.toJSON?a.toJSON():a)&&r.push(s)}0===r.length?e.hasOwnProperty(t)&&Array.isArray(e[t])&&delete e[t]:this.serializeValue(e,t,r)},e.prototype.clearEvents=function(){this._validationEvents=[]},e.prototype.logEvent=function(e,t,n,r){this._validationEvents.push({source:e,phase:t,event:n,message:r})},e.prototype.logParseEvent=function(e,t,n){this.logEvent(e,nr.ValidationPhase.Parse,t,n)},e.prototype.getEventAt=function(e){return this._validationEvents[e]},Object.defineProperty(e.prototype,"eventCount",{get:function(){return this._validationEvents.length},enumerable:!1,configurable:!0}),e}();Yn.BaseSerializationContext=ar;var sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kn(t,e),t}(ar),lr=function(){function e(t,n,r,o){this.targetVersion=t,this.name=n,this.defaultValue=r,this.onGetInitialValue=o,this.isSerializationEnabled=!0,this.sequentialNumber=e._sequentialNumber,e._sequentialNumber++}return e.prototype.getInternalName=function(){return this.name},e.prototype.parse=function(e,t,n){return t[this.name]},e.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n,this.defaultValue)},e._sequentialNumber=0,e}();Yn.PropertyDefinition=lr;var cr=function(e){function t(t,n,r,o,i,a){void 0===r&&(r=!0);var s=e.call(this,t,n,i,a)||this;return s.targetVersion=t,s.name=n,s.treatEmptyAsUndefined=r,s.regEx=o,s.defaultValue=i,s.onGetInitialValue=a,s}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=tr.parseString(t[this.name],this.defaultValue);if(!(void 0===r||""===r&&this.treatEmptyAsUndefined)&&void 0!==this.regEx&&!this.regEx.exec(r))return void n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(r,this.name));return r},t.prototype.toJSON=function(e,t,n,r){r.serializeString(t,this.name,""===n&&this.treatEmptyAsUndefined?void 0:n,this.defaultValue)},t}(lr);Yn.StringProperty=cr;var ur=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r,o)||this;return i.targetVersion=t,i.name=n,i.defaultValue=r,i.onGetInitialValue=o,i}return Kn(t,e),t.prototype.parse=function(e,t,n){return tr.parseBool(t[this.name],this.defaultValue)},t.prototype.toJSON=function(e,t,n,r){r.serializeBool(t,this.name,n,this.defaultValue)},t}(lr);Yn.BoolProperty=ur;var dr=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r,o)||this;return i.targetVersion=t,i.name=n,i.defaultValue=r,i.onGetInitialValue=o,i}return Kn(t,e),t.prototype.parse=function(e,t,n){return tr.parseNumber(t[this.name],this.defaultValue)},t.prototype.toJSON=function(e,t,n,r){r.serializeNumber(t,this.name,n,this.defaultValue)},t}(lr);Yn.NumProperty=dr;var pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=void 0,o=t[this.name];if("string"==typeof o){var i=!1;try{var a=er.SizeAndUnit.parse(o,!0);a.unit===nr.SizeUnit.Pixel&&(r=a.physicalSize,i=!0)}catch(s){}i||n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(t[this.name],this.name))}return r},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,"number"!=typeof n||isNaN(n)?void 0:n+"px")},t}(lr);Yn.PixelSizeProperty=pr;var hr=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r,o)||this;return i.targetVersion=t,i.name=n,i.defaultValue=r,i.onGetInitialValue=o,i}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=t[this.name];if(void 0===r||!Array.isArray(r))return this.defaultValue;for(var o=[],i=0,a=r;i<a.length;i++){var s=a[i];"string"==typeof s?o.push(s):n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,'Invalid array value "'.concat(JSON.stringify(s),'" of type "').concat(typeof s,'" ignored for "').concat(this.name,'".'))}return o},t.prototype.toJSON=function(e,t,n,r){r.serializeArray(t,this.name,n)},t}(lr);Yn.StringArrayProperty=hr;var mr=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,o,i)||this;return a.targetVersion=t,a.name=n,a.values=r,a.defaultValue=o,a.onGetInitialValue=i,a}return Kn(t,e),t.prototype.isValidValue=function(e,t){for(var n=0,r=this.values;n<r.length;n++){var o=r[n];if(e.toLowerCase()===o.value.toLowerCase())return(o.targetVersion?o.targetVersion:this.targetVersion).compareTo(t.targetVersion)<=0}return!1},t.prototype.parse=function(e,t,n){var r=t[this.name];if(void 0===r)return this.defaultValue;if("string"==typeof r)for(var o=0,i=this.values;o<i.length;o++){var a=i[o];if(r.toLowerCase()===a.value.toLowerCase()){var s=a.targetVersion?a.targetVersion:this.targetVersion;return s.compareTo(n.targetVersion)<=0?a.value:(n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.propertyValueNotSupported(r,this.name,s.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(r,this.name)),this.defaultValue},t.prototype.toJSON=function(e,t,n,r){var o=!1;if(void 0!==n){o=!0;for(var i=0,a=this.values;i<a.length;i++){var s=a[i];if(s.value===n){var l=s.targetVersion?s.targetVersion:this.targetVersion;if(l.compareTo(r.targetVersion)<=0){o=!1;break}r.logEvent(e,nr.ValidationPhase.ToJSON,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.propertyValueNotSupported(n,this.name,l.toString(),r.targetVersion.toString()))}}}o||r.serializeValue(t,this.name,n,this.defaultValue,!0)},t}(lr);Yn.ValueSetProperty=mr;var fr=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,o,a)||this;if(s.targetVersion=t,s.name=n,s.enumType=r,s.defaultValue=o,s.onGetInitialValue=a,s._values=[],i)s._values=i;else for(var l in r){var c=parseInt(l,10);c>=0&&s._values.push({value:c})}return s}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=t[this.name];if("string"!=typeof r)return this.defaultValue;var o=tr.getEnumValueByName(this.enumType,r);if(void 0!==o)for(var i=0,a=this.values;i<a.length;i++){var s=a[i];if(s.value===o){var l=s.targetVersion?s.targetVersion:this.targetVersion;return l.compareTo(n.targetVersion)<=0?o:(n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.propertyValueNotSupported(r,this.name,l.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(r,this.name)),this.defaultValue},t.prototype.toJSON=function(e,t,n,r){var o=!1;if(void 0!==n){o=!0;for(var i=0,a=this.values;i<a.length;i++){var s=a[i];if(s.value===n){if((s.targetVersion?s.targetVersion:this.targetVersion).compareTo(r.targetVersion)<=0){o=!1;break}r.logEvent(e,nr.ValidationPhase.ToJSON,nr.ValidationEvent.InvalidPropertyValue,rr.Strings.errors.invalidPropertyValue(n,this.name))}}}o||r.serializeEnum(this.enumType,t,this.name,n,this.defaultValue)},Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!1,configurable:!0}),t}(lr);Yn.EnumProperty=fr;var gr=function(e){function t(t,n,r,o,i){void 0===o&&(o=!1);var a=e.call(this,t,n,i,function(e){return a.nullable?void 0:new a.objectType})||this;return a.targetVersion=t,a.name=n,a.objectType=r,a.nullable=o,a}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=t[this.name];if(void 0===r)return this.onGetInitialValue?this.onGetInitialValue(e):this.defaultValue;var o=new this.objectType;return o.parse(r,n),o},t.prototype.toJSON=function(e,t,n,r){var o=void 0;void 0===n||n.hasAllDefaultValues()||(o=n.toJSON(r)),"object"==typeof o&&0===Object.keys(o).length&&(o=void 0),r.serializeValue(t,this.name,o,this.defaultValue,!0)},t}(lr);Yn.SerializableObjectProperty=gr;var yr=function(e){function t(t,n,r,o){var i=e.call(this,t,n,void 0,function(e){return[]})||this;return i.targetVersion=t,i.name=n,i.objectType=r,i.onItemAdded=o,i}return Kn(t,e),t.prototype.parse=function(e,t,n){var r=[],o=t[this.name];if(Array.isArray(o))for(var i=0,a=o;i<a.length;i++){var s=a[i],l=new this.objectType;l.parse(s,n),r.push(l),this.onItemAdded&&this.onItemAdded(e,l)}return r.length>0?r:this.onGetInitialValue?this.onGetInitialValue(e):void 0},t.prototype.toJSON=function(e,t,n,r){r.serializeArray(t,this.name,n)},t}(lr);Yn.SerializableObjectCollectionProperty=yr;var vr=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,i,a)||this;if(s.targetVersion=t,s.name=n,s.onParse=r,s.onToJSON=o,s.defaultValue=i,s.onGetInitialValue=a,!s.onParse)throw new Error("CustomPropertyDefinition instances must have an onParse handler.");if(!s.onToJSON)throw new Error("CustomPropertyDefinition instances must have an onToJSON handler.");return s}return Kn(t,e),t.prototype.parse=function(e,t,n){return this.onParse(e,this,t,n)},t.prototype.toJSON=function(e,t,n,r){this.onToJSON(e,this,t,n,r)},t}(lr);Yn.CustomProperty=vr;var br=function(){function e(){this._properties=[]}return e.prototype.indexOf=function(e){for(var t=0;t<this._properties.length;t++)if(this._properties[t]===e)return t;return-1},e.prototype.add=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var o=r[n];-1===this.indexOf(o)&&this._properties.push(o)}},e.prototype.remove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)for(var o=r[n];;){var i=this.indexOf(o);if(!(i>=0))break;this._properties.splice(i,1)}},e.prototype.getItemAt=function(e){return this._properties[e]},e.prototype.getCount=function(){return this._properties.length},e}();Yn.SerializableObjectSchema=br,Yn.property=function(e){return function(t,n){var r=Object.getOwnPropertyDescriptor(t,n)||{};r.get||r.set||(r.get=function(){return this.getValue(e)},r.set=function(t){this.setValue(e,t)},Object.defineProperty(t,n,r))}};var xr=function(){function e(){this._propertyBag={},this._rawProperties={},this.maxVersion=e.defaultMaxVersion;for(var t=this.getSchema(),n=0;n<t.getCount();n++){var r=t.getItemAt(n);r.onGetInitialValue&&this.setValue(r,r.onGetInitialValue(this))}}return e.prototype.getDefaultSerializationContext=function(){return new sr},e.prototype.populateSchema=function(t){var n=this.constructor,r=[];for(var o in n)try{var i=n[o];i instanceof lr&&r.push(i)}catch(s){}if(r.length>0){var a=r.sort(function(e,t){return e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber<t.sequentialNumber?-1:0});t.add.apply(t,a)}e.onRegisterCustomProperties&&e.onRegisterCustomProperties(this,t)},e.prototype.getValue=function(e){return this._propertyBag.hasOwnProperty(e.getInternalName())?this._propertyBag[e.getInternalName()]:e.defaultValue},e.prototype.setValue=function(e,t){null==t?delete this._propertyBag[e.getInternalName()]:this._propertyBag[e.getInternalName()]=t},e.prototype.internalParse=function(e,t){if(this._propertyBag={},this._rawProperties=er.GlobalSettings.enableFullJsonRoundTrip&&e||{},e)for(var n=this.getSchema(),r=0;r<n.getCount();r++){var o=n.getItemAt(r);if(o.isSerializationEnabled){var i=o.onGetInitialValue?o.onGetInitialValue(this):void 0;e.hasOwnProperty(o.name)&&(o.targetVersion.compareTo(t.targetVersion)<=0?i=o.parse(this,e,t):t.logParseEvent(this,nr.ValidationEvent.UnsupportedProperty,rr.Strings.errors.propertyNotSupported(o.name,o.targetVersion.toString(),t.targetVersion.toString()))),this.setValue(o,i)}}else this.resetDefaultValues()},e.prototype.internalToJSON=function(e,t){for(var n=this.getSchema(),r=[],o=0;o<n.getCount();o++){var i=n.getItemAt(o);i.isSerializationEnabled&&i.targetVersion.compareTo(t.targetVersion)<=0&&-1===r.indexOf(i.name)&&(i.toJSON(this,e,this.getValue(i),t),r.push(i.name))}},e.prototype.shouldSerialize=function(e){return!0},e.prototype.parse=function(e,t){this.internalParse(e,t||new sr)},e.prototype.toJSON=function(e){var t;if(e&&e instanceof ar?t=e:(t=this.getDefaultSerializationContext()).toJSONOriginalParam=e,this.shouldSerialize(t)){var n=void 0;return n=er.GlobalSettings.enableFullJsonRoundTrip&&this._rawProperties&&"object"==typeof this._rawProperties?this._rawProperties:{},this.internalToJSON(n,t),n}},e.prototype.hasDefaultValue=function(e){return this.getValue(e)===e.defaultValue},e.prototype.hasAllDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);if(!this.hasDefaultValue(n))return!1}return!0},e.prototype.resetDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);this.setValue(n,n.defaultValue)}},e.prototype.setCustomProperty=function(e,t){"string"==typeof t&&!t||null==t?delete this._rawProperties[e]:this._rawProperties[e]=t},e.prototype.getCustomProperty=function(e){return this._rawProperties[e]},e.prototype.getSchema=function(){var t=e._schemaCache[this.getSchemaKey()];return t||(t=new br,this.populateSchema(t),e._schemaCache[this.getSchemaKey()]=t),t},e.defaultMaxVersion=ir.latest,e._schemaCache={},e}();Yn.SerializableObject=xr;var Cr=Vn&&Vn.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.HostCapabilities=void 0;var wr=Yn,Sr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._capabilities={},t}return Cr(t,e),t.prototype.getSchemaKey=function(){return"HostCapabilities"},t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),t)for(var r in t){var o=t[r];if("string"==typeof o)if("*"===o)this.addCapability(r,"*");else{var i=wr.Version.parse(o,n);(null==i?void 0:i.isValid)&&this.addCapability(r,i)}}},t.prototype.internalToJSON=function(t,n){for(var r in e.prototype.internalToJSON.call(this,t,n),this._capabilities)t[r]=this._capabilities[r]},t.prototype.addCapability=function(e,t){this._capabilities[e]=t},t.prototype.removeCapability=function(e){delete this._capabilities[e]},t.prototype.clear=function(){this._capabilities={}},t.prototype.hasCapability=function(e,t){return!!this._capabilities.hasOwnProperty(e)&&("*"===t||"*"===this._capabilities[e]||t.compareTo(this._capabilities[e])<=0)},t.prototype.areAllMet=function(e){for(var t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0},t}(wr.SerializableObject);Xn.HostCapabilities=Sr;var kr=Vn&&Vn.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(qn,"__esModule",{value:!0}),qn.defaultHostConfig=qn.HostConfig=qn.CarouselConfig=qn.FontTypeSet=qn.FontTypeDefinition=qn.ContainerStyleSet=qn.ContainerStyleDefinition=qn.ColorSetDefinition=qn.ActionsConfig=qn.ShowCardActionConfig=qn.FactSetConfig=qn.FactTitleDefinition=qn.FactTextDefinition=qn.InputConfig=qn.InputLabelConfig=qn.RequiredInputLabelTextDefinition=qn.TextBlockConfig=qn.TextStyleSet=qn.TextStyleDefinition=qn.BaseTextDefinition=qn.TableConfig=qn.MediaConfig=qn.ImageSetConfig=qn.AdaptiveCardConfig=qn.TextColorDefinition=qn.ColorDefinition=void 0;var Pr=Rn,Er=Hn,Ar=zn,Ir=Xn;function _r(e,t,n){if("string"==typeof t){var r=Er.parseEnum(e,t,n);return void 0!==r?r:n}return"number"==typeof t?t:n}var Tr=function(){function e(e,t){this.default="#000000",this.subtle="#666666",e&&(this.default=e),t&&(this.subtle=t)}return e.prototype.parse=function(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)},e}();qn.ColorDefinition=Tr;var jr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.highlightColors=new Tr("#22000000","#11000000"),t}return kr(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&this.highlightColors.parse(t.highlightColors)},t}(Tr);qn.TextColorDefinition=jr;var Mr=function(){return function(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)}}();qn.AdaptiveCardConfig=Mr;var Nr=function(){function e(e){this.imageSize=Pr.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=null!=e.imageSize?e.imageSize:this.imageSize,this.maxImageHeight=Er.parseNumber(e.maxImageHeight,100))}return e.prototype.toJSON=function(){return{imageSize:Pr.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},e}();qn.ImageSetConfig=Nr;var Dr=function(){function e(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}return e.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},e}();qn.MediaConfig=Dr;var Or=function(){function e(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&"number"==typeof e.cellSpacing?e.cellSpacing:this.cellSpacing)}return e.prototype.toJSON=function(){return{cellSpacing:this.cellSpacing}},e}();qn.TableConfig=Or;var Vr=function(){function e(e){this.size=Pr.TextSize.Default,this.color=Pr.TextColor.Default,this.isSubtle=!1,this.weight=Pr.TextWeight.Default,this.parse(e)}return e.prototype.parse=function(e){e&&(this.size=_r(Pr.TextSize,e.size,this.size),this.color=_r(Pr.TextColor,e.color,this.color),this.isSubtle=void 0!==e.isSubtle&&"boolean"==typeof e.isSubtle?e.isSubtle:this.isSubtle,this.weight=_r(Pr.TextWeight,e.weight,this.getDefaultWeight()))},e.prototype.getDefaultWeight=function(){return Pr.TextWeight.Default},e.prototype.toJSON=function(){return{size:Pr.TextSize[this.size],color:Pr.TextColor[this.color],isSubtle:this.isSubtle,weight:Pr.TextWeight[this.weight]}},e}();qn.BaseTextDefinition=Vr;var Br=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fontType=Pr.FontType.Default,t}return kr(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.fontType=_r(Pr.FontType,t.fontType,this.fontType))},t}(Vr);qn.TextStyleDefinition=Br;var Rr=function(){function e(e){this.default=new Br,this.heading=new Br({size:"Large",weight:"Bolder"}),this.columnHeader=new Br({weight:"Bolder"}),e&&(this.heading.parse(e.heading),this.columnHeader.parse(e.columnHeader))}return e.prototype.getStyleByName=function(e){switch(e.toLowerCase()){case"heading":return this.heading;case"columnHeader":return this.columnHeader;default:return this.default}},e}();qn.TextStyleSet=Rr;var zr=function(){return function(e){e&&(this.headingLevel=Er.parseNumber(e.headingLevel))}}();qn.TextBlockConfig=zr;var Lr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suffix=" *",t.suffixColor=Pr.TextColor.Attention,t}return kr(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.suffix=t.suffix||this.suffix,this.suffixColor=_r(Pr.TextColor,t.suffixColor,this.suffixColor))},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.suffix=this.suffix,t.suffixColor=Pr.TextColor[this.suffixColor],t},t}(Vr);qn.RequiredInputLabelTextDefinition=Lr;var Hr=function(){return function(e){this.inputSpacing=Pr.Spacing.Small,this.width=30,this.requiredInputs=new Lr,this.optionalInputs=new Vr,e&&(this.inputSpacing=_r(Pr.Spacing,e.inputSpacing,this.inputSpacing),this.requiredInputs=new Lr(e.requiredInputs),this.optionalInputs=new Vr(e.optionalInputs),this.width=null!=e.width?e.width:this.width)}}();qn.InputLabelConfig=Hr;var Fr=function(){return function(e){this.label=new Hr,this.errorMessage=new Vr({color:Pr.TextColor.Attention}),this.debounceTimeInMilliSeconds=0,this.allowRevealOnHoverStyle=!1,e&&(this.label=new Hr(e.label),this.errorMessage=new Vr(e.errorMessage),this.allowRevealOnHoverStyle=e.allowRevealOnHoverStyle||this.allowRevealOnHoverStyle,this.debounceTimeInMilliSeconds=e.debounceTimeInMilliSeconds)}}();qn.InputConfig=Fr;var Wr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!0,t}return kr(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.wrap=null!=t.wrap?t.wrap:this.wrap)},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.wrap=this.wrap,t},t}(Vr);qn.FactTextDefinition=Wr;var $r=function(e){function t(t){var n=e.call(this,t)||this;return n.maxWidth=150,n.weight=Pr.TextWeight.Bolder,t&&(n.maxWidth=null!=t.maxWidth?t.maxWidth:n.maxWidth,n.weight=_r(Pr.TextWeight,t.weight,Pr.TextWeight.Bolder)),n}return kr(t,e),t.prototype.getDefaultWeight=function(){return Pr.TextWeight.Bolder},t}(Wr);qn.FactTitleDefinition=$r;var Ur=function(){return function(e){this.title=new $r,this.value=new Wr,this.spacing=10,e&&(this.title=new $r(e.title),this.value=new Wr(e.value),this.spacing=e.spacing&&null!=e.spacing?e.spacing&&e.spacing:this.spacing)}}();qn.FactSetConfig=Ur;var Jr=function(){function e(e){this.actionMode=Pr.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=Pr.ContainerStyle.Emphasis,e&&(this.actionMode=_r(Pr.ShowCardActionMode,e.actionMode,Pr.ShowCardActionMode.Inline),this.inlineTopMargin=null!=e.inlineTopMargin?e.inlineTopMargin:this.inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:Pr.ContainerStyle.Emphasis)}return e.prototype.toJSON=function(){return{actionMode:Pr.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},e}();qn.ShowCardActionConfig=Jr;var Gr=function(){function e(e){if(this.maxActions=5,this.spacing=Pr.Spacing.Default,this.buttonSpacing=20,this.showCard=new Jr,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=Pr.Orientation.Horizontal,this.actionAlignment=Pr.ActionAlignment.Left,this.iconPlacement=Pr.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=16,e){this.maxActions=null!=e.maxActions?e.maxActions:this.maxActions,this.spacing=_r(Pr.Spacing,e.spacing&&e.spacing,Pr.Spacing.Default),this.buttonSpacing=null!=e.buttonSpacing?e.buttonSpacing:this.buttonSpacing,this.showCard=new Jr(e.showCard),this.preExpandSingleShowCardAction=Er.parseBool(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=_r(Pr.Orientation,e.actionsOrientation,Pr.Orientation.Horizontal),this.actionAlignment=_r(Pr.ActionAlignment,e.actionAlignment,Pr.ActionAlignment.Left),this.iconPlacement=_r(Pr.ActionIconPlacement,e.iconPlacement,Pr.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=null!=e.allowTitleToWrap?e.allowTitleToWrap:this.allowTitleToWrap;try{var t=Ar.SizeAndUnit.parse(e.iconSize);t.unit===Pr.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch(n){}}}return e.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:Pr.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:Pr.Orientation[this.actionsOrientation],actionAlignment:Pr.ActionAlignment[this.actionAlignment]}},e}();qn.ActionsConfig=Gr;var qr=function(){function e(e){this.default=new jr,this.dark=new jr,this.light=new jr,this.accent=new jr,this.good=new jr,this.warning=new jr,this.attention=new jr,this.parse(e)}return e.prototype.parseSingleColor=function(e,t){e&&this[t].parse(e[t])},e.prototype.parse=function(e){e&&(this.parseSingleColor(e,"default"),this.parseSingleColor(e,"dark"),this.parseSingleColor(e,"light"),this.parseSingleColor(e,"accent"),this.parseSingleColor(e,"good"),this.parseSingleColor(e,"warning"),this.parseSingleColor(e,"attention"))},e}();qn.ColorSetDefinition=qr;var Xr=function(){function e(e){this.foregroundColors=new qr({default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#E69500",subtle:"#DDE69500"},attention:{default:"#CC3300",subtle:"#DDCC3300"}}),this.parse(e)}return e.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor,this.borderColor=e.borderColor)},Object.defineProperty(e.prototype,"isBuiltIn",{get:function(){return!1},enumerable:!1,configurable:!0}),e}();qn.ContainerStyleDefinition=Xr;var Yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kr(t,e),Object.defineProperty(t.prototype,"isBuiltIn",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(Xr),Zr=function(){function e(e){if(this._allStyles={},this._allStyles[Pr.ContainerStyle.Default]=new Yr,this._allStyles[Pr.ContainerStyle.Emphasis]=new Yr,this._allStyles[Pr.ContainerStyle.Accent]=new Yr,this._allStyles[Pr.ContainerStyle.Good]=new Yr,this._allStyles[Pr.ContainerStyle.Attention]=new Yr,this._allStyles[Pr.ContainerStyle.Warning]=new Yr,e){this._allStyles[Pr.ContainerStyle.Default].parse(e[Pr.ContainerStyle.Default]),this._allStyles[Pr.ContainerStyle.Emphasis].parse(e[Pr.ContainerStyle.Emphasis]),this._allStyles[Pr.ContainerStyle.Accent].parse(e[Pr.ContainerStyle.Accent]),this._allStyles[Pr.ContainerStyle.Good].parse(e[Pr.ContainerStyle.Good]),this._allStyles[Pr.ContainerStyle.Attention].parse(e[Pr.ContainerStyle.Attention]),this._allStyles[Pr.ContainerStyle.Warning].parse(e[Pr.ContainerStyle.Warning]);var t=e.customStyles;if(t&&Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o){var i=o.name;i&&"string"==typeof i&&(this._allStyles.hasOwnProperty(i)?this._allStyles[i].parse(o.style):this._allStyles[i]=new Xr(o.style))}}}}return e.prototype.toJSON=function(){var e=this,t=[];Object.keys(this._allStyles).forEach(function(n){e._allStyles[n].isBuiltIn||t.push({name:n,style:e._allStyles[n]})});var n={default:this.default,emphasis:this.emphasis};return t.length>0&&(n.customStyles=t),n},e.prototype.getStyleByName=function(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[Pr.ContainerStyle.Default]},Object.defineProperty(e.prototype,"default",{get:function(){return this._allStyles[Pr.ContainerStyle.Default]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emphasis",{get:function(){return this._allStyles[Pr.ContainerStyle.Emphasis]},enumerable:!1,configurable:!0}),e}();qn.ContainerStyleSet=Zr;var Qr=function(){function e(e){this.fontFamily="Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif",this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},e&&(this.fontFamily=e)}return e.prototype.parse=function(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}},e.monospace=new e("'Courier New', Courier, monospace"),e}();qn.FontTypeDefinition=Qr;var Kr=function(){function e(e){this.default=new Qr,this.monospace=new Qr("'Courier New', Courier, monospace"),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}return e.prototype.getStyleDefinition=function(e){switch(e){case Pr.FontType.Monospace:return this.monospace;case Pr.FontType.Default:default:return this.default}},e}();qn.FontTypeSet=Kr;var eo=function(){function e(e){this.maxCarouselPages=10,this.minAutoplayDelay=5e3,e&&(this.maxCarouselPages=null!=e.maxCarouselPages?e.maxCarouselPages:this.maxCarouselPages,this.minAutoplayDelay=null!=e.minAutoplayDelay?e.minAutoplayDelay:this.minAutoplayDelay)}return e.prototype.toJSON=function(){return{maxCarouselPages:this.maxCarouselPages,minAutoplayDelay:this.minAutoplayDelay}},e}();qn.CarouselConfig=eo;var to=function(){function e(e){this.hostCapabilities=new Ir.HostCapabilities,this.choiceSetInputValueSeparator=",",this.supportsInteractivity=!0,this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:"#EEEEEE"},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new Zr,this.inputs=new Fr,this.actions=new Gr,this.adaptiveCard=new Mr,this.imageSet=new Nr,this.media=new Dr,this.factSet=new Ur,this.table=new Or,this.textStyles=new Rr,this.textBlock=new zr,this.carousel=new eo,this.alwaysAllowBleed=!1,e&&(("string"==typeof e||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&"string"==typeof e.choiceSetInputValueSeparator?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.supportsInteractivity=e&&"boolean"==typeof e.supportsInteractivity?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType=new Qr,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new Kr(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new Zr(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new Fr(e.inputs||this.inputs),this.actions=new Gr(e.actions||this.actions),this.adaptiveCard=new Mr(e.adaptiveCard||this.adaptiveCard),this.imageSet=new Nr(e.imageSet),this.factSet=new Ur(e.factSet),this.textStyles=new Rr(e.textStyles),this.textBlock=new zr(e.textBlock),this.carousel=new eo(e.carousel))}return e.prototype.getFontTypeDefinition=function(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e===Pr.FontType.Monospace?Qr.monospace:this._legacyFontType},e.prototype.getEffectiveSpacing=function(e){switch(e){case Pr.Spacing.Small:return this.spacing.small;case Pr.Spacing.Default:return this.spacing.default;case Pr.Spacing.Medium:return this.spacing.medium;case Pr.Spacing.Large:return this.spacing.large;case Pr.Spacing.ExtraLarge:return this.spacing.extraLarge;case Pr.Spacing.Padding:return this.spacing.padding;default:return 0}},e.prototype.paddingDefinitionToSpacingDefinition=function(e){return new Ar.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},e.prototype.makeCssClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push((this.cssClassNamePrefix?this.cssClassNamePrefix+"-":"")+i)}return n},e.prototype.makeCssClassName=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.makeCssClassNames.apply(this,e).join(" ");return n||""},Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._legacyFontType.fontFamily},set:function(e){this._legacyFontType.fontFamily=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSizes",{get:function(){return this._legacyFontType.fontSizes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeights",{get:function(){return this._legacyFontType.fontWeights},enumerable:!1,configurable:!0}),e}();qn.HostConfig=to,qn.defaultHostConfig=new to({supportsInteractivity:!0,spacing:{small:10,default:20,medium:30,large:40,extraLarge:50,padding:20},separator:{lineThickness:1,lineColor:"#EEEEEE"},fontTypes:{default:{fontFamily:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}},monospace:{fontFamily:"'Courier New', Courier, monospace",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}}},imageSizes:{small:40,medium:80,large:160},containerStyles:{default:{backgroundColor:"#FFFFFF",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},emphasis:{backgroundColor:"#08000000",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},accent:{backgroundColor:"#C7DEF9",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},good:{backgroundColor:"#CCFFCC",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},attention:{backgroundColor:"#FFC5B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},warning:{backgroundColor:"#FFE2B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}}},inputs:{label:{requiredInputs:{weight:Pr.TextWeight.Bolder,suffix:" *",suffixColor:Pr.TextColor.Attention},optionalInputs:{weight:Pr.TextWeight.Bolder}},errorMessage:{color:Pr.TextColor.Attention,weight:Pr.TextWeight.Bolder},debounceTimeInMilliSeconds:250},actions:{maxActions:5,spacing:Pr.Spacing.Default,buttonSpacing:10,showCard:{actionMode:Pr.ShowCardActionMode.Inline,inlineTopMargin:16},actionsOrientation:Pr.Orientation.Horizontal,actionAlignment:Pr.ActionAlignment.Left},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:Pr.Size.Medium,maxImageHeight:100},factSet:{title:{color:Pr.TextColor.Default,size:Pr.TextSize.Default,isSubtle:!1,weight:Pr.TextWeight.Bolder,wrap:!0,maxWidth:150},value:{color:Pr.TextColor.Default,size:Pr.TextSize.Default,isSubtle:!1,weight:Pr.TextWeight.Default,wrap:!0},spacing:10},carousel:{maxCarouselPages:10,minAutoplayDuration:5e3},textBlock:{headingLevel:2}});var no={},ro=Vn&&Vn.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(no,"__esModule",{value:!0}),no.formatText=void 0;var oo=function(){function e(e){this._regularExpression=e}return e.prototype.format=function(e,t){var n;if(t){for(var r=t;null!=(n=this._regularExpression.exec(t));)r=r.replace(n[0],this.internalFormat(e,n));return r}return t},e}(),io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ro(t,e),t.prototype.internalFormat=function(e,t){var n=new Date(Date.parse(t[1])),r=void 0!==t[2]?t[2].toLowerCase():"compact";return"compact"!==r?n.toLocaleDateString(e,{day:"numeric",weekday:r,month:r,year:"numeric"}):n.toLocaleDateString()},t}(oo),ao=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ro(t,e),t.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})},t}(oo);no.formatText=function(e,t){for(var n=t,r=0,o=[new io(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new ao(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)];r<o.length;r++){n=o[r].format(e,n)}return n};var so={},lo=Vn&&Vn.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),co=Vn&&Vn.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(so,"__esModule",{value:!0}),so.CardObject=so.ValidationResults=void 0;var uo=Rn,po=Zn,ho=zn,mo=Xn,fo=Yn,go=function(){function e(){this.allIds={},this.validationEvents=[]}return e.prototype.addFailure=function(e,t,n){this.validationEvents.push({phase:uo.ValidationPhase.Validation,source:e,event:t,message:n})},e}();so.ValidationResults=go;var yo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._shouldFallback=!1,t}return lo(t,e),t.prototype.getSchemaKey=function(){return this.getJsonTypeName()},Object.defineProperty(t.prototype,"requires",{get:function(){return this.getValue(t.requiresProperty)},enumerable:!1,configurable:!0}),t.prototype.contains=function(e){return!!this._renderedElement&&this._renderedElement.contains(e)},t.prototype.preProcessPropertyValue=function(e,t){var n=void 0===t?this.getValue(e):t;if(ho.GlobalSettings.allowPreProcessingPropertyValues){for(var r=this;r&&!r.onPreProcessPropertyValue;)r=r.parent;if(r&&r.onPreProcessPropertyValue)return r.onPreProcessPropertyValue(this,e,n)}return n},t.prototype.setParent=function(e){this._parent=e},t.prototype.setShouldFallback=function(e){this._shouldFallback=e},t.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},t.prototype.getRootObject=function(){for(var e=this;e.parent;)e=e.parent;return e},t.prototype.internalValidateProperties=function(e){this.id&&(e.allIds.hasOwnProperty(this.id)?(1===e.allIds[this.id]&&e.addFailure(this,uo.ValidationEvent.DuplicateId,po.Strings.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)},t.prototype.validateProperties=function(){var e=new go;return this.internalValidateProperties(e),e},t.prototype.findDOMNodeOwner=function(e){return this.contains(e)?this:void 0},t.prototype.releaseDOMResources=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),t.typeNameProperty=new fo.StringProperty(fo.Versions.v1_0,"type",void 0,void 0,void 0,function(e){return e.getJsonTypeName()}),t.idProperty=new fo.StringProperty(fo.Versions.v1_0,"id"),t.requiresProperty=new fo.SerializableObjectProperty(fo.Versions.v1_2,"requires",mo.HostCapabilities,!1,new mo.HostCapabilities),co([(0,fo.property)(t.idProperty)],t.prototype,"id",void 0),co([(0,fo.property)(t.requiresProperty)],t.prototype,"requires",null),t}(fo.SerializableObject);so.CardObject=yo;var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.GlobalRegistry=vo.CardObjectRegistry=void 0;var bo=Yn,xo=function(){function e(){this._items={}}return e.prototype.findByName=function(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0},e.prototype.clear=function(){this._items={}},e.prototype.copyTo=function(e){for(var t=0,n=Object.keys(this._items);t<n.length;t++){var r=n[t],o=this._items[r];e.register(o.typeName,o.objectType,o.schemaVersion)}},e.prototype.register=function(e,t,n){void 0===n&&(n=bo.Versions.v1_0);var r=this.findByName(e);void 0!==r?r.objectType=t:r={typeName:e,objectType:t,schemaVersion:n},this._items[e]=r},e.prototype.unregister=function(e){delete this._items[e]},e.prototype.createInstance=function(e,t){var n=this.findByName(e);return n&&n.schemaVersion.compareTo(t)<=0?new n.objectType:void 0},e.prototype.getItemCount=function(){return Object.keys(this._items).length},e.prototype.getItemAt=function(e){var t=this;return Object.keys(this._items).map(function(e){return t._items[e]})[e]},e}();vo.CardObjectRegistry=xo;var Co=function(){function e(){}return e.populateWithDefaultElements=function(t){t.clear(),e.defaultElements.copyTo(t)},e.populateWithDefaultActions=function(t){t.clear(),e.defaultActions.copyTo(t)},Object.defineProperty(e,"elements",{get:function(){return e._elements||(e._elements=new xo,e.populateWithDefaultElements(e._elements)),e._elements},enumerable:!1,configurable:!0}),Object.defineProperty(e,"actions",{get:function(){return e._actions||(e._actions=new xo,e.populateWithDefaultActions(e._actions)),e._actions},enumerable:!1,configurable:!0}),e.reset=function(){e._elements=void 0,e._actions=void 0},e.defaultElements=new xo,e.defaultActions=new xo,e}();vo.GlobalRegistry=Co;var wo={},So={},ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.Constants=void 0;var Po=function(){function e(){}return e.keys={tab:"Tab",enter:"Enter",escape:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",delete:"Delete"},e}();ko.Constants=Po,Object.defineProperty(So,"__esModule",{value:!0}),So.MenuItem=void 0;var Eo=qn,Ao=ko,Io=function(){function e(e,t){this._isEnabled=!0,this.key=e,this._value=t}return e.prototype.click=function(){this.isEnabled&&this.onClick&&this.onClick(this)},e.prototype.updateCssClasses=function(){if(this._element){var e=this._hostConfig?this._hostConfig:Eo.defaultHostConfig;this._element.className=e.makeCssClassName("ac-ctrl"),this._element.classList.add(e.makeCssClassName(this.isEnabled?"ac-ctrl-dropdown-item":"ac-ctrl-dropdown-item-disabled")),this.isEnabled||this._element.classList.add(e.makeCssClassName("ac-disabled"))}},e.prototype.toString=function(){return this.value},e.prototype.render=function(e){var t=this;return this._hostConfig=e,this._element||(this._element=document.createElement("span"),this._element.innerText=this.value,this._element.setAttribute("role","menuitem"),this.isEnabled||this._element.setAttribute("aria-disabled","true"),this._element.setAttribute("aria-current","false"),this._element.onmouseup=function(e){t.click()},this._element.onkeydown=function(e){e.key===Ao.Constants.keys.enter&&(e.cancelBubble=!0,t.click())},this.updateCssClasses()),this._element},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._element&&(this._element.innerText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){this._isEnabled!==e&&(this._isEnabled=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),e}();So.MenuItem=Io;var _o={},To={};Object.defineProperty(To,"__esModule",{value:!0}),To.Collection=void 0;var jo=function(){function e(){this._items=[]}return e.prototype.get=function(e){return this._items[e]},e.prototype.add=function(e){this._items.push(e),this.onItemAdded&&this.onItemAdded(e)},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>=0&&(this._items=this._items.splice(t,1),this.onItemRemoved&&this.onItemRemoved(e))},e.prototype.indexOf=function(e){return this._items.indexOf(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e}();To.Collection=jo;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.PopupControl=void 0;var No=ko,Do=Hn,Oo=qn,Vo=function(){function e(){this._isOpen=!1}return e.prototype.keyDown=function(e){if(e.key===No.Constants.keys.escape)this.closePopup(!0)},e.prototype.render=function(e){var t=this,n=document.createElement("div");return n.tabIndex=0,n.className=this.hostConfig.makeCssClassName("ac-ctrl","ac-ctrl-popup-container"),n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.onkeydown=function(e){return t.keyDown(e),!e.cancelBubble},n.appendChild(this.renderContent()),n},e.prototype.focus=function(){this._popupElement&&this._popupElement.firstElementChild.focus()},e.prototype.popup=function(e){var t,n,r,o,i,a=this;if(!this._isOpen){this._overlayElement=document.createElement("div"),this._overlayElement.className=this.hostConfig.makeCssClassName("ac-ctrl-overlay"),this._overlayElement.tabIndex=0,this._overlayElement.style.width=document.documentElement.scrollWidth+"px",this._overlayElement.style.height=document.documentElement.scrollHeight+"px",this._overlayElement.onfocus=function(e){a.closePopup(!0)},document.body.appendChild(this._overlayElement);var s=e.getBoundingClientRect();this._popupElement=this.render(s),(t=this._popupElement.classList).remove.apply(t,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight","ac-ctrl-slideRightToLeft","ac-ctrl-slideTopToBottom","ac-ctrl-slideRightToLeft")),window.addEventListener("resize",function(e){a.closePopup(!0)});var l=e.getAttribute("aria-label");l&&this._popupElement.setAttribute("aria-label",l),this._overlayElement.appendChild(this._popupElement);var c,u=this._popupElement.getBoundingClientRect(),d=window.innerHeight-s.bottom,p=s.top,h=window.innerWidth-s.right,m=s.left,f=s.left+Do.getScrollX();if(p<u.height&&d<u.height){var g=Math.min(u.height,window.innerHeight);if(this._popupElement.style.maxHeight=g+"px",c=g<u.height?Do.getScrollY():Do.getScrollY()+s.top+(s.height-g)/2,m<u.width&&h<u.width){var y=Math.min(u.width,window.innerWidth);this._popupElement.style.maxWidth=y+"px",f=y<u.width?Do.getScrollX():Do.getScrollX()+s.left+(s.width-y)/2}else h>=u.width?(f=Do.getScrollX()+s.right,(n=this._popupElement.classList).add.apply(n,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight"))):(f=Do.getScrollX()+s.left-u.width,(r=this._popupElement.classList).add.apply(r,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideRightToLeft")))}else d>=u.height?(c=Do.getScrollY()+s.bottom,(o=this._popupElement.classList).add.apply(o,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideTopToBottom"))):(c=Do.getScrollY()+s.top-u.height,(i=this._popupElement.classList).add.apply(i,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideBottomToTop"))),h<u.width&&(f=Do.getScrollX()+s.right-u.width);this._popupElement.style.left=f+"px",this._popupElement.style.top=c+"px",this._popupElement.focus(),this._isOpen=!0}},e.prototype.closePopup=function(e){this._isOpen&&(document.body.removeChild(this._overlayElement),this._isOpen=!1,this.onClose&&this.onClose(this,e))},Object.defineProperty(e.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:Oo.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),e}();Mo.PopupControl=Vo;var Bo=Vn&&Vn.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(_o,"__esModule",{value:!0}),_o.PopupMenu=void 0;var Ro,zo,Lo,Ho=ko,Fo=To,Wo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._items=new Fo.Collection,t._renderedItems=[],t._selectedIndex=-1,t}return Bo(t,e),t.prototype.renderContent=function(){var e=document.createElement("div");e.className=this.hostConfig.makeCssClassName("ac-ctrl ac-popup"),e.setAttribute("role","listbox");for(var t=0;t<this._items.length;t++){var n=this._items.get(t).render(this.hostConfig);n.tabIndex=0,e.appendChild(n),t===this.selectedIndex&&n.focus(),this._renderedItems.push(n)}return e},t.prototype.keyDown=function(t){e.prototype.keyDown.call(this,t);var n=this._selectedIndex;switch(t.key){case Ho.Constants.keys.tab:this.closePopup(!0);break;case Ho.Constants.keys.up:(n<=0||--n<0)&&(n=this._renderedItems.length-1),this.selectedIndex=n,t.cancelBubble=!0;break;case Ho.Constants.keys.down:(n<0||++n>=this._renderedItems.length)&&(n=0),this.selectedIndex=n,t.cancelBubble=!0}},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e>=0&&e<this._renderedItems.length&&(this._renderedItems[e].focus(),this._selectedIndex=e)},enumerable:!1,configurable:!0}),t}(Mo.PopupControl);_o.PopupMenu=Wo,Ro=wo,zo=Vn&&Vn.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),Lo=Vn&&Vn.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||zo(t,e,n)},Object.defineProperty(Ro,"__esModule",{value:!0}),Lo(So,Ro),Lo(_o,Ro);var $o=Vn&&Vn.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uo=Vn&&Vn.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jo=Vn&&Vn.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},Go=Vn&&Vn.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.BackgroundImage=Bn.ContainerBase=Bn.StylableCardElementContainer=Bn.ContainerStyleProperty=Bn.ActionSet=Bn.ShowCardAction=Bn.HttpAction=Bn.HttpHeader=Bn.ToggleVisibilityAction=Bn.OpenUrlAction=Bn.DataQuery=Bn.ExecuteAction=Bn.UniversalAction=Bn.SubmitAction=Bn.SubmitActionBase=Bn.Action=Bn.TimeInput=Bn.TimeProperty=Bn.DateInput=Bn.NumberInput=Bn.FilteredChoiceSet=Bn.ChoiceSetInput=Bn.ChoiceSetInputDataQuery=Bn.Choice=Bn.ToggleInput=Bn.TextInput=Bn.Input=Bn.Media=Bn.YouTubePlayer=Bn.DailymotionPlayer=Bn.VimeoPlayer=Bn.IFrameMediaMediaPlayer=Bn.CustomMediaPlayer=Bn.HTML5MediaPlayer=Bn.MediaPlayer=Bn.MediaSource=Bn.CaptionSource=Bn.ContentSource=Bn.ImageSet=Bn.CardElementContainer=Bn.Image=Bn.FactSet=Bn.Fact=Bn.RichTextBlock=Bn.TextRun=Bn.TextBlock=Bn.BaseTextBlock=Bn.ActionProperty=Bn.CardElement=Bn.renderSeparation=void 0,Bn.SerializationContext=Bn.AdaptiveCard=Bn.Authentication=Bn.TokenExchangeResource=Bn.AuthCardButton=Bn.RefreshDefinition=Bn.RefreshActionProperty=Bn.ContainerWithActions=Bn.ColumnSet=Bn.Column=Bn.Container=void 0;var qo=Rn,Xo=zn,Yo=Hn,Zo=qn,Qo=no,Ko=so,ei=Yn,ti=vo,ni=Zn,ri=wo;function oi(e){var t,n,r="undefined"==typeof window?"":null!==(n=null===(t=window.trustedTypes)||void 0===t?void 0:t.emptyHTML)&&void 0!==n?n:"";e.innerHTML=r}function ii(e,t,n){if(t.spacing>0||t.lineThickness&&t.lineThickness>0){var r=document.createElement("div");r.className=e.makeCssClassName("ac-"+(n===qo.Orientation.Horizontal?"horizontal":"vertical")+"-separator"),r.setAttribute("aria-hidden","true");var o=t.lineColor?Yo.stringToCssColor(t.lineColor):"";return n===qo.Orientation.Horizontal?t.lineThickness?(r.style.paddingTop=t.spacing/2+"px",r.style.marginBottom=t.spacing/2+"px",r.style.borderBottom=t.lineThickness+"px solid "+o):r.style.height=t.spacing+"px":t.lineThickness?(r.style.paddingLeft=t.spacing/2+"px",r.style.marginRight=t.spacing/2+"px",r.style.borderRight=t.lineThickness+"px solid "+o):r.style.width=t.spacing+"px",r.style.overflow="hidden",r.style.flex="0 0 auto",r}}Bn.renderSeparation=ii;var ai=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._truncatedDueToOverflow=!1,t}return $o(t,e),Object.defineProperty(t.prototype,"lang",{get:function(){var e=this.getValue(t.langProperty);return e||(this.parent?this.parent.lang:void 0)},set:function(e){this.setValue(t.langProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getValue(t.isVisibleProperty)},set:function(e){Xo.GlobalSettings.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this.isVisible!==e&&(this.setValue(t.isVisibleProperty,e),this.updateRenderedElementVisibility(),this._renderedElement&&xa(this)),this._renderedElement&&this._renderedElement.setAttribute("aria-expanded",e.toString())},enumerable:!1,configurable:!0}),t.prototype.internalRenderSeparator=function(){var e=ii(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.separator?this.hostConfig.separator.lineColor:void 0},this.separatorOrientation);if(Xo.GlobalSettings.alwaysBleedSeparators&&e&&this.separatorOrientation===qo.Orientation.Horizontal){var t=this.getParentContainer();if(t&&t.getEffectivePadding()){var n=this.hostConfig.paddingDefinitionToSpacingDefinition(t.getEffectivePadding());e.style.marginLeft="-"+n.left+"px",e.style.marginRight="-"+n.right+"px"}}return e},t.prototype.updateRenderedElementVisibility=function(){var e=this.isDesignMode()||this.isVisible?this._defaultRenderedElementDisplayMode:"none";this._renderedElement&&(e?this._renderedElement.style.display=e:this._renderedElement.style.removeProperty("display")),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display="none":e?this._separatorElement.style.display=e:this._separatorElement.style.removeProperty("display"))},t.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this.isVisible&&(this._renderedElement.style.visibility="hidden",this.isVisible=!1,xa(this,!1))},t.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this.isVisible&&(this._renderedElement.style.removeProperty("visibility"),this.isVisible=!0,xa(this,!1))},t.prototype.handleOverflow=function(e){if(this.isVisible||this.isHiddenDueToOverflow()){var t=this.truncateOverflow(e);this._truncatedDueToOverflow=t||this._truncatedDueToOverflow,t?t&&!this.isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow()}},t.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),this._truncatedDueToOverflow=!1,e=!0),this.isHiddenDueToOverflow()&&this.showElementHiddenDueToOverflow(),e},t.prototype.getDefaultSerializationContext=function(){return new Ta},t.prototype.createPlaceholderElement=function(){var e=this.getEffectiveStyleDefinition(),t=Yo.stringToCssColor(e.foregroundColors.default.subtle),n=document.createElement("div");return n.style.border="1px dashed "+t,n.style.padding="4px",n.style.minHeight="32px",n.style.fontSize="10px",t&&(n.style.color=t),n.innerText=ni.Strings.defaults.emptyElementText(this.getJsonTypeName()),n},t.prototype.adjustRenderedElementSize=function(e){"auto"===this.height?e.style.flex="0 0 auto":e.style.flex="1 1 auto"},t.prototype.updateInputsVisualState=function(e){var t=this.getAllInputs(),n=e?Ti.MouseEnterOnCard:Ti.MouseLeaveOnCard;t.forEach(function(e){return e.updateVisualState(n)})},t.prototype.isDisplayed=function(){return void 0!==this._renderedElement&&this.isVisible&&this._renderedElement.offsetHeight>0},t.prototype.overrideInternalRender=function(){return this.internalRender()},t.prototype.applyPadding=function(){if(this.separatorElement&&this.separatorOrientation===qo.Orientation.Horizontal)if(Xo.GlobalSettings.alwaysBleedSeparators&&!this.isBleeding()){var e=new Xo.PaddingDefinition;this.getImmediateSurroundingPadding(e);var t=this.hostConfig.paddingDefinitionToSpacingDefinition(e);this.separatorElement.style.marginLeft="-"+t.left+"px",this.separatorElement.style.marginRight="-"+t.right+"px"}else this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0"},t.prototype.truncateOverflow=function(e){return!1},t.prototype.undoOverflowTruncation=function(){},t.prototype.getDefaultPadding=function(){return new Xo.PaddingDefinition},t.prototype.getHasBackground=function(e){return!1},t.prototype.getHasBorder=function(){return!1},t.prototype.getPadding=function(){return this._padding},t.prototype.setPadding=function(e){this._padding=e},t.prototype.shouldSerialize=function(e){return void 0!==e.elementRegistry.findByName(this.getJsonTypeName())},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return qo.Orientation.Horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return qo.ContainerStyle.Default},enumerable:!1,configurable:!0}),t.prototype.parse=function(t,n){e.prototype.parse.call(this,t,n||new Ta)},t.prototype.asString=function(){return""},t.prototype.isBleeding=function(){return!1},t.prototype.getEffectiveStyle=function(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle},t.prototype.getEffectiveStyleDefinition=function(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())},t.prototype.getEffectiveTextStyleDefinition=function(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default},t.prototype.getForbiddenActionTypes=function(){return[]},t.prototype.getImmediateSurroundingPadding=function(e,t,n,r,o){if(void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!0),this.parent){var i=t&&this.parent.isTopElement(this),a=n&&this.parent.isRightMostElement(this),s=r&&this.parent.isBottomElement(this),l=o&&this.parent.isLeftMostElement(this),c=this.parent.getEffectivePadding();c&&(i&&c.top!==qo.Spacing.None&&(e.top=c.top,i=!1),a&&c.right!==qo.Spacing.None&&(e.right=c.right,a=!1),s&&c.bottom!==qo.Spacing.None&&(e.bottom=c.bottom,s=!1),l&&c.left!==qo.Spacing.None&&(e.left=c.left,l=!1)),(i||a||s||l)&&this.parent.getImmediateSurroundingPadding(e,i,a,s,l)}},t.prototype.getActionCount=function(){return 0},t.prototype.getActionAt=function(e){throw new Error(ni.Strings.errors.indexOutOfRange(e))},t.prototype.indexOfAction=function(e){for(var t=0;t<this.getActionCount();t++)if(this.getActionAt(t)===e)return t;return-1},t.prototype.remove=function(){return!!(this.parent&&this.parent instanceof yi)&&this.parent.removeItem(this)},t.prototype.render=function(){return this._renderedElement=this.overrideInternalRender(),this._separatorElement=this.internalRenderSeparator(),this._renderedElement?(this.id&&(this._renderedElement.id=this.id),this.customCssSelector&&this._renderedElement.classList.add(this.customCssSelector),this._renderedElement.style.boxSizing="border-box",this._defaultRenderedElementDisplayMode=this._renderedElement.style.display?this._renderedElement.style.display:void 0,this.adjustRenderedElementSize(this._renderedElement),this.updateLayout(!1)):this.isDesignMode()&&(this._renderedElement=this.createPlaceholderElement()),this._renderedElement},t.prototype.updateLayout=function(e){this.updateRenderedElementVisibility(),this.applyPadding()},t.prototype.updateActionsEnabledState=function(){for(var e=0,t=this.getRootElement().getAllActions();e<t.length;e++){t[e].updateEnabledState()}},t.prototype.indexOf=function(e){return-1},t.prototype.isDesignMode=function(){var e=this.getRootElement();return e instanceof Ia&&e.designMode},t.prototype.isFirstElement=function(e){return!0},t.prototype.isLastElement=function(e){return!0},t.prototype.isAtTheVeryLeft=function(){return!this.parent||this.parent.isLeftMostElement(this)&&this.parent.isAtTheVeryLeft()},t.prototype.isAtTheVeryRight=function(){return!this.parent||this.parent.isRightMostElement(this)&&this.parent.isAtTheVeryRight()},t.prototype.isAtTheVeryTop=function(){return!this.parent||this.parent.isFirstElement(this)&&this.parent.isAtTheVeryTop()},t.prototype.isAtTheVeryBottom=function(){return!this.parent||this.parent.isLastElement(this)&&this.parent.isAtTheVeryBottom()},t.prototype.isBleedingAtTop=function(){return!1},t.prototype.isBleedingAtBottom=function(){return!1},t.prototype.isLeftMostElement=function(e){return!0},t.prototype.isRightMostElement=function(e){return!0},t.prototype.isTopElement=function(e){return this.isFirstElement(e)},t.prototype.isBottomElement=function(e){return this.isLastElement(e)},t.prototype.isHiddenDueToOverflow=function(){return void 0!==this._renderedElement&&"hidden"===this._renderedElement.style.visibility},t.prototype.getRootElement=function(){return this.getRootObject()},t.prototype.getParentContainer=function(){for(var e=this.parent;e;){if(e instanceof ma)return e;e=e.parent}},t.prototype.getAllInputs=function(e){return[]},t.prototype.getAllActions=function(){for(var e=[],t=0;t<this.getActionCount();t++){var n=this.getActionAt(t);n&&e.push(n)}return e},t.prototype.getResourceInformation=function(){return[]},t.prototype.getElementById=function(e){return this.id===e?this:void 0},t.prototype.getActionById=function(e){},t.prototype.getElementByIdFromAction=function(e){for(var t=void 0,n=0;n<this.getActionCount();n++){var r=this.getActionAt(n);if(r instanceof ia&&(t=r.card.getElementById(e)))break}return t},t.prototype.getEffectivePadding=function(){var e=this.getPadding();return e||this.getDefaultPadding()},t.prototype.getEffectiveHorizontalAlignment=function(){return void 0!==this.horizontalAlignment?this.horizontalAlignment:this.parent?this.parent.getEffectiveHorizontalAlignment():qo.HorizontalAlignment.Left},Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:Zo.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.parent?this.parent.indexOf(this):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!(!this.parent||!this.separatorElement)&&(!this.parent.isFirstElement(this)&&(this.isVisible||this.isDesignMode()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorElement",{get:function(){return this._separatorElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),t.langProperty=new ei.StringProperty(ei.Versions.v1_1,"lang",!0,/^[a-z]{2,3}$/gi),t.isVisibleProperty=new ei.BoolProperty(ei.Versions.v1_2,"isVisible",!0),t.separatorProperty=new ei.BoolProperty(ei.Versions.v1_0,"separator",!1),t.heightProperty=new ei.ValueSetProperty(ei.Versions.v1_1,"height",[{value:"auto"},{value:"stretch"}],"auto"),t.horizontalAlignmentProperty=new ei.EnumProperty(ei.Versions.v1_0,"horizontalAlignment",qo.HorizontalAlignment),t.spacingProperty=new ei.EnumProperty(ei.Versions.v1_0,"spacing",qo.Spacing,qo.Spacing.Default),Uo([(0,ei.property)(t.horizontalAlignmentProperty)],t.prototype,"horizontalAlignment",void 0),Uo([(0,ei.property)(t.spacingProperty)],t.prototype,"spacing",void 0),Uo([(0,ei.property)(t.separatorProperty)],t.prototype,"separator",void 0),Uo([(0,ei.property)(t.heightProperty)],t.prototype,"height",void 0),Uo([(0,ei.property)(t.langProperty)],t.prototype,"lang",null),Uo([(0,ei.property)(t.isVisibleProperty)],t.prototype,"isVisible",null),t}(Ko.CardObject);Bn.CardElement=ai;var si=function(e){function t(t,n,r){void 0===r&&(r=[]);var o=e.call(this,t,n,void 0)||this;return o.targetVersion=t,o.name=n,o.forbiddenActionTypes=r,o}return $o(t,e),t.prototype.parse=function(e,t,n){var r=e;return n.parseAction(r,t[this.name],this.forbiddenActionTypes,r.isDesignMode())},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n?n.toJSON(r):void 0,void 0,!0)},t}(ei.PropertyDefinition);Bn.ActionProperty=si;var li=function(e){function t(t){var n=e.call(this)||this;return n.ariaHidden=!1,t&&(n.text=t),n}return $o(t,e),t.prototype.populateSchema=function(n){e.prototype.populateSchema.call(this,n),n.remove(t.selectActionProperty)},Object.defineProperty(t.prototype,"text",{get:function(){return this.getValue(t.textProperty)},set:function(e){this.setText(e)},enumerable:!1,configurable:!0}),t.prototype.getFontSize=function(e){switch(this.effectiveSize){case qo.TextSize.Small:return e.fontSizes.small;case qo.TextSize.Medium:return e.fontSizes.medium;case qo.TextSize.Large:return e.fontSizes.large;case qo.TextSize.ExtraLarge:return e.fontSizes.extraLarge;default:return e.fontSizes.default}},t.prototype.getColorDefinition=function(e,t){switch(t){case qo.TextColor.Accent:return e.accent;case qo.TextColor.Dark:return e.dark;case qo.TextColor.Light:return e.light;case qo.TextColor.Good:return e.good;case qo.TextColor.Warning:return e.warning;case qo.TextColor.Attention:return e.attention;default:return e.default}},t.prototype.setText=function(e){this.setValue(t.textProperty,e)},t.prototype.init=function(e){this.size=e.size,this.weight=e.weight,this.color=e.color,this.isSubtle=e.isSubtle},t.prototype.asString=function(){return this.text},t.prototype.applyStylesTo=function(e){var t,n=this.hostConfig.getFontTypeDefinition(this.effectiveFontType);switch(n.fontFamily&&(e.style.fontFamily=n.fontFamily),this.effectiveSize){case qo.TextSize.Small:t=n.fontSizes.small;break;case qo.TextSize.Medium:t=n.fontSizes.medium;break;case qo.TextSize.Large:t=n.fontSizes.large;break;case qo.TextSize.ExtraLarge:t=n.fontSizes.extraLarge;break;default:t=n.fontSizes.default}e.style.fontSize=t+"px";var r,o=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),i=Yo.stringToCssColor(this.effectiveIsSubtle?o.subtle:o.default);switch(i&&(e.style.color=i),this.effectiveWeight){case qo.TextWeight.Lighter:r=n.fontWeights.lighter;break;case qo.TextWeight.Bolder:r=n.fontWeights.bolder;break;default:r=n.fontWeights.default}e.style.fontWeight=r.toString(),this.ariaHidden&&e.setAttribute("aria-hidden","true")},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},Object.defineProperty(t.prototype,"effectiveColor",{get:function(){return void 0!==this.color?this.color:this.getEffectiveTextStyleDefinition().color},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveFontType",{get:function(){return void 0!==this.fontType?this.fontType:this.getEffectiveTextStyleDefinition().fontType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveIsSubtle",{get:function(){return void 0!==this.isSubtle?this.isSubtle:this.getEffectiveTextStyleDefinition().isSubtle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveSize",{get:function(){return void 0!==this.size?this.size:this.getEffectiveTextStyleDefinition().size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveWeight",{get:function(){return void 0!==this.weight?this.weight:this.getEffectiveTextStyleDefinition().weight},enumerable:!1,configurable:!0}),t.textProperty=new ei.StringProperty(ei.Versions.v1_0,"text",!0),t.sizeProperty=new ei.EnumProperty(ei.Versions.v1_0,"size",qo.TextSize),t.weightProperty=new ei.EnumProperty(ei.Versions.v1_0,"weight",qo.TextWeight),t.colorProperty=new ei.EnumProperty(ei.Versions.v1_0,"color",qo.TextColor),t.isSubtleProperty=new ei.BoolProperty(ei.Versions.v1_0,"isSubtle"),t.fontTypeProperty=new ei.EnumProperty(ei.Versions.v1_2,"fontType",qo.FontType),t.selectActionProperty=new si(ei.Versions.v1_1,"selectAction",["Action.ShowCard"]),Uo([(0,ei.property)(t.sizeProperty)],t.prototype,"size",void 0),Uo([(0,ei.property)(t.weightProperty)],t.prototype,"weight",void 0),Uo([(0,ei.property)(t.colorProperty)],t.prototype,"color",void 0),Uo([(0,ei.property)(t.fontTypeProperty)],t.prototype,"fontType",void 0),Uo([(0,ei.property)(t.isSubtleProperty)],t.prototype,"isSubtle",void 0),Uo([(0,ei.property)(t.textProperty)],t.prototype,"text",null),Uo([(0,ei.property)(t.selectActionProperty)],t.prototype,"selectAction",void 0),t}(ai);Bn.BaseTextBlock=li;var ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!1,t._treatAsPlainText=!0,t.useMarkdown=!0,t}var n,r;return $o(t,e),t.prototype.restoreOriginalContent=function(){var e,n;if(void 0!==this.renderedElement){this.maxLines&&this.maxLines>0&&(this.renderedElement.style.maxHeight=this._computedLineHeight*this.maxLines+"px");var r=null!==(n=null===(e=t._ttRoundtripPolicy)||void 0===e?void 0:e.createHTML(this._originalInnerHtml))&&void 0!==n?n:this._originalInnerHtml;this.renderedElement.innerHTML=r}},t.prototype.truncateIfSupported=function(e){if(void 0!==this.renderedElement){var t=this.renderedElement.children,n=!t.length;if(n||1===t.length&&"p"===t[0].tagName.toLowerCase()&&!t[0].children.length){var r=n?this.renderedElement:t[0];return Yo.truncateText(r,e,this._computedLineHeight),!0}}return!1},t.prototype.setText=function(t){e.prototype.setText.call(this,t),this._processedText=void 0},t.prototype.internalRender=function(){var e,n,r=this;if(this._processedText=void 0,this.text){var o=this.preProcessPropertyValue(li.textProperty),i=this.hostConfig,a=void 0;if(this.forElementId){var s=document.createElement("label");s.htmlFor=this.forElementId,a=s}else a=document.createElement("div");if(a.classList.add(i.makeCssClassName("ac-textBlock")),a.style.overflow="hidden",this.applyStylesTo(a),"heading"===this.style){a.setAttribute("role","heading");var l=this.hostConfig.textBlock.headingLevel;void 0!==l&&l>0&&a.setAttribute("aria-level",l.toString())}if(this.selectAction&&i.supportsInteractivity&&(a.onclick=function(e){r.selectAction&&r.selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,r.selectAction.execute())},this.selectAction.setupElementForAccessibility(a),this.selectAction.isEffectivelyEnabled()&&a.classList.add(i.makeCssClassName("ac-selectable"))),!this._processedText){this._treatAsPlainText=!0;var c=Qo.formatText(this.lang,o);if(this.useMarkdown&&c){Xo.GlobalSettings.allowMarkForTextHighlighting&&(c=c.replace(/<mark>/g,"===").replace(/<\/mark>/g,"/==/"));var u=Ia.applyMarkdown(c);if(u.didProcess&&u.outputHtml){if(this._processedText=u.outputHtml,this._treatAsPlainText=!1,Xo.GlobalSettings.allowMarkForTextHighlighting&&this._processedText){var d="",p=this.getEffectiveStyleDefinition();p.highlightBackgroundColor&&(d+="background-color: "+p.highlightBackgroundColor+";"),p.highlightForegroundColor&&(d+="color: "+p.highlightForegroundColor+";"),d&&(d='style="'+d+'"'),this._processedText=this._processedText.replace(/===/g,"<mark "+d+">").replace(/\/==\//g,"</mark>")}}else this._processedText=c,this._treatAsPlainText=!0}else this._processedText=c,this._treatAsPlainText=!0}if(this._processedText||(this._processedText=""),this._treatAsPlainText)a.innerText=this._processedText;else{var h=null!==(n=null===(e=t._ttMarkdownPolicy)||void 0===e?void 0:e.createHTML(this._processedText))&&void 0!==n?n:this._processedText;a.innerHTML=h}if(a.firstElementChild instanceof HTMLElement){var m=a.firstElementChild;m.style.marginTop="0px",m.style.width="100%",this.wrap||(m.style.overflow="hidden",m.style.textOverflow="ellipsis")}a.lastElementChild instanceof HTMLElement&&(a.lastElementChild.style.marginBottom="0px");for(var f=a.getElementsByTagName("a"),g=function(e){e.classList.add(i.makeCssClassName("ac-anchor")),e.target="_blank",e.onclick=function(t){va(r,e,t)&&(t.preventDefault(),t.cancelBubble=!0)},e.oncontextmenu=function(t){return!va(r,e,t)||(t.preventDefault(),t.cancelBubble=!0,!1)}},y=0,v=Array.from(f);y<v.length;y++){g(v[y])}return this.wrap?(a.style.wordWrap="break-word",this.maxLines&&this.maxLines>0&&(a.style.overflow="hidden",Yo.isInternetExplorer()||!Xo.GlobalSettings.useWebkitLineClamp?a.style.maxHeight=this._computedLineHeight*this.maxLines+"px":(a.style.removeProperty("line-height"),a.style.display="-webkit-box",a.style.webkitBoxOrient="vertical",a.style.webkitLineClamp=this.maxLines.toString()))):(a.style.whiteSpace="nowrap",a.style.textOverflow="ellipsis"),(Xo.GlobalSettings.useAdvancedTextBlockTruncation||Xo.GlobalSettings.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=a.innerHTML),a}},t.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight&&this.truncateIfSupported(e)},t.prototype.undoOverflowTruncation=function(){if(this.restoreOriginalContent(),Xo.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines){var e=this._computedLineHeight*this.maxLines;this.truncateIfSupported(e)}},t.prototype.applyStylesTo=function(t){switch(e.prototype.applyStylesTo.call(this,t),this.getEffectiveHorizontalAlignment()){case qo.HorizontalAlignment.Center:t.style.textAlign="center";break;case qo.HorizontalAlignment.Right:t.style.textAlign="end";break;default:t.style.textAlign="start"}var n=this.hostConfig.lineHeights;if(n)switch(this.effectiveSize){case qo.TextSize.Small:this._computedLineHeight=n.small;break;case qo.TextSize.Medium:this._computedLineHeight=n.medium;break;case qo.TextSize.Large:this._computedLineHeight=n.large;break;case qo.TextSize.ExtraLarge:this._computedLineHeight=n.extraLarge;break;default:this._computedLineHeight=n.default}else this._computedLineHeight=1.33*this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType));t.style.lineHeight=this._computedLineHeight+"px"},t.prototype.getJsonTypeName=function(){return"TextBlock"},t.prototype.getEffectiveTextStyleDefinition=function(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):e.prototype.getEffectiveTextStyleDefinition.call(this)},t.prototype.updateLayout=function(t){void 0===t&&(t=!1),e.prototype.updateLayout.call(this,t),Xo.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines&&this.isDisplayed()&&(this.restoreOriginalContent(),this.truncateIfSupported(this._computedLineHeight*this.maxLines))},t.wrapProperty=new ei.BoolProperty(ei.Versions.v1_0,"wrap",!1),t.maxLinesProperty=new ei.NumProperty(ei.Versions.v1_0,"maxLines"),t.styleProperty=new ei.ValueSetProperty(ei.Versions.v1_5,"style",[{value:"default"},{value:"columnHeader"},{value:"heading"}]),t._ttMarkdownPolicy="undefined"==typeof window||null===(n=window.trustedTypes)||void 0===n?void 0:n.createPolicy("adaptivecards#markdownPassthroughPolicy",{createHTML:function(e){return e}}),t._ttRoundtripPolicy="undefined"==typeof window||null===(r=window.trustedTypes)||void 0===r?void 0:r.createPolicy("adaptivecards#restoreContentsPolicy",{createHTML:function(e){return e}}),Uo([(0,ei.property)(t.wrapProperty)],t.prototype,"wrap",void 0),Uo([(0,ei.property)(t.maxLinesProperty)],t.prototype,"maxLines",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),t}(li);Bn.TextBlock=ci;var ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.italic=!1,t.strikethrough=!1,t.highlight=!1,t.underline=!1,t}return $o(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.add(li.selectActionProperty)},t.prototype.internalRender=function(){var e=this;if(this.text){var t=this.preProcessPropertyValue(li.textProperty),n=this.hostConfig,r=Qo.formatText(this.lang,t);r||(r="");var o=document.createElement("span");if(o.classList.add(n.makeCssClassName("ac-textRun")),this.applyStylesTo(o),this.selectAction&&n.supportsInteractivity){var i=document.createElement("a");i.classList.add(n.makeCssClassName("ac-anchor"));var a=this.selectAction.getHref();i.href=a||"",i.target="_blank",i.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(i),i.innerText=r,o.appendChild(i)}else o.innerText=r;return o}},t.prototype.applyStylesTo=function(t){if(e.prototype.applyStylesTo.call(this,t),this.italic&&(t.style.fontStyle="italic"),this.strikethrough&&(t.style.textDecoration="line-through"),this.highlight){var n=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),r=Yo.stringToCssColor(this.effectiveIsSubtle?n.highlightColors.subtle:n.highlightColors.default);r&&(t.style.backgroundColor=r)}this.underline&&(t.style.textDecoration="underline")},t.prototype.getJsonTypeName=function(){return"TextRun"},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!0},enumerable:!1,configurable:!0}),t.italicProperty=new ei.BoolProperty(ei.Versions.v1_2,"italic",!1),t.strikethroughProperty=new ei.BoolProperty(ei.Versions.v1_2,"strikethrough",!1),t.highlightProperty=new ei.BoolProperty(ei.Versions.v1_2,"highlight",!1),t.underlineProperty=new ei.BoolProperty(ei.Versions.v1_3,"underline",!1),Uo([(0,ei.property)(t.italicProperty)],t.prototype,"italic",void 0),Uo([(0,ei.property)(t.strikethroughProperty)],t.prototype,"strikethrough",void 0),Uo([(0,ei.property)(t.highlightProperty)],t.prototype,"highlight",void 0),Uo([(0,ei.property)(t.underlineProperty)],t.prototype,"underline",void 0),t}(li);Bn.TextRun=ui;var di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._inlines=[],t}return $o(t,e),t.prototype.internalAddInline=function(e,t){if(void 0===t&&(t=!1),!e.isInline)throw new Error(ni.Strings.errors.elementCannotBeUsedAsInline());if(!(void 0===e.parent||t)&&e.parent!==this)throw new Error(ni.Strings.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)},t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),this._inlines=[],Array.isArray(t.inlines))for(var r=0,o=t.inlines;r<o.length;r++){var i=o[r],a=void 0;if("string"==typeof i){var s=new ui;s.text=i,a=s}else a=n.parseElement(this,i,[],!1);a&&this.internalAddInline(a,!0)}},t.prototype.internalToJSON=function(t,n){if(e.prototype.internalToJSON.call(this,t,n),this._inlines.length>0){for(var r=[],o=0,i=this._inlines;o<i.length;o++){var a=i[o];r.push(a.toJSON(n))}n.serializeValue(t,"inlines",r)}},t.prototype.internalRender=function(){if(this._inlines.length>0){var e=void 0;if(this.forElementId){var t=document.createElement("label");t.htmlFor=this.forElementId,e=t}else e=document.createElement("div");switch(e.className=this.hostConfig.makeCssClassName("ac-richTextBlock"),this.getEffectiveHorizontalAlignment()){case qo.HorizontalAlignment.Center:e.style.textAlign="center";break;case qo.HorizontalAlignment.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}for(var n=0,r=0,o=this._inlines;r<o.length;r++){var i=o[r].render();i&&(e.appendChild(i),n++)}if(n>0)return e}},t.prototype.asString=function(){for(var e="",t=0,n=this._inlines;t<n.length;t++){e+=n[t].asString()}return e},t.prototype.getJsonTypeName=function(){return"RichTextBlock"},t.prototype.getInlineCount=function(){return this._inlines.length},t.prototype.getInlineAt=function(e){if(e>=0&&e<this._inlines.length)return this._inlines[e];throw new Error(ni.Strings.errors.indexOutOfRange(e))},t.prototype.addInline=function(e){"string"==typeof e?this.internalAddInline(new ui(e)):this.internalAddInline(e)},t.prototype.removeInline=function(e){var t=this._inlines.indexOf(e);return t>=0&&(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0)},t}(ai);Bn.RichTextBlock=di;var pi=function(e){function t(t,n){var r=e.call(this)||this;return r.name=t,r.value=n,r}return $o(t,e),t.prototype.getSchemaKey=function(){return"Fact"},t.titleProperty=new ei.StringProperty(ei.Versions.v1_0,"title"),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"name",void 0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"value",void 0),t}(ei.SerializableObject);Bn.Fact=pi;var hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=void 0,t=this.hostConfig;if(this.facts.length>0){(e=document.createElement("table")).style.borderWidth="0px",e.style.borderSpacing="0px",e.style.borderStyle="none",e.style.borderCollapse="collapse",e.style.display="block",e.style.overflow="hidden",e.classList.add(t.makeCssClassName("ac-factset")),e.setAttribute("role","presentation");for(var n=0;n<this.facts.length;n++){var r=document.createElement("tr");n>0&&(r.style.marginTop=t.factSet.spacing+"px");var o=document.createElement("td");o.style.padding="0",o.classList.add(t.makeCssClassName("ac-fact-title")),t.factSet.title.maxWidth&&(o.style.maxWidth=t.factSet.title.maxWidth+"px"),o.style.verticalAlign="top";var i=new ci;i.setParent(this),i.text=!this.facts[n].name&&this.isDesignMode()?"Title":this.facts[n].name,i.size=t.factSet.title.size,i.color=t.factSet.title.color,i.isSubtle=t.factSet.title.isSubtle,i.weight=t.factSet.title.weight,i.wrap=t.factSet.title.wrap,i.spacing=qo.Spacing.None,Yo.appendChild(o,i.render()),Yo.appendChild(r,o),(o=document.createElement("td")).style.width="10px",Yo.appendChild(r,o),(o=document.createElement("td")).style.padding="0",o.style.verticalAlign="top",o.classList.add(t.makeCssClassName("ac-fact-value")),(i=new ci).setParent(this),i.text=this.facts[n].value,i.size=t.factSet.value.size,i.color=t.factSet.value.color,i.isSubtle=t.factSet.value.isSubtle,i.weight=t.factSet.value.weight,i.wrap=t.factSet.value.wrap,i.spacing=qo.Spacing.None,Yo.appendChild(o,i.render()),Yo.appendChild(r,o),Yo.appendChild(e,r)}}return e},t.prototype.getJsonTypeName=function(){return"FactSet"},t.factsProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_0,"facts",pi),Uo([(0,ei.property)(t.factsProperty)],t.prototype,"facts",void 0),t}(ai);Bn.FactSet=hi;var mi=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.targetVersion=t,i.name=n,i.internalName=r,i.fallbackProperty=o,i}return $o(t,e),t.prototype.getInternalName=function(){return this.internalName},t.prototype.parse=function(e,t,n){var r=void 0,o=t[this.name];if(void 0===o)return this.defaultValue;var i=!1;if("string"==typeof o){try{var a=Xo.SizeAndUnit.parse(o,!0);a.unit===qo.SizeUnit.Pixel&&(r=a.physicalSize,i=!0)}catch(s){}!i&&this.fallbackProperty&&(i=this.fallbackProperty.isValidValue(o,n))}return i||n.logParseEvent(e,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidPropertyValue(o,this.name)),r},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,"number"!=typeof n||isNaN(n)?void 0:n+"px")},t}(ei.PropertyDefinition),fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.size=qo.Size.Auto,t.style=qo.ImageStyle.Default,t}return $o(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(ai.heightProperty)},t.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+"px"),this.pixelHeight&&(e.style.height=this.pixelHeight+"px");else if(this.maxHeight){switch(this.size){case qo.Size.Small:e.style.height=this.hostConfig.imageSizes.small+"px";break;case qo.Size.Large:e.style.height=this.hostConfig.imageSizes.large+"px";break;default:e.style.height=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight=this.maxHeight+"px"}else{switch(this.size){case qo.Size.Stretch:e.style.width="100%";break;case qo.Size.Auto:e.style.maxWidth="100%";break;case qo.Size.Small:e.style.width=this.hostConfig.imageSizes.small+"px";break;case qo.Size.Large:e.style.width=this.hostConfig.imageSizes.large+"px";break;case qo.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight="100%"}},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=this,n=void 0;if(this.url){(n=document.createElement("div")).style.display="flex",n.style.alignItems="flex-start";var r=this.hostConfig;switch(this.getEffectiveHorizontalAlignment()){case qo.HorizontalAlignment.Center:n.style.justifyContent="center";break;case qo.HorizontalAlignment.Right:n.style.justifyContent="flex-end";break;default:n.style.justifyContent="flex-start"}var o=document.createElement("img");this.renderedImageElement=o,o.onload=function(t){ya(e)},o.onerror=function(t){if(e.renderedElement){var n=e.getRootElement();if(oi(e.renderedElement),n&&n.designMode){var r=document.createElement("div");r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.backgroundColor="#EEEEEE",r.style.color="black",r.innerText=":-(",r.style.padding="10px",e.applySize(r),e.renderedElement.appendChild(r)}}ya(e)},o.style.minWidth="0",o.classList.add(r.makeCssClassName("ac-image")),this.selectAction&&r.supportsInteractivity&&(o.onkeypress=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&("Enter"===t.code||"Space"===t.code)&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},o.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(o),this.selectAction.isEffectivelyEnabled()&&o.classList.add(r.makeCssClassName("ac-selectable"))),this.applySize(o),this.style===qo.ImageStyle.Person&&(o.style.borderRadius="50%",o.style.backgroundPosition="50% 50%",o.style.backgroundRepeat="no-repeat");var i=Yo.stringToCssColor(this.backgroundColor);i&&(o.style.backgroundColor=i),this.setImageSource(o);var a=this.preProcessPropertyValue(t.altTextProperty);a&&(o.alt=a),n.appendChild(o)}return n},t.prototype.getJsonTypeName=function(){return"Image"},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.selectAction&&(n=this.selectAction.getActionById(t)),n},t.prototype.getResourceInformation=function(){return this.url?[{url:this.url,mimeType:"image"}]:[]},t.prototype.setImageSource=function(e){var n=new gi(this.forceLoad,this.url);n.configureImage(this),e.src=this.preProcessPropertyValue(t.urlProperty),n.resetImage(this)},t.urlProperty=new ei.StringProperty(ei.Versions.v1_0,"url"),t.altTextProperty=new ei.StringProperty(ei.Versions.v1_0,"altText"),t.backgroundColorProperty=new ei.StringProperty(ei.Versions.v1_1,"backgroundColor"),t.styleProperty=new ei.EnumProperty(ei.Versions.v1_0,"style",qo.ImageStyle,qo.ImageStyle.Default),t.sizeProperty=new ei.EnumProperty(ei.Versions.v1_0,"size",qo.Size,qo.Size.Auto),t.pixelWidthProperty=new mi(ei.Versions.v1_1,"width","pixelWidth"),t.pixelHeightProperty=new mi(ei.Versions.v1_1,"height","pixelHeight",ai.heightProperty),t.selectActionProperty=new si(ei.Versions.v1_1,"selectAction",["Action.ShowCard"]),t.shouldForceLoadProperty=new ei.BoolProperty(ei.Versions.v1_6,"forceLoad",!1),Uo([(0,ei.property)(t.urlProperty)],t.prototype,"url",void 0),Uo([(0,ei.property)(t.altTextProperty)],t.prototype,"altText",void 0),Uo([(0,ei.property)(t.backgroundColorProperty)],t.prototype,"backgroundColor",void 0),Uo([(0,ei.property)(t.sizeProperty)],t.prototype,"size",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),Uo([(0,ei.property)(t.pixelWidthProperty)],t.prototype,"pixelWidth",void 0),Uo([(0,ei.property)(t.pixelHeightProperty)],t.prototype,"pixelHeight",void 0),Uo([(0,ei.property)(t.selectActionProperty)],t.prototype,"selectAction",void 0),Uo([(0,ei.property)(t.shouldForceLoadProperty)],t.prototype,"forceLoad",void 0),t}(ai);Bn.Image=fi;var gi=function(){function e(e,t){this.doForceLoad=e,this.url=t,t&&t.length&&e&&(this.uniqueHash="?"+Date.now(),this.urlWithForceLoadOption=t+this.uniqueHash)}return e.prototype.configureImage=function(e){this.urlWithForceLoadOption&&this.urlWithForceLoadOption.length&&(e.url=this.urlWithForceLoadOption)},e.prototype.resetImage=function(e){e.url=this.url},e}(),yi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allowVerticalOverflow=!1,t}return $o(t,e),t.prototype.populateSchema=function(n){e.prototype.populateSchema.call(this,n),this.isSelectable||n.remove(t.selectActionProperty)},t.prototype.isElementAllowed=function(e){return this.hostConfig.supportsInteractivity||!e.isInteractive},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new Xo.SpacingDefinition;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0"}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.forbiddenChildElements=function(){return[]},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this);for(var t=0;t<this.getItemCount();t++)this.getItemAt(t).releaseDOMResources()},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0;n<this.getItemCount();n++){var r=this.getItemAt(n);!this.hostConfig.supportsInteractivity&&r.isInteractive&&t.addFailure(this,qo.ValidationEvent.InteractivityNotAllowed,ni.Strings.errors.interactivityNotAllowed()),this.isElementAllowed(r)||t.addFailure(this,qo.ValidationEvent.InteractivityNotAllowed,ni.Strings.errors.elementTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(t)}this._selectAction&&this._selectAction.internalValidateProperties(t)},t.prototype.render=function(){var t=this,n=e.prototype.render.call(this);if(n){var r=this.hostConfig;this.allowVerticalOverflow&&(n.style.overflowX="hidden",n.style.overflowY="auto"),n&&this.isSelectable&&this._selectAction&&r.supportsInteractivity&&(n.onclick=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},n.onkeypress=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&("Enter"===e.code||"Space"===e.code)&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},this._selectAction.setupElementForAccessibility(n),this._selectAction.isEffectivelyEnabled()&&n.classList.add(r.makeCssClassName("ac-selectable")))}return n},t.prototype.updateLayout=function(t){if(void 0===t&&(t=!0),e.prototype.updateLayout.call(this,t),t)for(var n=0;n<this.getItemCount();n++)this.getItemAt(n).updateLayout()},t.prototype.getAllInputs=function(e){void 0===e&&(e=!0);for(var t=[],n=0;n<this.getItemCount();n++)t.push.apply(t,this.getItemAt(n).getAllInputs(e));return t},t.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),n=0;n<this.getItemCount();n++)t.push.apply(t,this.getItemAt(n).getAllActions());return this._selectAction&&t.push(this._selectAction),t},t.prototype.getResourceInformation=function(){for(var e=[],t=0;t<this.getItemCount();t++)e.push.apply(e,this.getItemAt(t).getResourceInformation());return e},t.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);if(!n)for(var r=0;r<this.getItemCount()&&!(n=this.getItemAt(r).getElementById(t));r++);return n},t.prototype.findDOMNodeOwner=function(t){for(var n,r=void 0,o=0;o<this.getItemCount();o++)if(r=this.getItemAt(o).findDOMNodeOwner(t))return r;for(o=0;o<this.getActionCount();o++)if(r=null===(n=this.getActionAt(o))||void 0===n?void 0:n.findDOMNodeOwner(t))return r;return e.prototype.findDOMNodeOwner.call(this,t)},t.selectActionProperty=new si(ei.Versions.v1_1,"selectAction",["Action.ShowCard"]),Uo([(0,ei.property)(t.selectActionProperty)],t.prototype,"_selectAction",void 0),t}(ai);Bn.CardElementContainer=yi;var vi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._images=[],t.imageSize=qo.ImageSize.Medium,t.presentationStyle=qo.ImageSetPresentationStyle.Default,t.pixelOffset=0,t}return $o(t,e),t.prototype.internalRender=function(){var e=void 0;if(this._images.length>0){(e=document.createElement("div")).style.display="flex",e.style.flexWrap="wrap";for(var t=0,n=this._images;t<n.length;t++){var r=n[t];switch(this.imageSize){case qo.ImageSize.Small:r.size=qo.Size.Small;break;case qo.ImageSize.Large:r.size=qo.Size.Large;break;default:r.size=qo.Size.Medium}r.maxHeight=this.hostConfig.imageSet.maxImageHeight;var o=r.render();o&&(o.style.display="inline-flex",o.style.margin="0px",this.presentationStyle==qo.ImageSetPresentationStyle.Default&&(o.style.marginRight="10px"),Yo.appendChild(e,o))}this.presentationStyle==qo.ImageSetPresentationStyle.Stacked&&this.applyStackedPresentationStyle()}return e},t.prototype.applyStackedPresentationStyle=function(){if(this._images[0].renderedImageElement){var e=bi.parseNumericPixelDimension(this._images[0].renderedImageElement.style.height),t=this.getEffectiveBackgroundColor();if(e)new bi(this.pixelOffset,e,t).configureImagesArrayAsStackedLayout(this._images)}},t.prototype.getEffectiveBackgroundColor=function(){var e=this.getParentContainer(),t=null==e?void 0:e.getEffectiveStyle(),n=this.hostConfig.containerStyles.getStyleByName(t,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));return Yo.stringToCssColor(n.backgroundColor)},t.prototype.getItemCount=function(){return this._images.length},t.prototype.getItemAt=function(e){return this._images[e]},t.prototype.getFirstVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0},t.prototype.removeItem=function(e){if(e instanceof fi){var t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.getJsonTypeName=function(){return"ImageSet"},t.prototype.addImage=function(e){if(e.parent)throw new Error("This image already belongs to another ImageSet");this._images.push(e),e.setParent(this)},t.prototype.indexOf=function(e){return e instanceof fi?this._images.indexOf(e):-1},t.imagesProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_0,"images",fi,function(e,t){t.setParent(e)}),t.imageSizeProperty=new ei.EnumProperty(ei.Versions.v1_0,"imageSize",qo.ImageSize,qo.ImageSize.Medium),t.imagePresentationStyle=new ei.EnumProperty(ei.Versions.v1_6,"style",qo.ImageSetPresentationStyle,qo.ImageSetPresentationStyle.Default),t.pixelOffset=new ei.NumProperty(ei.Versions.v1_6,"offset",0,void 0),Uo([(0,ei.property)(t.imagesProperty)],t.prototype,"_images",void 0),Uo([(0,ei.property)(t.imageSizeProperty)],t.prototype,"imageSize",void 0),Uo([(0,ei.property)(t.imagePresentationStyle)],t.prototype,"presentationStyle",void 0),Uo([(0,ei.property)(t.pixelOffset)],t.prototype,"pixelOffset",void 0),t}(yi);Bn.ImageSet=vi;var bi=function(){function e(e,t,n){this.sign45=.7071,this.maxImageCounts=2,this.offset=0,this.normalizationConstant=0,this.border=5,this.dimension=0,this.dimension=t,this.normalizationConstant=2*(t*this.sign45-.5*t),this.offset=this.sign45*(Math.max(e,-t)-this.normalizationConstant),this.style=n||""}return e.prototype.moveImageRight=function(e){e.style.marginLeft=this.offset+"px"},e.prototype.moveImageUp=function(e){e.style.marginBottom=this.offset+this.dimension+"px"},e.prototype.moveImageDown=function(e){e.style.marginTop=this.offset+this.dimension+"px"},e.prototype.makeImageRound=function(e){e.style.borderRadius="50%",e.style.backgroundPosition="50% 50%",e.style.backgroundRepeat="no-repeat"},e.prototype.applyBorder=function(e){e.style.height=this.dimension+2*this.border+"px",e.style.border=this.border+"px solid "+this.style},e.prototype.configureImageForBottomLeft=function(e){this.moveImageDown(e),this.makeImageRound(e),this.applyBorder(e),e.style.zIndex="2"},e.prototype.configureImageForTopRight=function(e){this.moveImageUp(e),this.moveImageRight(e),this.makeImageRound(e),e.style.zIndex="1"},e.prototype.configureImagesArrayAsStackedLayout=function(e){1==e.length?e[0].renderedImageElement&&this.makeImageRound(e[0].renderedImageElement):e.length<=this.maxImageCounts&&e[0].renderedImageElement&&e[1].renderedImageElement&&(this.configureImageForBottomLeft(e[0].renderedImageElement),this.configureImageForTopRight(e[1].renderedImageElement))},e.parseNumericPixelDimension=function(e){if("px"==(null==e?void 0:e.substring(e.length-2)))return parseInt(e.substring(0,e.length-2))},e}(),xi=function(e){function t(t,n){var r=e.call(this)||this;return r.url=t,r.mimeType=n,r}return $o(t,e),t.prototype.isValid=function(){return!(!this.mimeType||!this.url)},t.mimeTypeProperty=new ei.StringProperty(ei.Versions.v1_1,"mimeType"),t.urlProperty=new ei.StringProperty(ei.Versions.v1_1,"url"),Uo([(0,ei.property)(t.mimeTypeProperty)],t.prototype,"mimeType",void 0),Uo([(0,ei.property)(t.urlProperty)],t.prototype,"url",void 0),t}(ei.SerializableObject);Bn.ContentSource=xi;var Ci=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.label=r,o}return $o(t,e),t.prototype.getSchemaKey=function(){return"CaptionSource"},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("track")).src=this.url,e.kind="captions",e.label=this.label),e},t.labelProperty=new ei.StringProperty(ei.Versions.v1_6,"label"),Uo([(0,ei.property)(t.labelProperty)],t.prototype,"label",void 0),t}(xi);Bn.CaptionSource=Ci;var wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"MediaSource"},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("source")).src=this.url,e.type=this.mimeType),e},t}(xi);Bn.MediaSource=wi;var Si=function(){function e(){}return e.prototype.play=function(){},Object.defineProperty(e.prototype,"posterUrl",{get:function(){return this._posterUrl},set:function(e){this._posterUrl=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedMediaType",{get:function(){},enumerable:!1,configurable:!0}),e}();Bn.MediaPlayer=Si;var ki=function(e){function t(t){var n=e.call(this)||this;return n.owner=t,n._selectedSources=[],n._captionSources=[],n.processSources(),n}return $o(t,e),t.prototype.processSources=function(){var e;this._selectedSources=[],this._captionSources=[],this._selectedMediaType=void 0;for(var n=0,r=this.owner.sources;n<r.length;n++){var o=r[n],i=o.mimeType?o.mimeType.split("/"):[];if(2===i.length){if(!this._selectedMediaType){var a=t.supportedMediaTypes.indexOf(i[0]);a>=0&&(this._selectedMediaType=t.supportedMediaTypes[a])}i[0]===this._selectedMediaType&&this._selectedSources.push(o)}}(e=this._captionSources).push.apply(e,this.owner.captionSources)},t.prototype.canPlay=function(){return this._selectedSources.length>0},t.prototype.fetchVideoDetails=function(){return Jo(this,void 0,void 0,function(){return Go(this,function(e){return[2]})})},t.prototype.render=function(){"video"===this._selectedMediaType?this._mediaElement=document.createElement("video"):this._mediaElement=document.createElement("audio"),this._mediaElement.setAttribute("aria-label",this.owner.altText?this.owner.altText:ni.Strings.defaults.mediaPlayerAriaLabel()),this._mediaElement.setAttribute("webkit-playsinline",""),this._mediaElement.setAttribute("playsinline",""),this._mediaElement.setAttribute("crossorigin",""),this._mediaElement.autoplay=!0,this._mediaElement.controls=!0,Yo.isMobileOS()&&(this._mediaElement.muted=!0),this._mediaElement.preload="none",this._mediaElement.style.width="100%";for(var e=0,t=this.owner.sources;e<t.length;e++){var n=t[e].render();Yo.appendChild(this._mediaElement,n)}for(var r=0,o=this.owner.captionSources;r<o.length;r++){var i=o[r];if("vtt"==i.mimeType){var a=i.render();Yo.appendChild(this._mediaElement,a)}}return this._mediaElement},t.prototype.play=function(){this._mediaElement&&this._mediaElement.play()},Object.defineProperty(t.prototype,"selectedMediaType",{get:function(){return this._selectedMediaType},enumerable:!1,configurable:!0}),t.supportedMediaTypes=["audio","video"],t}(Si);Bn.HTML5MediaPlayer=ki;var Pi=function(e){function t(t){return e.call(this)||this}return $o(t,e),t}(Si);Bn.CustomMediaPlayer=Pi;var Ei=function(e){function t(t,n){var r=e.call(this,t)||this;return r.iFrameTitle=n,t.length>=2&&(r._videoId=t[1]),r}return $o(t,e),t.prototype.canPlay=function(){return void 0!==this._videoId},t.prototype.render=function(){var e=document.createElement("div");e.style.position="relative",e.style.width="100%",e.style.height="0",e.style.paddingBottom="56.25%";var t=document.createElement("iframe");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.src=this.getEmbedVideoUrl(),t.frameBorder="0",this.iFrameTitle&&(t.title=this.iFrameTitle),t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",t.allowFullscreen=!0,e.appendChild(t),e},Object.defineProperty(t.prototype,"videoId",{get:function(){return this._videoId},enumerable:!1,configurable:!0}),t}(Pi);Bn.IFrameMediaMediaPlayer=Ei;var Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.fetchVideoDetails=function(){return Jo(this,void 0,void 0,function(){var e,t,n;return Go(this,function(r){switch(r.label){case 0:return e="https://vimeo.com/api/oembed.json?url=".concat(this.getEmbedVideoUrl()),[4,fetch(e)];case 1:return(t=r.sent()).ok?[4,t.json()]:[3,3];case 2:n=r.sent(),this.posterUrl=n.thumbnail_url,r.label=3;case 3:return[2]}})})},t.prototype.getEmbedVideoUrl=function(){return"https://player.vimeo.com/video/".concat(this.videoId,"?autoplay=1")},t}(Ei);Bn.VimeoPlayer=Ai;var Ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.fetchVideoDetails=function(){return Jo(this,void 0,void 0,function(){var e,t,n;return Go(this,function(r){switch(r.label){case 0:return e="https://api.dailymotion.com/video/".concat(this.videoId,"?fields=thumbnail_720_url"),[4,fetch(e)];case 1:return(t=r.sent()).ok?[4,t.json()]:[3,3];case 2:n=r.sent(),this.posterUrl=n.thumbnail_720_url,r.label=3;case 3:return[2]}})})},t.prototype.getEmbedVideoUrl=function(){return"https://www.dailymotion.com/embed/video/".concat(this.videoId,"?autoplay=1")},t}(Ei);Bn.DailymotionPlayer=Ii;var _i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.iFrameTitle=n,t.length>=3&&void 0!==t[2]&&(r._startTimeIndex=parseInt(t[2])),r}return $o(t,e),t.prototype.fetchVideoDetails=function(){return Jo(this,void 0,void 0,function(){return Go(this,function(e){return this.posterUrl=this.videoId?"https://img.youtube.com/vi/".concat(this.videoId,"/maxresdefault.jpg"):void 0,[2]})})},t.prototype.getEmbedVideoUrl=function(){var e="https://www.youtube.com/embed/".concat(this.videoId,"?autoplay=1");return void 0!==this._startTimeIndex&&(e+="&start=".concat(this._startTimeIndex)),e},t}(Ei);Bn.YouTubePlayer=_i;var Ti,ji,Mi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t.captionSources=[],t}return $o(t,e),t.prototype.createMediaPlayer=function(){for(var e=0,n=t.customMediaPlayers;e<n.length;e++)for(var r=n[e],o=0,i=this.sources;o<i.length;o++){var a=i[o];if(a.url)for(var s=0,l=r.urlPatterns;s<l.length;s++){var c=l[s].exec(a.url);if(null!==c)return r.createMediaPlayer(c)}}return new ki(this)},t.prototype.handlePlayButtonInvoke=function(e){if(this.hostConfig.media.allowInlinePlayback){if(e.preventDefault(),e.cancelBubble=!0,this.renderedElement){var n=this._mediaPlayer.render();oi(this.renderedElement),this.renderedElement.appendChild(n),this._mediaPlayer.play(),n.focus()}}else t.onPlay&&(e.preventDefault(),e.cancelBubble=!0,t.onPlay(this))},t.prototype.displayPoster=function(){return Jo(this,void 0,void 0,function(){var e,t,n,r,o,i,a=this;return Go(this,function(s){return this.renderedElement&&((e=document.createElement("div")).className=this.hostConfig.makeCssClassName("ac-media-poster"),e.setAttribute("role","contentinfo"),e.setAttribute("aria-label",this.altText?this.altText:ni.Strings.defaults.mediaPlayerAriaLabel()),e.style.position="relative",e.style.display="flex",(t=this.poster?this.poster:this._mediaPlayer.posterUrl)||(t=this.hostConfig.media.defaultPoster),t?((n=document.createElement("img")).style.width="100%",n.style.height="100%",n.setAttribute("role","presentation"),n.onerror=function(t){n.parentNode&&n.parentNode.removeChild(n),e.classList.add("empty"),e.style.minHeight="150px"},n.src=t,e.appendChild(n)):(e.classList.add("empty"),e.style.minHeight="150px"),this.hostConfig.supportsInteractivity&&this._mediaPlayer.canPlay()&&((r=document.createElement("div")).tabIndex=0,r.setAttribute("role","button"),r.setAttribute("aria-label",ni.Strings.defaults.mediaPlayerPlayMedia()),r.className=this.hostConfig.makeCssClassName("ac-media-playButton"),r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.onclick=function(e){a.handlePlayButtonInvoke(e)},r.onkeypress=function(e){"Enter"!==e.code&&"Space"!==e.code||a.handlePlayButtonInvoke(e)},(o=document.createElement("div")).className=this.hostConfig.makeCssClassName("ac-media-playButton-arrow"),o.style.width="12px",o.style.height="15px",o.style.borderTopWidth="7.5px",o.style.borderBottomWidth="7.5px",o.style.borderLeftWidth="12px",o.style.borderRightWidth="0",o.style.borderStyle="solid",o.style.borderTopColor="transparent",o.style.borderRightColor="transparent",o.style.borderBottomColor="transparent",o.style.transform="translate(1.2px,0px)",r.appendChild(o),(i=document.createElement("div")).style.position="absolute",i.style.left="0",i.style.top="0",i.style.width="100%",i.style.height="100%",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.appendChild(r),e.appendChild(i)),oi(this.renderedElement),this.renderedElement.appendChild(e)),[2]})})},t.prototype.internalRender=function(){var e=document.createElement("div");return e.className=this.hostConfig.makeCssClassName("ac-media"),e},t.prototype.render=function(){var t=this,n=e.prototype.render.call(this);return n&&(this._mediaPlayer=this.createMediaPlayer(),this._mediaPlayer.fetchVideoDetails().then(function(){return t.displayPoster()})),n},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.displayPoster()},t.prototype.getJsonTypeName=function(){return"Media"},t.prototype.getResourceInformation=function(){var e=[];if(this._mediaPlayer){var t=this.poster?this.poster:this.hostConfig.media.defaultPoster;t&&e.push({url:t,mimeType:"image"})}for(var n=0,r=this.sources;n<r.length;n++){var o=r[n];o.isValid()&&e.push({url:o.url,mimeType:o.mimeType})}for(var i=0,a=this.captionSources;i<a.length;i++){var s=a[i];s.isValid()&&e.push({url:s.url,mimeType:s.mimeType})}return e},Object.defineProperty(t.prototype,"selectedMediaType",{get:function(){return this._mediaPlayer.selectedMediaType},enumerable:!1,configurable:!0}),t.customMediaPlayers=[{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?youtube.com\/watch\?(?=.*v=([\w\d-_]+))(?=(?:.*t=(\d+))?).*/gi,/^(?:https?:\/\/)?youtu.be\/([\w\d-_]+)(?:\?t=(\d+))?/gi],createMediaPlayer:function(e){return new _i(e,ni.Strings.defaults.youTubeVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?vimeo.com\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new Ai(e,ni.Strings.defaults.vimeoVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?dailymotion.com\/video\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new Ii(e,ni.Strings.defaults.dailymotionVideoPlayer())}}],t.sourcesProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_1,"sources",wi),t.captionSourcesProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_6,"captionSources",Ci),t.posterProperty=new ei.StringProperty(ei.Versions.v1_1,"poster"),t.altTextProperty=new ei.StringProperty(ei.Versions.v1_1,"altText"),Uo([(0,ei.property)(t.sourcesProperty)],t.prototype,"sources",void 0),Uo([(0,ei.property)(t.captionSourcesProperty)],t.prototype,"captionSources",void 0),Uo([(0,ei.property)(t.posterProperty)],t.prototype,"poster",void 0),Uo([(0,ei.property)(t.altTextProperty)],t.prototype,"altText",void 0),t}(ai);Bn.Media=Mi,(ji=Ti||(Ti={}))[ji.InitialRender=0]="InitialRender",ji[ji.MouseEnterOnCard=1]="MouseEnterOnCard",ji[ji.MouseLeaveOnCard=2]="MouseLeaveOnCard",ji[ji.FocusLeave=3]="FocusLeave";var Ni=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputStyle=qo.InputStyle.Default,t}return $o(t,e),t.prototype.getAllLabelIds=function(){var e=[];return this.labelledBy&&e.push(this.labelledBy),this._renderedLabelElement&&e.push(this._renderedLabelElement.id),this._renderedErrorMessageElement&&e.push(this._renderedErrorMessageElement.id),e},t.prototype.updateInputControlAriaLabelledBy=function(){if(this._renderedInputControlElement){var e=this.getAllLabelIds();e.length>0?this._renderedInputControlElement.setAttribute("aria-labelledby",e.join(" ")):this._renderedInputControlElement.removeAttribute("aria-labelledby")}},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputControlElement",{get:function(){return this._renderedInputControlElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputControlContainerElement",{get:function(){return this._inputControlContainerElement},enumerable:!1,configurable:!0}),t.prototype.overrideInternalRender=function(){var e=this,t=this.hostConfig;this._outerContainerElement=document.createElement("div"),this._outerContainerElement.style.display="flex",this.labelPosition===qo.InputLabelPosition.Inline?this._outerContainerElement.style.flexDirection="row":this._outerContainerElement.style.flexDirection="column";var n=Yo.generateUniqueId();if(this.label){var r=new di;r.setParent(this),r.forElementId=n;var o=new ui(this.label);if(r.addInline(o),this.isRequired){o.init(t.inputs.label.requiredInputs);var i=new ui(t.inputs.label.requiredInputs.suffix);i.color=t.inputs.label.requiredInputs.suffixColor,i.ariaHidden=!0,r.addInline(i)}else o.init(t.inputs.label.optionalInputs);this._renderedLabelElement=r.render(),this._renderedLabelElement&&(this._renderedLabelElement.id=Yo.generateUniqueId(),this.labelPosition===qo.InputLabelPosition.Inline?this._renderedLabelElement.style.alignSelf="center":this._renderedLabelElement.style.marginBottom=t.getEffectiveSpacing(t.inputs.label.inputSpacing)+"px",this._outerContainerElement.appendChild(this._renderedLabelElement))}if(this._inputControlContainerElement=document.createElement("div"),this._inputControlContainerElement.className=t.makeCssClassName("ac-input-container"),this._inputControlContainerElement.style.display="flex","stretch"===this.height&&(this._inputControlContainerElement.style.alignItems="stretch",this._inputControlContainerElement.style.flex="1 1 auto"),this._renderedInputControlElement=this.internalRender(),this._renderedInputControlElement){if(this._renderedInputControlElement.id=n,this._renderedInputControlElement.style.minWidth="0px",this.isNullable&&this.isRequired&&(this._renderedInputControlElement.setAttribute("aria-required","true"),this._renderedInputControlElement.classList.add(t.makeCssClassName("ac-input-required"))),this._inputControlContainerElement.appendChild(this._renderedInputControlElement),this._outerContainerElement.appendChild(this._inputControlContainerElement),this._renderedLabelElement&&this.labelPosition===qo.InputLabelPosition.Inline)if(this.labelWidth){if(this.labelWidth.unit==qo.SizeUnit.Weight){var a=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=a.toString()+"%",this._inputControlContainerElement.style.width=(100-a).toString()+"%"}else if(this.labelWidth.unit==qo.SizeUnit.Pixel){var s=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=s.toString()+"px"}}else{var l=t.inputs.label.width;this._renderedLabelElement.style.width=l.toString()+"%",this._inputControlContainerElement.style.width=100-l+"%"}return this.updateVisualState(Ti.InitialRender),this._renderedInputControlElement&&(this._renderedInputControlElement.onblur=function(t){e.updateVisualState(Ti.FocusLeave)}),this.updateInputControlAriaLabelledBy(),this._outerContainerElement}this.resetDirtyState()},t.prototype.valueChanged=function(){var e,t,n;this.getRootElement().updateActionsEnabledState(),this.isValid()&&this.resetValidationFailureCue(),this.onValueChanged&&this.onValueChanged(this),t=(e=this).getRootElement(),(n=t&&t.onInputValueChanged?t.onInputValueChanged:Ia.onInputValueChanged)&&n(e)},t.prototype.resetValidationFailureCue=function(){this.renderedInputControlElement&&(this.renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.updateInputControlAriaLabelledBy(),this._renderedErrorMessageElement&&(this._outerContainerElement.removeChild(this._renderedErrorMessageElement),this._renderedErrorMessageElement=void 0))},t.prototype.showValidationErrorMessage=function(){if(this.renderedElement&&this.errorMessage&&Xo.GlobalSettings.displayInputValidationErrors){var e=new ci;e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),this._renderedErrorMessageElement=e.render(),this._renderedErrorMessageElement&&(this._renderedErrorMessageElement.id=Yo.generateUniqueId(),this._outerContainerElement.appendChild(this._renderedErrorMessageElement),this.updateInputControlAriaLabelledBy())}},Object.defineProperty(t.prototype,"allowRevealOnHoverStyle",{get:function(){return this.hostConfig.inputs&&this.hostConfig.inputs.allowRevealOnHoverStyle},enumerable:!1,configurable:!0}),t.prototype.shouldHideInputAdornersForRevealOnHover=function(e,t){var n=e===document.activeElement,r=this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover"),o=e.classList.contains(r);return t===Ti.InitialRender||t===Ti.FocusLeave&&!o||t===Ti.MouseLeaveOnCard&&!n},t.prototype.updateVisualState=function(e){this.allowRevealOnHoverStyle&&this._renderedInputControlElement&&this.inputStyle===qo.InputStyle.RevealOnHover&&(e===Ti.InitialRender?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onrender")):e===Ti.MouseEnterOnCard?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover")):e===Ti.MouseLeaveOnCard&&this._renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover")))},t.prototype.focus=function(){this._renderedInputControlElement&&this._renderedInputControlElement.focus()},t.prototype.isValid=function(){return!0},t.prototype.isDirty=function(){return this.value!==this._oldValue},t.prototype.resetDirtyState=function(){this._oldValue=this.value},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.id||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.inputsMustHaveUniqueId()),this.isRequired&&(this.label||t.addFailure(this,qo.ValidationEvent.RequiredInputsShouldHaveLabel,"Required inputs should have a label"),this.errorMessage||t.addFailure(this,qo.ValidationEvent.RequiredInputsShouldHaveErrorMessage,"Required inputs should have an error message"))},t.prototype.validateValue=function(){this.resetValidationFailureCue();var e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return!e&&this.renderedInputControlElement&&(this.renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.showValidationErrorMessage()),e},t.prototype.getAllInputs=function(e){return[this]},t.prototype.render=function(){var t=e.prototype.render.call(this);return this.resetDirtyState(),t},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.labelProperty=new ei.StringProperty(ei.Versions.v1_3,"label",!0),t.isRequiredProperty=new ei.BoolProperty(ei.Versions.v1_3,"isRequired",!1),t.errorMessageProperty=new ei.StringProperty(ei.Versions.v1_3,"errorMessage",!0),t.inputStyleProperty=new ei.EnumProperty(ei.Versions.v1_6,"inputStyle",qo.InputStyle,qo.InputStyle.Default,[{value:qo.InputStyle.RevealOnHover},{value:qo.InputStyle.Default}]),t.labelWidthProperty=new ei.CustomProperty(ei.Versions.v1_6,"labelWidth",function(e,t,n,r){var o=t.defaultValue,i=n[t.name],a=!1;if("number"!=typeof i||isNaN(i))if("string"==typeof i)try{o=Xo.SizeAndUnit.parse(i)}catch(s){a=!0}else a=!0;else((o=new Xo.SizeAndUnit(i,qo.SizeUnit.Weight)).physicalSize<0||o.physicalSize>100)&&(a=!0);return a&&(r.logParseEvent(e,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidInputLabelWidth()),o=void 0),o},function(e,t,n,r,o){r instanceof Xo.SizeAndUnit&&(r.unit===qo.SizeUnit.Pixel?o.serializeValue(n,"labelWidth",r.physicalSize+"px"):o.serializeNumber(n,"labelWidth",r.physicalSize))},void 0),t.labelPositionProperty=new ei.EnumProperty(ei.Versions.v1_6,"labelPosition",qo.InputLabelPosition,qo.InputLabelPosition.Above,[{value:qo.InputLabelPosition.Inline},{value:qo.InputLabelPosition.Above}]),Uo([(0,ei.property)(t.labelProperty)],t.prototype,"label",void 0),Uo([(0,ei.property)(t.isRequiredProperty)],t.prototype,"isRequired",void 0),Uo([(0,ei.property)(t.errorMessageProperty)],t.prototype,"errorMessage",void 0),Uo([(0,ei.property)(t.inputStyleProperty)],t.prototype,"inputStyle",void 0),Uo([(0,ei.property)(t.labelWidthProperty)],t.prototype,"labelWidth",void 0),Uo([(0,ei.property)(t.labelPositionProperty)],t.prototype,"labelPosition",void 0),t}(ai);Bn.Input=Ni;var Di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiline=!1,t.style=qo.InputTextStyle.Text,t}return $o(t,e),t.prototype.setupInput=function(e){var t=this;e.style.flex="1 1 auto",e.tabIndex=this.isDesignMode()?-1:0,this.placeholder&&(e.placeholder=this.placeholder,e.setAttribute("aria-label",this.placeholder)),this.defaultValue&&(e.value=this.defaultValue),this.maxLength&&this.maxLength>0&&(e.maxLength=this.maxLength),e.oninput=function(){t.valueChanged()},e.onkeypress=function(e){e.ctrlKey&&"Enter"===e.code&&t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&t.inlineAction.execute()}},t.prototype.internalRender=function(){var e;return this.isMultiline&&this.style!==qo.InputTextStyle.Password?((e=document.createElement("textarea")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput","ac-multiline"),"stretch"===this.height&&(e.style.height="initial")):((e=document.createElement("input")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput"),e.type=qo.InputTextStyle[this.style].toLowerCase()),this.setupInput(e),e},t.prototype.overrideInternalRender=function(){var t=this,n=e.prototype.overrideInternalRender.call(this);if(this.inlineAction){var r=document.createElement("button");if(r.className=this.hostConfig.makeCssClassName(this.inlineAction.isEffectivelyEnabled()?"ac-inlineActionButton":"ac-inlineActionButton-disabled"),r.onclick=function(e){t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t.inlineAction.execute())},this.inlineAction.iconUrl){r.classList.add("iconOnly");var o=document.createElement("img");o.style.height="100%",o.setAttribute("role","presentation"),o.style.display="none",o.onload=function(){o.style.removeProperty("display")},o.onerror=function(){r.removeChild(o),r.classList.remove("iconOnly"),r.classList.add("textOnly"),r.textContent=t.inlineAction&&t.inlineAction.title?t.inlineAction.title:ni.Strings.defaults.inlineActionTitle()},o.src=this.inlineAction.iconUrl,r.appendChild(o),r.title=this.inlineAction.title?this.inlineAction.title:ni.Strings.defaults.inlineActionTitle()}else r.classList.add("textOnly"),r.textContent=this.inlineAction.title?this.inlineAction.title:ni.Strings.defaults.inlineActionTitle();this.inlineAction.setupElementForAccessibility(r,!0),r.style.marginLeft="8px",this.inputControlContainerElement.appendChild(r)}return n},t.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(this.inlineAction||this.isMultiline||e.prototype.updateVisualState.call(this,t))},t.prototype.getJsonTypeName=function(){return"Input.Text"},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.inlineAction&&t.push(this.inlineAction),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.inlineAction&&(n=this.inlineAction.getActionById(t)),n},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){return!this.value||(!this.regex||new RegExp(this.regex,"g").test(this.value))},Object.defineProperty(t.prototype,"value",{get:function(){return this.renderedInputControlElement?(this.isMultiline,this.renderedInputControlElement.value):void 0},enumerable:!1,configurable:!0}),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),t.maxLengthProperty=new ei.NumProperty(ei.Versions.v1_0,"maxLength"),t.isMultilineProperty=new ei.BoolProperty(ei.Versions.v1_0,"isMultiline",!1),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.styleProperty=new ei.EnumProperty(ei.Versions.v1_0,"style",qo.InputTextStyle,qo.InputTextStyle.Text,[{value:qo.InputTextStyle.Text},{value:qo.InputTextStyle.Tel},{value:qo.InputTextStyle.Url},{value:qo.InputTextStyle.Email},{value:qo.InputTextStyle.Password,targetVersion:ei.Versions.v1_5}]),t.inlineActionProperty=new si(ei.Versions.v1_0,"inlineAction",["Action.ShowCard"]),t.regexProperty=new ei.StringProperty(ei.Versions.v1_3,"regex",!0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.maxLengthProperty)],t.prototype,"maxLength",void 0),Uo([(0,ei.property)(t.isMultilineProperty)],t.prototype,"isMultiline",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),Uo([(0,ei.property)(t.inlineActionProperty)],t.prototype,"inlineAction",void 0),Uo([(0,ei.property)(t.regexProperty)],t.prototype,"regex",void 0),t}(Ni);Bn.TextInput=Di;var Oi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.valueOn="true",t.valueOff="false",t.wrap=!1,t}return $o(t,e),t.prototype.updateInputControlAriaLabelledBy=function(){if(this._checkboxInputElement){var e=this.getAllLabelIds().join(" ");this._checkboxInputLabelElement&&this._checkboxInputLabelElement.id&&(e+=" "+this._checkboxInputLabelElement.id),e?this._checkboxInputElement.setAttribute("aria-labelledby",e):this._checkboxInputElement.removeAttribute("aria-labelledby")}},t.prototype.internalRender=function(){var e=this,t=document.createElement("div");if(t.className=this.hostConfig.makeCssClassName("ac-input","ac-toggleInput"),t.style.width="100%",t.style.display="flex",t.style.alignItems="center",this._checkboxInputElement=document.createElement("input"),this._checkboxInputElement.id=Yo.generateUniqueId(),this._checkboxInputElement.type="checkbox",this._checkboxInputElement.style.display="inline-block",this._checkboxInputElement.style.verticalAlign="middle",this._checkboxInputElement.style.margin="0",this._checkboxInputElement.style.flex="0 0 auto",this.title&&this._checkboxInputElement.setAttribute("aria-label",this.title),this.isRequired&&this._checkboxInputElement.setAttribute("aria-required","true"),this._checkboxInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue===this.valueOn&&(this._checkboxInputElement.checked=!0),this._oldCheckboxValue=this._checkboxInputElement.checked,this._checkboxInputElement.onchange=function(){e.valueChanged()},Yo.appendChild(t,this._checkboxInputElement),this.title||this.isDesignMode()){var n=new ci;if(n.setParent(this),n.forElementId=this._checkboxInputElement.id,n.hostConfig=this.hostConfig,n.text=this.title?this.title:this.getJsonTypeName(),n.useMarkdown=Xo.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,n.wrap=this.wrap,this._checkboxInputLabelElement=n.render(),this._checkboxInputLabelElement){this._checkboxInputLabelElement.id=Yo.generateUniqueId(),this._checkboxInputLabelElement.style.display="inline-block",this._checkboxInputLabelElement.style.flex="1 1 auto",this._checkboxInputLabelElement.style.marginLeft="6px",this._checkboxInputLabelElement.style.verticalAlign="middle";var r=document.createElement("div");r.style.width="6px",Yo.appendChild(t,r),Yo.appendChild(t,this._checkboxInputLabelElement)}}return t},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateVisualState=function(e){},t.prototype.getJsonTypeName=function(){return"Input.Toggle"},t.prototype.focus=function(){this._checkboxInputElement&&this._checkboxInputElement.focus()},t.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},t.prototype.isDirty=function(){return!!this._checkboxInputElement&&this._checkboxInputElement.checked!==this._oldCheckboxValue},Object.defineProperty(t.prototype,"value",{get:function(){return this._checkboxInputElement?this._checkboxInputElement.checked?this.valueOn:this.valueOff:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),t.titleProperty=new ei.StringProperty(ei.Versions.v1_0,"title"),t.valueOnProperty=new ei.StringProperty(ei.Versions.v1_0,"valueOn",!0,void 0,"true",function(e){return"true"}),t.valueOffProperty=new ei.StringProperty(ei.Versions.v1_0,"valueOff",!0,void 0,"false",function(e){return"false"}),t.wrapProperty=new ei.BoolProperty(ei.Versions.v1_2,"wrap",!1),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"title",void 0),Uo([(0,ei.property)(t.valueOnProperty)],t.prototype,"valueOn",void 0),Uo([(0,ei.property)(t.valueOffProperty)],t.prototype,"valueOff",void 0),Uo([(0,ei.property)(t.wrapProperty)],t.prototype,"wrap",void 0),t}(Ni);Bn.ToggleInput=Oi;var Vi=function(e){function t(t,n){var r=e.call(this)||this;return r.title=t,r.value=n,r}return $o(t,e),t.prototype.getSchemaKey=function(){return"Choice"},t.titleProperty=new ei.StringProperty(ei.Versions.v1_0,"title"),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"title",void 0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"value",void 0),t}(ei.SerializableObject);Bn.Choice=Vi;var Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"choices.data"},t.typeProperty=new ei.StringProperty(ei.Versions.v1_6,"type",!0,new RegExp("^Data.Query$")),t.datasetProperty=new ei.StringProperty(ei.Versions.v1_6,"dataset"),t.countProperty=new ei.NumProperty(ei.Versions.v1_6,"count"),t.skipProperty=new ei.NumProperty(ei.Versions.v1_6,"skip"),Uo([(0,ei.property)(t.typeProperty)],t.prototype,"type",void 0),Uo([(0,ei.property)(t.datasetProperty)],t.prototype,"dataset",void 0),Uo([(0,ei.property)(t.countProperty)],t.prototype,"count",void 0),Uo([(0,ei.property)(t.skipProperty)],t.prototype,"skip",void 0),t}(ei.SerializableObject);Bn.ChoiceSetInputDataQuery=Bi;var Ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiSelect=!1,t.wrap=!1,t.choices=[],t}return $o(t,e),Object.defineProperty(t.prototype,"isCompact",{get:function(){return!this.style||"compact"===this.style},set:function(e){this.style=e?void 0:"expanded"},enumerable:!1,configurable:!0}),t.getUniqueCategoryName=function(){var e="__ac-category"+t._uniqueCategoryCounter;return t._uniqueCategoryCounter++,e},t.prototype.isDynamicTypeahead=function(){return!!this.choicesData&&!!this.choicesData.dataset&&"Data.Query"===this.choicesData.type},t.prototype.getFilterForDynamicSearch=function(){var e,t;return null===(t=null===(e=this._filteredChoiceSet)||void 0===e?void 0:e.textInput)||void 0===t?void 0:t.value},t.prototype.renderChoices=function(e){var t;null===(t=this._filteredChoiceSet)||void 0===t||t.processResponse(e)},t.prototype.showLoadingIndicator=function(){var e;null===(e=this._filteredChoiceSet)||void 0===e||e.showLoadingIndicator()},t.prototype.removeLoadingIndicator=function(){var e;null===(e=this._filteredChoiceSet)||void 0===e||e.removeLoadingIndicator()},t.prototype.showErrorIndicator=function(e){var t;null===(t=this._filteredChoiceSet)||void 0===t||t.showErrorIndicator(e)},t.prototype.createPlaceholderOptionWhenValueDoesNotExist=function(){if(!this.value){var e=document.createElement("option");return e.selected=!0,e.disabled=!0,e.hidden=!0,e.value="",this.placeholder&&(e.text=this.placeholder),e}},t.prototype.internalApplyAriaCurrent=function(){if(this._selectElement){var e=this._selectElement.options;if(e)for(var t=0,n=Array.from(e);t<n.length;t++){var r=n[t];r.selected?r.setAttribute("aria-current","true"):r.removeAttribute("aria-current")}}},t.prototype.renderCompoundInput=function(e,t,n){var r=this,o=document.createElement("div");o.className=this.hostConfig.makeCssClassName("ac-input",e),o.style.width="100%",o.tabIndex=this.isDesignMode()?-1:0,this._toggleInputs=[],this._labels=[];for(var i=0,a=this.choices;i<a.length;i++){var s=a[i],l=document.createElement("input");l.id=Yo.generateUniqueId(),l.type=t,l.style.margin="0",l.style.display="inline-block",l.style.verticalAlign="middle",l.style.flex="0 0 auto",l.name=this.id?this.id:this._uniqueCategoryName,this.isRequired&&l.setAttribute("aria-required","true"),l.tabIndex=this.isDesignMode()?-1:0,s.value&&(l.value=s.value),s.title&&l.setAttribute("aria-label",s.title),n&&s.value&&n.indexOf(s.value)>=0&&(l.checked=!0),l.onchange=function(){r.valueChanged()},this._toggleInputs.push(l);var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",Yo.appendChild(c,l);var u=new ci;u.setParent(this),u.forElementId=l.id,u.hostConfig=this.hostConfig,u.text=s.title?s.title:"Choice "+this._toggleInputs.length,u.useMarkdown=Xo.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,u.wrap=this.wrap;var d=u.render();if(this._labels.push(d),d){d.id=Yo.generateUniqueId(),d.style.display="inline-block",d.style.flex="1 1 auto",d.style.marginLeft="6px",d.style.verticalAlign="middle";var p=document.createElement("div");p.style.width="6px",Yo.appendChild(c,p),Yo.appendChild(c,d)}Yo.appendChild(o,c)}return o},t.prototype.updateInputControlAriaLabelledBy=function(){if((this.isMultiSelect||"expanded"===this.style)&&this._toggleInputs&&this._labels)for(var t=this.getAllLabelIds(),n=0;n<this._toggleInputs.length;n++){var r=t.join(" "),o=this._labels[n];o&&o.id&&(r+=" "+o.id),r?this._toggleInputs[n].setAttribute("aria-labelledby",r):this._toggleInputs[n].removeAttribute("aria-labelledby")}else e.prototype.updateInputControlAriaLabelledBy.call(this)},t.prototype.internalRender=function(){var e=this;if(this._uniqueCategoryName=t.getUniqueCategoryName(),this.isDynamicTypeahead()){var n=new zi(t._uniqueCategoryCounter,this.choices,this.hostConfig);if(n.render(),n.textInput){this._textInput=n.textInput,this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute("aria-label",this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var r=Yo.debounce(function(){n.processStaticChoices(),e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute("placeholder"),e._textInput.removeAttribute("aria-label")):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute("aria-label",e.placeholder)))},this.hostConfig.inputs.debounceTimeInMilliSeconds);this._textInput.onclick=r,this._textInput.oninput=r}return n.parent=this,this._filteredChoiceSet=n,n.renderedElement}if(this.isMultiSelect)return this.renderCompoundInput("ac-choiceSetInput-multiSelect","checkbox",this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):void 0);if("expanded"===this.style)return this.renderCompoundInput("ac-choiceSetInput-expanded","radio",this.defaultValue?[this.defaultValue]:void 0);if("filtered"===this.style){var o=document.createElement("div");o.style.width="100%",this._textInput=document.createElement("input"),this._textInput.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered"),this._textInput.type="text",this._textInput.style.width="100%",this._textInput.oninput=function(){e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute("placeholder"),e._textInput.removeAttribute("aria-label")):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute("aria-label",e.placeholder)))},this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute("aria-label",this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var i=document.createElement("datalist");i.id=Yo.generateUniqueId();for(var a=0,s=this.choices;a<s.length;a++){var l=s[a],c=document.createElement("option");l.title&&(c.value=l.title,c.setAttribute("aria-label",l.title)),c.tabIndex=this.isDesignMode()?-1:0,i.appendChild(c)}return this._textInput.setAttribute("list",i.id),o.append(this._textInput,i),o}this._selectElement=document.createElement("select"),this._selectElement.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-compact"),this._selectElement.style.width="100%",this._selectElement.tabIndex=this.isDesignMode()?-1:0;var u=this.createPlaceholderOptionWhenValueDoesNotExist();Yo.appendChild(this._selectElement,u);for(var d=0,p=this.choices;d<p.length;d++){l=p[d];(c=document.createElement("option")).value=l.value,l.title&&(c.text=l.title,c.setAttribute("aria-label",l.title)),c.tabIndex=this.isDesignMode()?-1:0,l.value===this.defaultValue&&(c.selected=!0),Yo.appendChild(this._selectElement,c)}return this._selectElement.onchange=function(){e.internalApplyAriaCurrent(),e.valueChanged()},this.internalApplyAriaCurrent(),this._selectElement},t.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(!this.isMultiSelect&&this.isCompact&&(e.prototype.updateVisualState.call(this,t),this._selectElement&&this.inputStyle===qo.InputStyle.RevealOnHover&&(this.shouldHideInputAdornersForRevealOnHover(this._selectElement,t)?(this._selectElement.style.appearance="none",this._selectElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus"))):(this._selectElement.style.appearance="auto",this._selectElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus"))))))},t.prototype.getJsonTypeName=function(){return"Input.ChoiceSet"},t.prototype.focus=function(){this._toggleInputs&&(this.isMultiSelect||"expanded"===this.style)?this._toggleInputs.length>0&&this._toggleInputs[0].focus():this._textInput?this._textInput.focus():e.prototype.focus.call(this)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),0===this.choices.length&&t.addFailure(this,qo.ValidationEvent.CollectionCantBeEmpty,ni.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(var n=0,r=this.choices;n<r.length;n++){var o=r[n];o.title&&o.value||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(this._textInput){if(""===this.value||this.value===this.placeholder)return!0;for(var t=0,n=this.choices;t<n.length;t++){var r=n[t];if(this.value===r.value)return!0}if(this.dynamicChoices)for(var o=0,i=this.dynamicChoices;o<i.length;o++){r=i[o];if(this.value===r)return!0}return!1}return e.prototype.isValid.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.isMultiSelect){if(!this._toggleInputs||0===this._toggleInputs.length)return;for(var e="",t=0,n=this._toggleInputs;t<n.length;t++){(l=n[t]).checked&&(""!==e&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=l.value)}return e||void 0}if(this._selectElement)return this._selectElement.selectedIndex>0?this._selectElement.value:void 0;if(this._textInput){for(var r=0,o=this.choices;r<o.length;r++){var i=o[r];if(i.title&&this._textInput.value===i.title)return i.value}return this._textInput.value}if(this._toggleInputs&&this._toggleInputs.length>0)for(var a=0,s=this._toggleInputs;a<s.length;a++){var l;if((l=s[a]).checked)return l.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dynamicChoices",{get:function(){var e;return null===(e=this._filteredChoiceSet)||void 0===e?void 0:e.dynamicChoices},enumerable:!1,configurable:!0}),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),t.choicesProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_0,"choices",Vi),t.choicesDataProperty=new ei.SerializableObjectProperty(ei.Versions.v1_6,"choices.data",Bi),t.styleProperty=new ei.ValueSetProperty(ei.Versions.v1_0,"style",[{value:"compact"},{value:"expanded"},{value:"filtered",targetVersion:ei.Versions.v1_5}],"compact"),t.isMultiSelectProperty=new ei.BoolProperty(ei.Versions.v1_0,"isMultiSelect",!1),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.wrapProperty=new ei.BoolProperty(ei.Versions.v1_2,"wrap",!1),t._uniqueCategoryCounter=0,Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),Uo([(0,ei.property)(t.isMultiSelectProperty)],t.prototype,"isMultiSelect",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),Uo([(0,ei.property)(t.wrapProperty)],t.prototype,"wrap",void 0),Uo([(0,ei.property)(t.choicesProperty)],t.prototype,"choices",void 0),Uo([(0,ei.property)(t.choicesDataProperty)],t.prototype,"choicesData",void 0),t}(Ni);Bn.ChoiceSetInput=Ri;var zi=function(){function e(e,t,n){this._choiceSetId=e,this._choices=t,this._dynamicChoices=[],this._visibleChoiceCount=0,this._hostConfig=n}return e.prototype.render=function(){var e=this,t=document.createElement("div");t.style.position="relative",t.style.width="100%",this._textInput=document.createElement("input"),this._textInput.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered"),this._textInput.type="text",this._textInput.style.width="100%",this._textInput.onkeydown=function(t){"ArrowDown"===t.key&&e.focusChoice(0)},this._dropdown=document.createElement("div"),this._dropdown.style.display="none",this._dropdown.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered-dropdown"),t.append(this._textInput,this._dropdown),document.onclick=function(t){if(e._dropdown){for(var n=e._dropdown.firstChild;n&&t.target!==n;)n=n.nextSibling;(n||t.target!==e._textInput)&&(e._dropdown.style.display="none")}},this._renderedElement=t},e.prototype.createChoice=function(e,t,n){var r=this,o=document.createElement("span");return o.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-choice"),o.id="ac-choiceSetInput-".concat(this._choiceSetId,"-choice-").concat(n),o.innerHTML=e.replace(t,"<b>".concat(t,"</b>")),o.tabIndex=-1,o.addEventListener("focusin",function(){o.classList.add("focused")}),o.addEventListener("focusout",function(){o.classList.remove("focused")}),o.onclick=function(){r._textInput&&(r._textInput.value=o.innerText),r._dropdown&&(r._dropdown.style.display="none")},o.onkeydown=function(e){"ArrowDown"===e.key?r.focusChoice(n+1):"ArrowUp"===e.key?r.focusChoice(n-1):"Enter"===e.key&&o.click()},o.onmouseover=function(){r.focusChoice(n)},o},e.prototype.focusChoice=function(e){var t=document.getElementById("ac-choiceSetInput-".concat(this._choiceSetId,"-choice-").concat(e));if(t)t.focus();else if(this._textInput){this._textInput.focus();var n=this._textInput.value.length;this._textInput.setSelectionRange(n,n)}},e.prototype.filterChoices=function(e){var t,n,r=null===(t=this._textInput)||void 0===t?void 0:t.value.toLowerCase();if(r)for(var o=0,i=e?this._dynamicChoices:this._choices;o<i.length;o++){var a=i[o];if(a.title){var s=a.title.toLowerCase().indexOf(r);if(-1!==s){var l=a.title.substring(s,s+r.length),c=this.createChoice(a.title,l,this._visibleChoiceCount++);null===(n=this._dropdown)||void 0===n||n.appendChild(c)}}}},e.prototype.getStatusIndicator=function(e){if(e){if(!this._errorIndicator){var t=document.createElement("div");t.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-statusIndicator","ac-choiceSetInput-errorIndicator"),this._errorIndicator=t}return this._errorIndicator.innerText=e,this._errorIndicator}if(!this._loadingIndicator){var n=document.createElement("div");n.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-statusIndicator"),this._loadingIndicator=n}return this._loadingIndicator.innerText=0===this._visibleChoiceCount?"Loading...":"Loading more...",this._loadingIndicator},e.prototype.resetDropdown=function(){this._dynamicChoices=[],this._dropdown&&(Yo.clearElementChildren(this._dropdown),this._visibleChoiceCount=0)},e.prototype.showDropdown=function(){var e;(null===(e=this._dropdown)||void 0===e?void 0:e.hasChildNodes)&&(this._dropdown.style.display="block")},e.prototype.processStaticChoices=function(){this.resetDropdown(),this.filterChoices(),this.showDropdown()},e.prototype.processResponse=function(e){this._dynamicChoices=e,this.filterChoices(!0),0===this._visibleChoiceCount&&this.showErrorIndicator("No results found.")},e.prototype.showLoadingIndicator=function(){var e,t=this.getStatusIndicator();null===(e=this._dropdown)||void 0===e||e.appendChild(t),this.showDropdown()},e.prototype.removeLoadingIndicator=function(){var e,t;this._loadingIndicator&&(null===(e=this._dropdown)||void 0===e?void 0:e.contains(this._loadingIndicator))&&(null===(t=this._dropdown)||void 0===t||t.removeChild(this._loadingIndicator))},e.prototype.showErrorIndicator=function(e){var t;this.removeLoadingIndicator();var n=this.getStatusIndicator(e);null===(t=this._dropdown)||void 0===t||t.appendChild(n)},Object.defineProperty(e.prototype,"dynamicChoices",{get:function(){var e;return null===(e=this._dynamicChoices)||void 0===e?void 0:e.map(function(e){return e.title})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:Zo.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){this._parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textInput",{get:function(){return this._textInput},enumerable:!1,configurable:!0}),e}();Bn.FilteredChoiceSet=zi;var Li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.internalRender=function(){var e=this;return this._numberInputElement=document.createElement("input"),this._numberInputElement.setAttribute("type","number"),void 0!==this.min&&this._numberInputElement.setAttribute("min",this.min.toString()),void 0!==this.max&&this._numberInputElement.setAttribute("max",this.max.toString()),this._numberInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-numberInput"),this._numberInputElement.style.width="100%",this._numberInputElement.tabIndex=this.isDesignMode()?-1:0,void 0!==this.defaultValue&&(this._numberInputElement.valueAsNumber=this.defaultValue),this.placeholder&&(this._numberInputElement.placeholder=this.placeholder,this._numberInputElement.setAttribute("aria-label",this.placeholder)),this._numberInputElement.oninput=function(){e.valueChanged()},this._numberInputElement},t.prototype.getJsonTypeName=function(){return"Input.Number"},t.prototype.isSet=function(){return void 0!==this.value&&!isNaN(this.value)},t.prototype.isValid=function(){if(void 0===this.value)return!this.isRequired;var e=!0;return void 0!==this.min&&(e=e&&this.value>=this.min),void 0!==this.max&&(e=e&&this.value<=this.max),e},Object.defineProperty(t.prototype,"value",{get:function(){return this._numberInputElement?this._numberInputElement.valueAsNumber:void 0},set:function(e){e&&this._numberInputElement&&(this._numberInputElement.value=e.toString())},enumerable:!1,configurable:!0}),t.valueProperty=new ei.NumProperty(ei.Versions.v1_0,"value"),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.minProperty=new ei.NumProperty(ei.Versions.v1_0,"min"),t.maxProperty=new ei.NumProperty(ei.Versions.v1_0,"max"),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.minProperty)],t.prototype,"min",void 0),Uo([(0,ei.property)(t.maxProperty)],t.prototype,"max",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(Ni);Bn.NumberInput=Li;var Hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.internalRender=function(){var e=this;return this._dateInputElement=document.createElement("input"),this._dateInputElement.setAttribute("type","date"),this.min&&this._dateInputElement.setAttribute("min",this.min),this.max&&this._dateInputElement.setAttribute("max",this.max),this.placeholder&&(this._dateInputElement.placeholder=this.placeholder,this._dateInputElement.setAttribute("aria-label",this.placeholder)),this._dateInputElement.tabIndex=this.isDesignMode()?-1:0,this._dateInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dateInput"),this._dateInputElement.style.width="100%",this._dateInputElement.oninput=function(){e.valueChanged()},this.defaultValue&&(this._dateInputElement.value=this.defaultValue),this._dateInputElement},t.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._dateInputElement&&this.inputStyle===qo.InputStyle.RevealOnHover)){var n=this.shouldHideInputAdornersForRevealOnHover(this._dateInputElement,t);n?this._dateInputElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")):this._dateInputElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")),Ca(this._dateInputElement,n)}},t.prototype.getJsonTypeName=function(){return"Input.Date"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=new Date(this.value),t=!0;if(this.min){var n=new Date(this.min);t=t&&e>=n}if(this.max){var r=new Date(this.max);t=t&&e<=r}return t},Object.defineProperty(t.prototype,"value",{get:function(){return this._dateInputElement?this._dateInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new ei.StringProperty(ei.Versions.v1_0,"value"),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.minProperty=new ei.StringProperty(ei.Versions.v1_0,"min"),t.maxProperty=new ei.StringProperty(ei.Versions.v1_0,"max"),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.minProperty)],t.prototype,"min",void 0),Uo([(0,ei.property)(t.maxProperty)],t.prototype,"max",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(Ni);Bn.DateInput=Hi;var Fi=function(e){function t(t,n){var r=e.call(this,t,n,function(e,t,n,r){var o=n[t.name];if("string"==typeof o&&o&&/^[0-9]{2}:[0-9]{2}$/.test(o))return o},function(e,t,n,r,o){o.serializeValue(n,t.name,r)})||this;return r.targetVersion=t,r.name=n,r}return $o(t,e),t}(ei.CustomProperty);Bn.TimeProperty=Fi;var Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.convertTimeStringToDate=function(e){return new Date("1973-09-04T"+e+":00Z")},t.prototype.internalRender=function(){var e=this;return this._timeInputElement=document.createElement("input"),this._timeInputElement.setAttribute("type","time"),this.min&&this._timeInputElement.setAttribute("min",this.min),this.max&&this._timeInputElement.setAttribute("max",this.max),this._timeInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-timeInput"),this._timeInputElement.style.width="100%",this._timeInputElement.oninput=function(){e.valueChanged()},this.placeholder&&(this._timeInputElement.placeholder=this.placeholder,this._timeInputElement.setAttribute("aria-label",this.placeholder)),this._timeInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue&&(this._timeInputElement.value=this.defaultValue),this._timeInputElement},t.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._timeInputElement&&this.inputStyle===qo.InputStyle.RevealOnHover)){var n=this.shouldHideInputAdornersForRevealOnHover(this._timeInputElement,t);n?this._timeInputElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")):this._timeInputElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")),Ca(this._timeInputElement,n)}},t.prototype.getJsonTypeName=function(){return"Input.Time"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=t.convertTimeStringToDate(this.value),n=!0;if(this.min){var r=t.convertTimeStringToDate(this.min);n=n&&e>=r}if(this.max){var o=t.convertTimeStringToDate(this.max);n=n&&e<=o}return n},Object.defineProperty(t.prototype,"value",{get:function(){return this._timeInputElement?this._timeInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new Fi(ei.Versions.v1_0,"value"),t.placeholderProperty=new ei.StringProperty(ei.Versions.v1_0,"placeholder"),t.minProperty=new Fi(ei.Versions.v1_0,"min"),t.maxProperty=new Fi(ei.Versions.v1_0,"max"),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),Uo([(0,ei.property)(t.minProperty)],t.prototype,"min",void 0),Uo([(0,ei.property)(t.maxProperty)],t.prototype,"max",void 0),Uo([(0,ei.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(Ni);Bn.TimeInput=Wi;var $i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=qo.ActionStyle.Default,t.mode=qo.ActionMode.Primary,t._state=0,t._isFocusable=!0,t}return $o(t,e),t.prototype.renderButtonContent=function(){if(this.renderedElement){var e=this.hostConfig,t=document.createElement("div");if(t.style.overflow="hidden",t.style.textOverflow="ellipsis",e.actions.iconPlacement===qo.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(t.style.whiteSpace="nowrap"),this.title&&(t.innerText=this.title),this.iconUrl){var n=document.createElement("img");n.src=this.iconUrl,n.style.width=e.actions.iconSize+"px",n.style.height=e.actions.iconSize+"px",n.style.flex="0 0 auto",e.actions.iconPlacement===qo.ActionIconPlacement.AboveTitle?(this.renderedElement.classList.add("iconAbove"),this.renderedElement.style.flexDirection="column",this.title&&(n.style.marginBottom="6px")):(this.renderedElement.classList.add("iconLeft"),n.style.maxHeight="100%",this.title&&(n.style.marginRight="6px")),this.renderedElement.appendChild(n),this.renderedElement.appendChild(t)}else this.renderedElement.classList.add("noIcon"),this.renderedElement.appendChild(t)}},t.prototype.getParentContainer=function(){return this.parent instanceof ma?this.parent:this.parent?this.parent.getParentContainer():void 0},t.prototype.isDesignMode=function(){var e=this.getRootObject();return e instanceof ai&&e.isDesignMode()},t.prototype.updateCssClasses=function(){var e,t;if(this.parent&&this.renderedElement){var n=this.parent.hostConfig;this.renderedElement.className=n.makeCssClassName(this.isEffectivelyEnabled()?"ac-pushButton":"ac-pushButton-disabled");var r=this.getParentContainer();if(r){var o=r.getEffectiveStyle();o&&this.renderedElement.classList.add("style-"+o)}switch(this.renderedElement.tabIndex=!this.isDesignMode()&&this.isFocusable?0:-1,this._state){case 0:break;case 1:this.renderedElement.classList.add(n.makeCssClassName("expanded"));break;case 2:this.renderedElement.classList.add(n.makeCssClassName("subdued"))}this.style&&this.isEffectivelyEnabled()&&(this.style===qo.ActionStyle.Positive?(e=this.renderedElement.classList).add.apply(e,n.makeCssClassNames("primary","style-positive")):(t=this.renderedElement.classList).add.apply(t,n.makeCssClassNames("style-"+this.style.toLowerCase())))}},t.prototype.getDefaultSerializationContext=function(){return new Ta},t.prototype.internalGetReferencedInputs=function(){return{}},t.prototype.internalPrepareForExecution=function(e){},t.prototype.internalValidateInputs=function(e){var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=e[r[n]];o.validateValue()||t.push(o)}return t},t.prototype.shouldSerialize=function(e){return void 0!==e.actionRegistry.findByName(this.getJsonTypeName())},t.prototype.raiseExecuteActionEvent=function(){var e,t,n;this.onExecute&&this.onExecute(this),t=(e=this).parent?e.parent.getRootElement():void 0,n=t&&t.onExecuteAction?t.onExecuteAction:Ia.onExecuteAction,e.prepareForExecution()&&n&&n(e)},t.prototype.internalAfterExecute=function(){var e=this.getRootObject();e instanceof ai&&e.updateActionsEnabledState()},t.prototype.getHref=function(){return""},t.prototype.getAriaRole=function(){var e=this.getAriaRoleFromEnum();return null!=e?e:"button"},t.prototype.getAriaRoleFromEnum=function(){switch(this.role){case qo.ActionRole.Button:return"button";case qo.ActionRole.Link:return"link";case qo.ActionRole.Menu:return"menu";case qo.ActionRole.MenuItem:return"menuitem";case qo.ActionRole.Tab:return"tab";default:return}},t.prototype.setupElementForAccessibility=function(e,t){void 0===t&&(t=!1),e.tabIndex=this.isEffectivelyEnabled()&&!this.isDesignMode()?0:-1,e.setAttribute("role",this.getAriaRole()),e instanceof HTMLButtonElement&&(e.disabled=!this.isEffectivelyEnabled()),this.isEffectivelyEnabled()?(e.removeAttribute("aria-disabled"),e.classList.add(this.hostConfig.makeCssClassName("ac-selectable"))):e.setAttribute("aria-disabled","true"),this.title?(e.setAttribute("aria-label",this.title),e.title=this.title):(e.removeAttribute("aria-label"),e.removeAttribute("title")),this.tooltip&&(t&&!this.title&&e.setAttribute("aria-label",this.tooltip),e.title=this.tooltip)},t.prototype.parse=function(t,n){return e.prototype.parse.call(this,t,n||new Ta)},t.prototype.render=function(){var e=this,t=document.createElement("button");t.type="button",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.onclick=function(t){e.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.execute())},this._renderedElement=t,this.renderButtonContent(),this.updateCssClasses(),this.setupElementForAccessibility(t)},t.prototype.execute=function(){this._actionCollection&&this._actionCollection.actionExecuted(this),this.raiseExecuteActionEvent(),this.internalAfterExecute()},t.prototype.prepareForExecution=function(){var e=this.getReferencedInputs(),t=this.internalValidateInputs(e);return t.length>0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)},t.prototype.remove=function(){return!!this._actionCollection&&this._actionCollection.removeAction(this)},t.prototype.getAllInputs=function(e){return[]},t.prototype.getAllActions=function(){return[this]},t.prototype.getResourceInformation=function(){return this.iconUrl?[{url:this.iconUrl,mimeType:"image"}]:[]},t.prototype.getActionById=function(e){return this.id===e?this:void 0},t.prototype.getReferencedInputs=function(){return this.internalGetReferencedInputs()},t.prototype.validateInputs=function(){return this.internalValidateInputs(this.getReferencedInputs())},t.prototype.updateEnabledState=function(){},t.prototype.isEffectivelyEnabled=function(){return this.isEnabled},Object.defineProperty(t.prototype,"isPrimary",{get:function(){return this.style===qo.ActionStyle.Positive},set:function(e){e?this.style=qo.ActionStyle.Positive:this.style===qo.ActionStyle.Positive&&(this.style=qo.ActionStyle.Default)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this.parent?this.parent.hostConfig:Zo.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(this._state=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusable",{get:function(){return this._isFocusable},set:function(e){this._isFocusable!==e&&(this._isFocusable=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),t.titleProperty=new ei.StringProperty(ei.Versions.v1_0,"title"),t.iconUrlProperty=new ei.StringProperty(ei.Versions.v1_1,"iconUrl"),t.styleProperty=new ei.ValueSetProperty(ei.Versions.v1_2,"style",[{value:qo.ActionStyle.Default},{value:qo.ActionStyle.Positive},{value:qo.ActionStyle.Destructive}],qo.ActionStyle.Default),t.modeProperty=new ei.ValueSetProperty(ei.Versions.v1_5,"mode",[{value:qo.ActionMode.Primary},{value:qo.ActionMode.Secondary}],qo.ActionMode.Primary),t.tooltipProperty=new ei.StringProperty(ei.Versions.v1_5,"tooltip"),t.isEnabledProperty=new ei.BoolProperty(ei.Versions.v1_5,"isEnabled",!0),t.roleProperty=new ei.EnumProperty(ei.Versions.v1_6,"role",qo.ActionRole),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"title",void 0),Uo([(0,ei.property)(t.iconUrlProperty)],t.prototype,"iconUrl",void 0),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",void 0),Uo([(0,ei.property)(t.modeProperty)],t.prototype,"mode",void 0),Uo([(0,ei.property)(t.tooltipProperty)],t.prototype,"tooltip",void 0),Uo([(0,ei.property)(t.isEnabledProperty)],t.prototype,"isEnabled",void 0),Uo([(0,ei.property)(t.roleProperty)],t.prototype,"role",void 0),t}(Ko.CardObject);Bn.Action=$i;var Ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabledUnlessAssociatedInputsChange=!1,t._isPrepared=!1,t._areReferencedInputsDirty=!1,t}return $o(t,e),t.prototype.internalGetReferencedInputs=function(){var e={};if("none"!==this.associatedInputs){for(var t=this.parent,n=[];t;)n.push.apply(n,t.getAllInputs(!1)),t=t.parent;for(var r=0,o=n;r<o.length;r++){var i=o[r];i.id&&(e[i.id]=i)}}return e},t.prototype.internalPrepareForExecution=function(e){if(this._originalData?this._processedData=JSON.parse(JSON.stringify(this._originalData)):this._processedData={},this._processedData&&e)for(var t=0,n=Object.keys(e);t<n.length;t++){var r=e[n[t]];r.id&&r.isSet()&&(this._processedData[r.id]="string"==typeof r.value?r.value:r.value.toString())}this._isPrepared=!0},t.prototype.internalAfterExecute=function(){Xo.GlobalSettings.resetInputsDirtyStateAfterActionExecution&&this.resetReferencedInputsDirtyState()},t.prototype.resetReferencedInputsDirtyState=function(){var e=this.getReferencedInputs();if(this._areReferencedInputsDirty=!1,e)for(var t=0,n=Object.keys(e);t<n.length;t++){e[n[t]].resetDirtyState()}},t.prototype.updateEnabledState=function(){this._areReferencedInputsDirty=!1;var e=this.getReferencedInputs();if(e)for(var t=0,n=Object.keys(e);t<n.length;t++){if(e[n[t]].isDirty()){this._areReferencedInputsDirty=!0;break}}this.updateCssClasses(),this._renderedElement&&this.setupElementForAccessibility(this._renderedElement)},t.prototype.isEffectivelyEnabled=function(){var t=e.prototype.isEffectivelyEnabled.call(this);return this.disabledUnlessAssociatedInputsChange?t&&this._areReferencedInputsDirty:t},Object.defineProperty(t.prototype,"data",{get:function(){return this._isPrepared?this._processedData:this._originalData},set:function(e){this._originalData=e,this._isPrepared=!1},enumerable:!1,configurable:!0}),t.dataProperty=new ei.PropertyDefinition(ei.Versions.v1_0,"data"),t.associatedInputsProperty=new ei.CustomProperty(ei.Versions.v1_3,"associatedInputs",function(e,t,n,r){var o=n[t.name];if(void 0!==o&&"string"==typeof o)return"none"===o.toLowerCase()?"none":"auto"},function(e,t,n,r,o){o.serializeValue(n,t.name,r)}),t.disabledUnlessAssociatedInputsChangeProperty=new ei.BoolProperty(ei.Versions.v1_6,"disabledUnlessAssociatedInputsChange",!1),Uo([(0,ei.property)(t.dataProperty)],t.prototype,"_originalData",void 0),Uo([(0,ei.property)(t.associatedInputsProperty)],t.prototype,"associatedInputs",void 0),Uo([(0,ei.property)(t.disabledUnlessAssociatedInputsChangeProperty)],t.prototype,"disabledUnlessAssociatedInputsChange",void 0),t}($i);Bn.SubmitActionBase=Ui;var Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.JsonTypeName="Action.Submit",t}(Ui),Gi=Bn.SubmitAction=Ji,qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t}(Ui);Bn.UniversalAction=qi;var Xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.JsonTypeName="Action.Execute",t.verbProperty=new ei.StringProperty(ei.Versions.v1_4,"verb"),Uo([(0,ei.property)(t.verbProperty)],t.prototype,"verb",void 0),t}(qi),Yi=Bn.ExecuteAction=Xi,Zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.JsonTypeName="Data.Query",t.datasetProperty=new ei.StringProperty(ei.Versions.v1_6,"dataset"),t.filterProperty=new ei.StringProperty(ei.Versions.v1_6,"filter"),t.countProperty=new ei.NumProperty(ei.Versions.v1_6,"count"),t.skipProperty=new ei.NumProperty(ei.Versions.v1_6,"skip"),Uo([(0,ei.property)(t.datasetProperty)],t.prototype,"dataset",void 0),Uo([(0,ei.property)(t.filterProperty)],t.prototype,"filter",void 0),Uo([(0,ei.property)(t.countProperty)],t.prototype,"count",void 0),Uo([(0,ei.property)(t.skipProperty)],t.prototype,"skip",void 0),t}(qi);Bn.DataQuery=Zi;var Qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.getAriaRole=function(){var e=this.getAriaRoleFromEnum();return null!=e?e:"link"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("url"))},t.prototype.getHref=function(){return this.url},t.urlProperty=new ei.StringProperty(ei.Versions.v1_0,"url"),t.JsonTypeName="Action.OpenUrl",Uo([(0,ei.property)(t.urlProperty)],t.prototype,"url",void 0),t}($i),Ki=Bn.OpenUrlAction=Qi,ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.targetElements={},t}return $o(t,e),t.prototype.updateAriaControlsAttribute=function(){if(this.targetElements){var e=Object.keys(this.targetElements);this._renderedElement&&(e.length>0?this._renderedElement.setAttribute("aria-controls",e.join(" ")):this._renderedElement.removeAttribute("aria-controls"))}},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.targetElements||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("targetElements"))},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.render=function(){e.prototype.render.call(this),this.updateAriaControlsAttribute()},t.prototype.execute=function(){if(e.prototype.execute.call(this),this.parent)for(var t=0,n=Object.keys(this.targetElements);t<n.length;t++){var r=n[t],o=this.parent.getRootElement().getElementById(r);o&&("boolean"==typeof this.targetElements[r]?o.isVisible=this.targetElements[r]:o.isVisible=!o.isVisible)}},t.prototype.addTargetElement=function(e,t){void 0===t&&(t=void 0),this.targetElements[e]=t,this.updateAriaControlsAttribute()},t.prototype.removeTargetElement=function(e){delete this.targetElements[e],this.updateAriaControlsAttribute()},t.targetElementsProperty=new ei.CustomProperty(ei.Versions.v1_2,"targetElements",function(e,t,n,r){var o={};if(Array.isArray(n[t.name]))for(var i=0,a=n[t.name];i<a.length;i++){var s=a[i];if("string"==typeof s)o[s]=void 0;else if("object"==typeof s){var l=s.elementId;"string"==typeof l&&(o[l]=Yo.parseBool(s.isVisible))}}return o},function(e,t,n,r,o){for(var i=[],a=0,s=Object.keys(r);a<s.length;a++){var l=s[a];"boolean"==typeof r[l]?i.push({elementId:l,isVisible:r[l]}):i.push(l)}o.serializeArray(n,t.name,i)},{},function(e){return{}}),t.JsonTypeName="Action.ToggleVisibility",Uo([(0,ei.property)(t.targetElementsProperty)],t.prototype,"targetElements",void 0),t}($i),ta=Bn.ToggleVisibilityAction=ea,na=function(e){function t(t,n){var r=e.call(this,t,n,void 0,function(){return new Xo.StringWithSubstitutions})||this;return r.targetVersion=t,r.name=n,r}return $o(t,e),t.prototype.parse=function(e,t,n){var r=new Xo.StringWithSubstitutions;return r.set(Yo.parseString(t[this.name])),r},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n.getOriginal())},t}(ei.PropertyDefinition),ra=function(e){function t(t,n){void 0===t&&(t=""),void 0===n&&(n="");var r=e.call(this)||this;return r.name=t,r.value=n,r}return $o(t,e),t.prototype.getSchemaKey=function(){return"HttpHeader"},t.prototype.getReferencedInputs=function(e,t){this._value.getReferencedInputs(e,t)},t.prototype.prepareForExecution=function(e){this._value.substituteInputValues(e,Xo.ContentTypes.applicationXWwwFormUrlencoded)},Object.defineProperty(t.prototype,"value",{get:function(){return this._value.get()},set:function(e){this._value.set(e)},enumerable:!1,configurable:!0}),t.nameProperty=new ei.StringProperty(ei.Versions.v1_0,"name"),t.valueProperty=new na(ei.Versions.v1_0,"value"),Uo([(0,ei.property)(t.nameProperty)],t.prototype,"name",void 0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"_value",void 0),t}(ei.SerializableObject);Bn.HttpHeader=ra;var oa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._ignoreInputValidation=!1,t}return $o(t,e),t.prototype.internalGetReferencedInputs=function(){var e=this.parent?this.parent.getRootElement().getAllInputs():[],t={};this._url.getReferencedInputs(e,t);for(var n=0,r=this.headers;n<r.length;n++){r[n].getReferencedInputs(e,t)}return this._body.getReferencedInputs(e,t),t},t.prototype.internalPrepareForExecution=function(e){if(e){this._url.substituteInputValues(e,Xo.ContentTypes.applicationXWwwFormUrlencoded);for(var t=Xo.ContentTypes.applicationJson,n=0,r=this.headers;n<r.length;n++){var o=r[n];o.prepareForExecution(e),o.name&&"content-type"===o.name.toLowerCase()&&(t=o.value)}this._body.substituteInputValues(e,t)}},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.internalValidateProperties=function(t){if(e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("url")),this.headers.length>0)for(var n=0,r=this.headers;n<r.length;n++){r[n].name||t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.actionHttpHeadersMustHaveNameAndValue())}},Object.defineProperty(t.prototype,"ignoreInputValidation",{get:function(){return this._ignoreInputValidation},set:function(e){this._ignoreInputValidation=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._url.get()},set:function(e){this._url.set(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._body.get()},set:function(e){this._body.set(e)},enumerable:!1,configurable:!0}),t.urlProperty=new na(ei.Versions.v1_0,"url"),t.bodyProperty=new na(ei.Versions.v1_0,"body"),t.methodProperty=new ei.StringProperty(ei.Versions.v1_0,"method"),t.headersProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_0,"headers",ra),t.ignoreInputValidationProperty=new ei.BoolProperty(ei.Versions.v1_3,"ignoreInputValidation",!1),t.JsonTypeName="Action.Http",Uo([(0,ei.property)(t.urlProperty)],t.prototype,"_url",void 0),Uo([(0,ei.property)(t.bodyProperty)],t.prototype,"_body",void 0),Uo([(0,ei.property)(t.methodProperty)],t.prototype,"method",void 0),Uo([(0,ei.property)(t.headersProperty)],t.prototype,"headers",void 0),Uo([(0,ei.property)(t.ignoreInputValidationProperty)],t.prototype,"_ignoreInputValidation",void 0),t}($i);Bn.HttpAction=oa;var ia=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.card=new _a,t}return $o(t,e),t.prototype.updateCssClasses=function(){if(e.prototype.updateCssClasses.call(this),this.renderedElement){var t=this.parent?this.parent.hostConfig:Zo.defaultHostConfig;this.renderedElement.classList.add(t.makeCssClassName("expandable")),this.renderedElement.setAttribute("aria-expanded",(1===this.state).toString())}},t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n);var r=t.card;r?this.card.parse(r,n):n.logParseEvent(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.showCardMustHaveCard())},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this.card&&n.serializeValue(t,"card",this.card.toJSON(n))},t.prototype.raiseExecuteActionEvent=function(){this.hostConfig.actions.showCard.actionMode===qo.ShowCardActionMode.Popup&&e.prototype.raiseExecuteActionEvent.call(this)},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.card.releaseDOMResources()},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.card.internalValidateProperties(t)},t.prototype.setParent=function(t){e.prototype.setParent.call(this,t),this.card.setParent(t)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),this.card.getAllInputs(e)},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this.card.getAllActions()),t},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this.card.getResourceInformation()),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return n||(n=this.card.getActionById(t)),n},t.JsonTypeName="Action.ShowCard",t}($i),aa=Bn.ShowCardAction=ia,sa=function(e){function t(t){var n=e.call(this)||this;return n._actions=t,n.title=ni.Strings.defaults.overflowButtonText(),n.tooltip=ni.Strings.defaults.overflowButtonTooltip(),n}return $o(t,e),t.prototype.getActions=function(){return this._actions},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this._actions),t},t.prototype.getJsonTypeName=function(){return ia.JsonTypeName},t.prototype.execute=function(){var e,t,n,r,o,i=this;if((t=this,n=this.renderedElement,r=t.parent?t.parent.getRootElement():void 0,!(void 0!==(o=r&&r.onDisplayOverflowActionMenu?r.onDisplayOverflowActionMenu:Ia.onDisplayOverflowActionMenu)&&o(t.getActions(),n)))&&this.renderedElement){var a=new ri.PopupMenu;a.hostConfig=this.hostConfig;for(var s=function(t){var n=new ri.MenuItem(t.toString(),null!==(e=l._actions[t].title)&&void 0!==e?e:"");n.isEnabled=l._actions[t].isEnabled,n.onClick=function(){var e=i._actions[t];a.closePopup(!1),e.isEnabled&&e.execute()},a.items.add(n)},l=this,c=0;c<this._actions.length;c++)s(c);a.onClose=function(){var e;null===(e=i.renderedElement)||void 0===e||e.setAttribute("aria-expanded","false")},this.renderedElement.setAttribute("aria-expanded","true"),a.popup(this.renderedElement)}},t.prototype.setupElementForAccessibility=function(t,n){void 0===n&&(n=!1),e.prototype.setupElementForAccessibility.call(this,t,n),t.setAttribute("aria-label",ni.Strings.defaults.overflowButtonTooltip()),t.setAttribute("aria-expanded","false")},t.JsonTypeName="Action.Overflow",t}($i),la=function(){function e(e){this._items=[],this._renderedActions=[],this._owner=e}return e.prototype.isActionAllowed=function(e){var t=this._owner.getForbiddenActionTypes();if(t)for(var n=0,r=t;n<r.length;n++){var o=r[n];if(e.constructor===o)return!1}return!0},e.prototype.refreshContainer=function(){if(oi(this._actionCardContainer),this._actionCard){this._actionCardContainer.style.marginTop=this.renderedActionCount>0?this._owner.hostConfig.actions.showCard.inlineTopMargin+"px":"0px";var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e);var t=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e);this._actionCard&&(this._actionCard.style.paddingLeft=t.left+"px",this._actionCard.style.paddingRight=t.right+"px",this._actionCard.style.marginLeft="-"+t.left+"px",this._actionCard.style.marginRight="-"+t.right+"px",0===t.bottom||this._owner.isDesignMode()||(this._actionCard.style.paddingBottom=t.bottom+"px",this._actionCard.style.marginBottom="-"+t.bottom+"px"),Yo.appendChild(this._actionCardContainer,this._actionCard))}else this._actionCardContainer.style.marginTop="0px"},e.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},e.prototype.showActionCard=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),e.card.suppressStyle=t;var r=e.card.renderedElement&&!this._owner.isDesignMode()?e.card.renderedElement:e.card.render();this._actionCard=r,this._expandedAction=e,this.refreshContainer(),n&&(this.layoutChanged(),ba(e,!0))},e.prototype.collapseExpandedAction=function(){for(var e=0,t=this._renderedActions;e<t.length;e++){t[e].state=0}var n=this._expandedAction;this._expandedAction=void 0,this._actionCard=void 0,this.refreshContainer(),n&&(this.layoutChanged(),ba(n,!1))},e.prototype.expandShowCardAction=function(e,t){for(var n=this,r=!1,o=0,i=this._renderedActions;o<i.length;o++){var a=i[o];this._owner.hostConfig.actions.actionsOrientation==qo.Orientation.Horizontal&&r&&(a.isFocusable=!1),a!==e?a.state=2:(a.state=1,r=!0,a.renderedElement&&(a.renderedElement.onblur=function(e){for(var t=0,r=n._renderedActions;t<r.length;t++){r[t].isFocusable=!0}}))}this.showActionCard(e,!(this._owner.isAtTheVeryLeft()&&this._owner.isAtTheVeryRight()),t)},e.prototype.releaseDOMResources=function(){for(var e=0,t=this._renderedActions;e<t.length;e++){t[e].releaseDOMResources()}},e.prototype.actionExecuted=function(e){e instanceof ia?e===this._expandedAction?this.collapseExpandedAction():this._owner.hostConfig.actions.showCard.actionMode===qo.ShowCardActionMode.Inline&&this.expandShowCardAction(e,!0):this.collapseExpandedAction()},e.prototype.parse=function(e,t){if(this.clear(),Array.isArray(e))for(var n=0,r=e;n<r.length;n++){var o=r[n],i=[];this._owner instanceof wa&&(i=this._owner.getForbiddenActionNames());var a=t.parseAction(this._owner,o,i,!this._owner.isDesignMode());a&&this.addAction(a)}},e.prototype.toJSON=function(e,t,n){n.serializeArray(e,t,this._items)},e.prototype.getActionAt=function(e){return this._items[e]},e.prototype.getActionCount=function(){return this._items.length},e.prototype.getActionById=function(e){for(var t=void 0,n=0,r=this._items;n<r.length;n++){if(t=r[n].getActionById(e))break}return t},e.prototype.validateProperties=function(e){this._owner.hostConfig.actions.maxActions&&this._items.length>this._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,qo.ValidationEvent.TooManyActions,ni.Strings.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,qo.ValidationEvent.InteractivityNotAllowed,ni.Strings.errors.interactivityNotAllowed());for(var t=0,n=this._items;t<n.length;t++){var r=n[t];this.isActionAllowed(r)||e.addFailure(this._owner,qo.ValidationEvent.ActionTypeNotAllowed,ni.Strings.errors.actionTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(e)}},e.prototype.render=function(e){var t=this._owner.hostConfig;if(t.supportsInteractivity){var n=document.createElement("div"),r=t.actions.maxActions?Math.min(t.actions.maxActions,this._items.length):this._items.length;if(this._actionCardContainer=document.createElement("div"),this._renderedActions=[],t.actions.preExpandSingleShowCardAction&&1===r&&this._items[0]instanceof ia&&this.isActionAllowed(this._items[0]))this.showActionCard(this._items[0],!0),this._renderedActions.push(this._items[0]);else{var o=document.createElement("div");if(o.className=t.makeCssClassName("ac-actionSet"),o.style.display="flex",e===qo.Orientation.Horizontal)if(o.style.flexDirection="row",this._owner.horizontalAlignment&&t.actions.actionAlignment!==qo.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case qo.HorizontalAlignment.Center:o.style.justifyContent="center";break;case qo.HorizontalAlignment.Right:o.style.justifyContent="flex-end";break;default:o.style.justifyContent="flex-start"}else switch(t.actions.actionAlignment){case qo.ActionAlignment.Center:o.style.justifyContent="center";break;case qo.ActionAlignment.Right:o.style.justifyContent="flex-end";break;default:o.style.justifyContent="flex-start"}else if(o.style.flexDirection="column",this._owner.horizontalAlignment&&t.actions.actionAlignment!==qo.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case qo.HorizontalAlignment.Center:o.style.alignItems="center";break;case qo.HorizontalAlignment.Right:o.style.alignItems="flex-end";break;default:o.style.alignItems="flex-start"}else switch(t.actions.actionAlignment){case qo.ActionAlignment.Center:o.style.alignItems="center";break;case qo.ActionAlignment.Right:o.style.alignItems="flex-end";break;case qo.ActionAlignment.Stretch:o.style.alignItems="stretch";break;default:o.style.alignItems="flex-start"}var i=this._items.filter(this.isActionAllowed.bind(this)),a=[],s=[];if(this._owner.isDesignMode())a=i;else{i.forEach(function(e){return e.mode===qo.ActionMode.Secondary?s.push(e):a.push(e)});var l=a.splice(t.actions.maxActions);Xo.GlobalSettings.allowMoreThanMaxActionsInOverflowMenu&&s.push.apply(s,l);var c=!0;if(s.length>0){this._overflowAction||(this._overflowAction=new sa(s),this._overflowAction.setParent(this._owner),this._overflowAction._actionCollection=this);var u=this._owner instanceof Ia&&!this._owner.parent;c=!function(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onRenderOverflowActions?n.onRenderOverflowActions:Ia.onRenderOverflowActions;return void 0!==r&&r(e.getActions(),t)}(this._overflowAction,u)}this._overflowAction&&c&&a.push(this._overflowAction)}for(var d=0;d<a.length;d++){var p=a[d];if(p.render(),p.renderedElement&&(t.actions.actionsOrientation===qo.Orientation.Horizontal&&t.actions.actionAlignment===qo.ActionAlignment.Stretch?p.renderedElement.style.flex="0 1 100%":p.renderedElement.style.flex="0 1 auto",o.appendChild(p.renderedElement),this._renderedActions.push(p),d<a.length-1&&t.actions.buttonSpacing>0)){var h=document.createElement("div");e===qo.Orientation.Horizontal?(h.style.flex="0 0 auto",h.style.width=t.actions.buttonSpacing+"px"):h.style.height=t.actions.buttonSpacing+"px",Yo.appendChild(o,h)}}var m=document.createElement("div");m.style.overflow="hidden",m.appendChild(o),Yo.appendChild(n,m)}Yo.appendChild(n,this._actionCardContainer);for(var f=0,g=this._renderedActions;f<g.length;f++){var y=g[f];if(1===y.state){this.expandShowCardAction(y,!1);break}}return this._renderedActions.length>0?n:void 0}},e.prototype.addAction=function(e){if(!e)throw new Error("The action parameter cannot be null.");if(e.parent&&e.parent!==this._owner||!(this._items.indexOf(e)<0))throw new Error(ni.Strings.errors.actionAlreadyParented());this._items.push(e),e.parent||e.setParent(this._owner),e._actionCollection=this},e.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction===e&&this.collapseExpandedAction();var t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0),e._actionCollection=void 0;for(var n=0;n<this._renderedActions.length;n++)if(this._renderedActions[n]===e){this._renderedActions.splice(n,1);break}return!0}return!1},e.prototype.clear=function(){this._items=[],this._renderedActions=[],this._expandedAction=void 0},e.prototype.getAllInputs=function(e){void 0===e&&(e=!0);var t=[];if(e)for(var n=0,r=this._items;n<r.length;n++){var o=r[n];t.push.apply(t,o.getAllInputs())}return t},e.prototype.getResourceInformation=function(){for(var e=[],t=0,n=this._items;t<n.length;t++){var r=n[t];e.push.apply(e,r.getResourceInformation())}return e},Object.defineProperty(e.prototype,"renderedActionCount",{get:function(){return this._renderedActions.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expandedAction",{get:function(){return this._expandedAction},enumerable:!1,configurable:!0}),e}(),ca=function(e){function t(){var t=e.call(this)||this;return t._actionCollection=new la(t),t}return $o(t,e),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._actionCollection.parse(t.actions,n)},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,"actions",n)},t.prototype.internalRender=function(){return this._actionCollection.render(void 0!==this.orientation?this.orientation:this.hostConfig.actions.actionsOrientation)},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},t.prototype.isBleedingAtBottom=function(){return 0===this._actionCollection.renderedActionCount?e.prototype.isBleedingAtBottom.call(this):1===this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction},t.prototype.getJsonTypeName=function(){return"ActionSet"},t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},t.prototype.getActionById=function(t){var n=this._actionCollection.getActionById(t);return n||e.prototype.getActionById.call(this,t)},t.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),n=0;n<this.getActionCount();n++){var r=this.getActionAt(n);r&&t.push(r)}return t},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection.validateProperties(t)},t.prototype.addAction=function(e){this._actionCollection.addAction(e)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),e?this._actionCollection.getAllInputs():[]},t.prototype.getResourceInformation=function(){return this._actionCollection.getResourceInformation()},t.prototype.findDOMNodeOwner=function(t){for(var n=void 0,r=0;r<this.getActionCount();r++){var o=this.getActionAt(r);if(o&&(n=o.findDOMNodeOwner(t)))return n}return e.prototype.findDOMNodeOwner.call(this,t)},t.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);return n||(n=this.getElementByIdFromAction(t)),n},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.orientationProperty=new ei.EnumProperty(ei.Versions.v1_1,"orientation",qo.Orientation),Uo([(0,ei.property)(t.orientationProperty)],t.prototype,"orientation",void 0),t}(ai);Bn.ActionSet=ca;var ua=function(e){function t(t,n,r,o){var i=e.call(this,t,n,[{value:qo.ContainerStyle.Default},{value:qo.ContainerStyle.Emphasis},{targetVersion:ei.Versions.v1_2,value:qo.ContainerStyle.Accent},{targetVersion:ei.Versions.v1_2,value:qo.ContainerStyle.Good},{targetVersion:ei.Versions.v1_2,value:qo.ContainerStyle.Attention},{targetVersion:ei.Versions.v1_2,value:qo.ContainerStyle.Warning}],r,o)||this;return i.targetVersion=t,i.name=n,i.defaultValue=r,i.onGetInitialValue=o,i}return $o(t,e),t}(ei.ValueSetProperty);Bn.ContainerStyleProperty=ua;var da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),Object.defineProperty(t.prototype,"style",{get:function(){if(this.allowCustomStyle){var e=this.getValue(t.styleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}},set:function(e){this.setValue(t.styleProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomStyle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasExplicitStyle",{get:function(){return void 0!==this.getValue(t.styleProperty)},enumerable:!1,configurable:!0}),t.prototype.applyBorder=function(){},t.prototype.applyBackground=function(){if(this.renderedElement){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(e.backgroundColor){var t=Yo.stringToCssColor(e.backgroundColor);t&&(this.renderedElement.style.backgroundColor=t)}}},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new Xo.SpacingDefinition;if(this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.isBleeding()){var n=new Xo.PaddingDefinition;this.getImmediateSurroundingPadding(n);var r=this.hostConfig.paddingDefinitionToSpacingDefinition(n);this.renderedElement.style.marginRight="-"+r.right+"px",this.renderedElement.style.marginLeft="-"+r.left+"px",this.isDesignMode()||(this.renderedElement.style.marginTop="-"+r.top+"px",this.renderedElement.style.marginBottom="-"+r.bottom+"px"),this.separatorElement&&this.separatorOrientation===qo.Orientation.Horizontal&&(this.separatorElement.style.marginLeft="-"+r.left+"px",this.separatorElement.style.marginRight="-"+r.right+"px")}else this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0",this.renderedElement.style.marginTop="0",this.renderedElement.style.marginBottom="0",this.separatorElement&&this.separatorOrientation===qo.Orientation.Horizontal&&(this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0")}},t.prototype.getHasBackground=function(e){void 0===e&&(e=!1);for(var n=this.parent;n;){var r=!1;if(r=!e&&(n instanceof ma&&n.backgroundImage.isValid()),n instanceof t&&this.hasExplicitStyle&&(n.getEffectiveStyle()!==this.getEffectiveStyle()||r))return!0;n=n.parent}return!1},t.prototype.getDefaultPadding=function(){return this.getHasBackground()||this.getHasBorder()?new Xo.PaddingDefinition(qo.Spacing.Padding,qo.Spacing.Padding,qo.Spacing.Padding,qo.Spacing.Padding):e.prototype.getDefaultPadding.call(this)},t.prototype.internalValidateProperties=function(n){e.prototype.internalValidateProperties.call(this,n);var r=this.getValue(t.styleProperty);void 0!==r&&(this.hostConfig.containerStyles.getStyleByName(r)||n.addFailure(this,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidPropertyValue(r,"style")))},t.prototype.render=function(){var t=e.prototype.render.call(this);return t&&this.getHasBackground()&&this.applyBackground(),this.applyBorder(),t},t.prototype.getEffectiveStyle=function(){var t=this.style;return t||e.prototype.getEffectiveStyle.call(this)},t.styleProperty=new ua(ei.Versions.v1_0,"style"),Uo([(0,ei.property)(t.styleProperty)],t.prototype,"style",null),t}(yi);Bn.StylableCardElementContainer=da;var pa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._bleed=!1,t}return $o(t,e),t.prototype.adjustRenderedElementSize=function(t){e.prototype.adjustRenderedElementSize.call(this,t),this.minPixelHeight&&(t.style.minHeight=this.minPixelHeight+"px")},t.prototype.getHasExpandedAction=function(){return!1},t.prototype.getBleed=function(){return this._bleed},t.prototype.setBleed=function(e){this._bleed=e},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.isBleeding=function(){return(this.getHasBackground()||this.hostConfig.alwaysAllowBleed)&&this.getBleed()},t.bleedProperty=new ei.BoolProperty(ei.Versions.v1_2,"bleed",!1),t.minHeightProperty=new ei.PixelSizeProperty(ei.Versions.v1_2,"minHeight"),Uo([(0,ei.property)(t.bleedProperty)],t.prototype,"_bleed",void 0),Uo([(0,ei.property)(t.minHeightProperty)],t.prototype,"minPixelHeight",void 0),t}(da);Bn.ContainerBase=pa;var ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"BackgroundImage"},t.prototype.internalParse=function(t,n){if("string"!=typeof t)return e.prototype.internalParse.call(this,t,n);this.resetDefaultValues(),this.url=t},t.prototype.apply=function(e){if(this.url&&e.renderedElement){switch(e.renderedElement.style.backgroundImage="url('"+e.preProcessPropertyValue(t.urlProperty,this.url)+"')",this.fillMode){case qo.FillMode.Repeat:e.renderedElement.style.backgroundRepeat="repeat";break;case qo.FillMode.RepeatHorizontally:e.renderedElement.style.backgroundRepeat="repeat-x";break;case qo.FillMode.RepeatVertically:e.renderedElement.style.backgroundRepeat="repeat-y";break;case qo.FillMode.Cover:default:e.renderedElement.style.backgroundRepeat="no-repeat",e.renderedElement.style.backgroundSize="cover"}switch(this.horizontalAlignment){case qo.HorizontalAlignment.Left:break;case qo.HorizontalAlignment.Center:e.renderedElement.style.backgroundPositionX="center";break;case qo.HorizontalAlignment.Right:e.renderedElement.style.backgroundPositionX="right"}switch(this.verticalAlignment){case qo.VerticalAlignment.Top:break;case qo.VerticalAlignment.Center:e.renderedElement.style.backgroundPositionY="center";break;case qo.VerticalAlignment.Bottom:e.renderedElement.style.backgroundPositionY="bottom"}}},t.prototype.isValid=function(){return!!this.url},t.urlProperty=new ei.StringProperty(ei.Versions.v1_0,"url"),t.fillModeProperty=new ei.EnumProperty(ei.Versions.v1_2,"fillMode",qo.FillMode,qo.FillMode.Cover),t.horizontalAlignmentProperty=new ei.EnumProperty(ei.Versions.v1_2,"horizontalAlignment",qo.HorizontalAlignment,qo.HorizontalAlignment.Left),t.verticalAlignmentProperty=new ei.EnumProperty(ei.Versions.v1_2,"verticalAlignment",qo.VerticalAlignment,qo.VerticalAlignment.Top),Uo([(0,ei.property)(t.urlProperty)],t.prototype,"url",void 0),Uo([(0,ei.property)(t.fillModeProperty)],t.prototype,"fillMode",void 0),Uo([(0,ei.property)(t.horizontalAlignmentProperty)],t.prototype,"horizontalAlignment",void 0),Uo([(0,ei.property)(t.verticalAlignmentProperty)],t.prototype,"verticalAlignment",void 0),t}(ei.SerializableObject);Bn.BackgroundImage=ha;var ma=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._items=[],t._renderedItems=[],t}return $o(t,e),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getValue(t.backgroundImageProperty)},enumerable:!1,configurable:!0}),t.prototype.insertItemAt=function(e,t,n){if(e.parent&&!n)throw new Error(ni.Strings.errors.elementAlreadyParented());if(!e.isStandalone)throw new Error(ni.Strings.errors.elementTypeNotStandalone(e.getJsonTypeName()));t<0||t>=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this)},t.prototype.getItemsCollectionPropertyName=function(){return"items"},t.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.renderedElement&&this.backgroundImage.apply(this),e.prototype.applyBackground.call(this)},t.prototype.applyRTL=function(e){void 0!==this.rtl&&(e.dir=this.rtl?"rtl":"ltr")},t.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement("div");switch(this.applyRTL(t),t.classList.add(e.makeCssClassName("ac-container")),t.style.display="flex",t.style.flexDirection="column",Xo.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveVerticalContentAlignment()){case qo.VerticalAlignment.Center:t.style.justifyContent="center";break;case qo.VerticalAlignment.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}if(this._items.length>0)for(var n=0,r=this._items;n<r.length;n++){var o=r[n],i=this.isElementAllowed(o)?o.render():void 0;i&&(this._renderedItems.length>0&&o.separatorElement&&(o.separatorElement.style.flex="0 0 auto",Yo.appendChild(t,o.separatorElement)),Yo.appendChild(t,i),this._renderedItems.push(o))}else if(this.isDesignMode()){var a=this.createPlaceholderElement();a.style.width="100%",a.style.height="100%",t.appendChild(a)}return t},t.prototype.truncateOverflow=function(e){if(this.renderedElement){for(var t=this.renderedElement.offsetTop+e+1,n=function(e){var r=e.renderedElement;if(r)switch(Yo.getFitStatus(r,t)){case qo.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&n(e);break;case qo.ContainerFitStatus.Overflowing:var o=t-r.offsetTop;e.handleOverflow(o);break;case qo.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0)}},r=0,o=this._items;r<o.length;r++){var i=o[r];n(i)}return!0}return!1},t.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._items;e<t.length;e++){t[e].resetOverflow()}},t.prototype.getHasBackground=function(t){return void 0===t&&(t=!1),!t&&this.backgroundImage.isValid()||e.prototype.getHasBackground.call(this,t)},t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.clear(),this.setShouldFallback(!1);var r=t[this.getItemsCollectionPropertyName()];if(Array.isArray(r))for(var o=0,i=r;o<i.length;o++){var a=i[o],s=n.parseElement(this,a,this.forbiddenChildElements(),!this.isDesignMode());s&&this.insertItemAt(s,-1,!0)}},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n);var r=this.getItemsCollectionPropertyName();n.serializeArray(t,r,this._items)},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getEffectivePadding=function(){return Xo.GlobalSettings.removePaddingFromContainersWithBackgroundImage&&!this.getHasBackground(!0)?new Xo.PaddingDefinition:e.prototype.getEffectivePadding.call(this)},t.prototype.getEffectiveVerticalContentAlignment=function(){if(void 0!==this.verticalContentAlignment)return this.verticalContentAlignment;var e=this.getParentContainer();return e?e.getEffectiveVerticalContentAlignment():qo.VerticalAlignment.Top},t.prototype.getItemCount=function(){return this._items.length},t.prototype.getItemAt=function(e){return this._items[e]},t.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=0,t=this._renderedItems;e<t.length;e++){var n=t[e];if(n.isVisible)return n}},t.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]},t.prototype.getJsonTypeName=function(){return"Container"},t.prototype.isFirstElement=function(e){for(var t=this.isDesignMode(),n=0,r=this._items;n<r.length;n++){var o=r[n];if(o.isVisible||t)return o===e}return!1},t.prototype.isLastElement=function(e){for(var t=this.isDesignMode(),n=this._items.length-1;n>=0;n--)if(this._items[n].isVisible||t)return this._items[n]===e;return!1},t.prototype.isRtl=function(){if(void 0!==this.rtl)return this.rtl;var e=this.getParentContainer();return!!e&&e.isRtl()},t.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtTop()},t.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||!!e&&(e.isBleedingAtBottom()&&e.getEffectiveStyle()===this.getEffectiveStyle())},t.prototype.indexOf=function(e){return this._items.indexOf(e)},t.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},t.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},t.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},t.prototype.removeItem=function(e){var t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)},t.prototype.clear=function(){this._items=[],this._renderedItems=[]},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&t.push({url:this.backgroundImage.url,mimeType:"image"}),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);if(!n&&(this.selectAction&&(n=this.selectAction.getActionById(t)),!n))for(var r=0,o=this._items;r<o.length;r++){if(n=o[r].getActionById(t))break}return n},Object.defineProperty(t.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),t.backgroundImageProperty=new ei.SerializableObjectProperty(ei.Versions.v1_0,"backgroundImage",ha),t.verticalContentAlignmentProperty=new ei.EnumProperty(ei.Versions.v1_1,"verticalContentAlignment",qo.VerticalAlignment),t.rtlProperty=new ei.BoolProperty(ei.Versions.v1_0,"rtl"),Uo([(0,ei.property)(t.backgroundImageProperty)],t.prototype,"backgroundImage",null),Uo([(0,ei.property)(t.verticalContentAlignmentProperty)],t.prototype,"verticalContentAlignment",void 0),Uo([(0,ei.property)(t.rtlProperty)],t.prototype,"rtl",void 0),t}(pa);Bn.Container=ma;var fa=function(e){function t(t){void 0===t&&(t="stretch");var n=e.call(this)||this;return n.width="stretch",n._computedWeight=0,n.width=t,n}return $o(t,e),t.prototype.adjustRenderedElementSize=function(e){this.isDesignMode()?(e.style.minWidth="20px",e.style.minHeight=(this.minPixelHeight?Math.max(this.minPixelHeight,20):20)+"px"):(e.style.minWidth="0",this.minPixelHeight&&(e.style.minHeight=this.minPixelHeight+"px")),"auto"===this.width?e.style.flex="0 1 auto":"stretch"===this.width?e.style.flex="1 1 50px":this.width instanceof Xo.SizeAndUnit&&(this.width.unit===qo.SizeUnit.Pixel?(e.style.flex="0 0 auto",e.style.width=this.width.physicalSize+"px"):e.style.flex="1 1 "+(this._computedWeight>0?this._computedWeight:this.width.physicalSize)+"%")},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return qo.Orientation.Vertical},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"Column"},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!!(this.parent&&this.parent instanceof ga)&&(void 0!==this.separatorElement&&!this.parent.isLeftMostElement(this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.widthProperty=new ei.CustomProperty(ei.Versions.v1_0,"width",function(e,t,n,r){var o=t.defaultValue,i=n[t.name],a=!1;if("number"!=typeof i||isNaN(i))if("auto"===i||"stretch"===i)o=i;else if("string"==typeof i)try{(o=Xo.SizeAndUnit.parse(i)).unit===qo.SizeUnit.Pixel&&t.targetVersion.compareTo(r.targetVersion)>0&&(a=!0)}catch(s){a=!0}else a=!0;else o=new Xo.SizeAndUnit(i,qo.SizeUnit.Weight);return a&&(r.logParseEvent(e,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidColumnWidth(i)),o="auto"),o},function(e,t,n,r,o){r instanceof Xo.SizeAndUnit?r.unit===qo.SizeUnit.Pixel?o.serializeValue(n,"width",r.physicalSize+"px"):o.serializeNumber(n,"width",r.physicalSize):o.serializeValue(n,"width",r)},"stretch"),Uo([(0,ei.property)(t.widthProperty)],t.prototype,"width",void 0),t}(ma);Bn.Column=fa;var ga=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._columns=[],t}return $o(t,e),t.prototype.createColumnInstance=function(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),function(e){return e&&"Column"!==e?void 0:new fa},function(e,n){t.logParseEvent(void 0,qo.ValidationEvent.ElementTypeNotAllowed,ni.Strings.errors.elementTypeNotAllowed(e))})},t.prototype.internalRender=function(){if(this._renderedColumns=[],this._columns.length>0){var e=this.hostConfig,t=document.createElement("div");switch(t.className=e.makeCssClassName("ac-columnSet"),t.style.display="flex",Xo.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveHorizontalAlignment()){case qo.HorizontalAlignment.Center:t.style.justifyContent="center";break;case qo.HorizontalAlignment.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}for(var n=0,r=0,o=this._columns;r<o.length;r++){(s=o[r]).width instanceof Xo.SizeAndUnit&&s.width.unit===qo.SizeUnit.Weight&&(n+=s.width.physicalSize)}for(var i=0,a=this._columns;i<a.length;i++){var s;if((s=a[i]).width instanceof Xo.SizeAndUnit&&s.width.unit===qo.SizeUnit.Weight&&n>0){var l=100/n*s.width.physicalSize;s._computedWeight=l}var c=s.render();c&&(this._renderedColumns.length>0&&s.separatorElement&&(s.separatorElement.style.flex="0 0 auto",Yo.appendChild(t,s.separatorElement)),Yo.appendChild(t,c),this._renderedColumns.push(s))}return this._renderedColumns.length>0?t:void 0}},t.prototype.truncateOverflow=function(e){for(var t=0,n=this._columns;t<n.length;t++){n[t].handleOverflow(e)}return!0},t.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._columns;e<t.length;e++){t[e].resetOverflow()}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._columns=[],this._renderedColumns=[];var r=t.columns;if(Array.isArray(r))for(var o=0,i=r;o<i.length;o++){var a=i[o],s=this.createColumnInstance(a,n);s&&this._columns.push(s)}},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),n.serializeArray(t,"columns",this._columns)},t.prototype.isFirstElement=function(e){for(var t=0,n=this._columns;t<n.length;t++){var r=n[t];if(r.isVisible)return r===e}return!1},t.prototype.isBleedingAtTop=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(var e=0,t=this._columns;e<t.length;e++){if(t[e].isBleedingAtTop())return!0}return!1},t.prototype.isBleedingAtBottom=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(var e=0,t=this._columns;e<t.length;e++){if(t[e].isBleedingAtBottom())return!0}return!1},t.prototype.getItemCount=function(){return this._columns.length},t.prototype.getFirstVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[this._renderedColumns.length-1]:void 0},t.prototype.getColumnAt=function(e){return this._columns[e]},t.prototype.getItemAt=function(e){return this.getColumnAt(e)},t.prototype.getJsonTypeName=function(){return"ColumnSet"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0,r=0,o=0,i=this._columns;o<i.length;o++){var a=i[o];"number"==typeof a.width?n++:"stretch"===a.width&&r++}n>0&&r>0&&t.addFailure(this,qo.ValidationEvent.Hint,ni.Strings.hints.dontUseWeightedAndStrecthedColumnsInSameSet())},t.prototype.addColumn=function(e){if(e.parent)throw new Error(ni.Strings.errors.columnAlreadyBelongsToAnotherSet());this._columns.push(e),e.setParent(this)},t.prototype.removeItem=function(e){if(e instanceof fa){var t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.indexOf=function(e){return e instanceof fa?this._columns.indexOf(e):-1},t.prototype.isLeftMostElement=function(e){return 0===this._columns.indexOf(e)},t.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)===this._columns.length-1},t.prototype.isTopElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.isBottomElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.getActionById=function(e){for(var t=void 0,n=0,r=this._columns;n<r.length;n++){if(t=r[n].getActionById(e))break}return t},Object.defineProperty(t.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),t}(pa);function ya(e){var t=e.getRootElement(),n=t&&t.onImageLoaded?t.onImageLoaded:Ia.onImageLoaded;n&&n(e)}function va(e,t,n){var r=e.getRootElement(),o=r&&r.onAnchorClicked?r.onAnchorClicked:Ia.onAnchorClicked;return void 0!==o&&o(e,t,n)}function ba(e,t){var n=e.parent?e.parent.getRootElement():void 0,r=n&&n.onInlineCardExpanded?n.onInlineCardExpanded:Ia.onInlineCardExpanded;r&&r(e,t)}function xa(e,t){void 0===t&&(t=!0);var n=e.getRootElement();t&&n.updateLayout();var r=n,o=r&&r.onElementVisibilityChanged?r.onElementVisibilityChanged:Ia.onElementVisibilityChanged;void 0!==o&&o(e)}function Ca(e,t){t?(e.readOnly=!0,e.required=!0):(e.readOnly=!1,e.required=!1)}Bn.ColumnSet=ga;var wa=function(e){function t(){var t=e.call(this)||this;return t._actionCollection=new la(t),t}return $o(t,e),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.parseActions(t,n)},t.prototype.parseActions=function(e,t){this._actionCollection.parse(e.actions,t)},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,"actions",n)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);if(t){var n=this._actionCollection.render(this.hostConfig.actions.actionsOrientation);return n&&(Yo.appendChild(t,ii(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing)},qo.Orientation.Horizontal)),Yo.appendChild(t,n)),this.renderIfEmpty||t.children.length>0?t:void 0}},t.prototype.getHasExpandedAction=function(){return 0!==this.renderedActionCount&&(1===this.renderedActionCount?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction)},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return this._actionCollection.renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},t.prototype.getActionById=function(t){var n=this._actionCollection.getActionById(t);return n||e.prototype.getActionById.call(this,t)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection&&this._actionCollection.validateProperties(t)},t.prototype.isLastElement=function(t){return e.prototype.isLastElement.call(this,t)&&0===this._actionCollection.getActionCount()},t.prototype.addAction=function(e){this._actionCollection.addAction(e)},t.prototype.clear=function(){e.prototype.clear.call(this),this._actionCollection.clear()},t.prototype.getAllInputs=function(t){void 0===t&&(t=!0);var n=e.prototype.getAllInputs.call(this,t);return t&&n.push.apply(n,this._actionCollection.getAllInputs(t)),n},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this._actionCollection.getResourceInformation()),t},t.prototype.isBleedingAtBottom=function(){return 0===this._actionCollection.renderedActionCount?e.prototype.isBleedingAtBottom.call(this):1===this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction},t.prototype.getForbiddenActionNames=function(){return[]},t.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);return n||(n=this.getElementByIdFromAction(t)),n},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(ma);Bn.ContainerWithActions=wa;var Sa=function(e){function t(t,n){var r=e.call(this,t,n,void 0)||this;return r.targetVersion=t,r.name=n,r}return $o(t,e),t.prototype.parse=function(e,t,n){var r=n.parseAction(e.parent,t[this.name],[],!1);if(void 0!==r){if(r instanceof Xi)return r;n.logParseEvent(e,qo.ValidationEvent.ActionTypeNotAllowed,ni.Strings.errors.actionTypeNotAllowed(r.getJsonTypeName()))}n.logParseEvent(e,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("action"))},t.prototype.toJSON=function(e,t,n,r){r.serializeValue(t,this.name,n?n.toJSON(r):void 0,void 0,!0)},t}(ei.PropertyDefinition);Bn.RefreshActionProperty=Sa;var ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),Object.defineProperty(t.prototype,"action",{get:function(){return this.getValue(t.actionProperty)},set:function(e){this.setValue(t.actionProperty,e),e&&e.setParent(this.parent)},enumerable:!1,configurable:!0}),t.prototype.getSchemaKey=function(){return"RefreshDefinition"},t.actionProperty=new Sa(ei.Versions.v1_4,"action"),t.userIdsProperty=new ei.StringArrayProperty(ei.Versions.v1_4,"userIds"),Uo([(0,ei.property)(t.actionProperty)],t.prototype,"action",null),Uo([(0,ei.property)(t.userIdsProperty)],t.prototype,"userIds",void 0),t}(ei.SerializableObject);Bn.RefreshDefinition=ka;var Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"AuthCardButton"},t.typeProperty=new ei.StringProperty(ei.Versions.v1_4,"type"),t.titleProperty=new ei.StringProperty(ei.Versions.v1_4,"title"),t.imageProperty=new ei.StringProperty(ei.Versions.v1_4,"image"),t.valueProperty=new ei.StringProperty(ei.Versions.v1_4,"value"),Uo([(0,ei.property)(t.typeProperty)],t.prototype,"type",void 0),Uo([(0,ei.property)(t.titleProperty)],t.prototype,"title",void 0),Uo([(0,ei.property)(t.imageProperty)],t.prototype,"image",void 0),Uo([(0,ei.property)(t.valueProperty)],t.prototype,"value",void 0),t}(ei.SerializableObject);Bn.AuthCardButton=Pa;var Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"TokenExchangeResource"},t.idProperty=new ei.StringProperty(ei.Versions.v1_4,"id"),t.uriProperty=new ei.StringProperty(ei.Versions.v1_4,"uri"),t.providerIdProperty=new ei.StringProperty(ei.Versions.v1_4,"providerId"),Uo([(0,ei.property)(t.idProperty)],t.prototype,"id",void 0),Uo([(0,ei.property)(t.uriProperty)],t.prototype,"uri",void 0),Uo([(0,ei.property)(t.providerIdProperty)],t.prototype,"providerId",void 0),t}(ei.SerializableObject);Bn.TokenExchangeResource=Ea;var Aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getSchemaKey=function(){return"Authentication"},t.textProperty=new ei.StringProperty(ei.Versions.v1_4,"text"),t.connectionNameProperty=new ei.StringProperty(ei.Versions.v1_4,"connectionName"),t.buttonsProperty=new ei.SerializableObjectCollectionProperty(ei.Versions.v1_4,"buttons",Pa),t.tokenExchangeResourceProperty=new ei.SerializableObjectProperty(ei.Versions.v1_4,"tokenExchangeResource",Ea,!0),Uo([(0,ei.property)(t.textProperty)],t.prototype,"text",void 0),Uo([(0,ei.property)(t.connectionNameProperty)],t.prototype,"connectionName",void 0),Uo([(0,ei.property)(t.buttonsProperty)],t.prototype,"buttons",void 0),Uo([(0,ei.property)(t.tokenExchangeResourceProperty)],t.prototype,"tokenExchangeResource",void 0),t}(ei.SerializableObject);Bn.Authentication=Aa;var Ia=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.designMode=!1,t}return $o(t,e),Object.defineProperty(t.prototype,"refresh",{get:function(){return this.getValue(t.refreshProperty)},set:function(e){this.setValue(t.refreshProperty,e),e&&(e.parent=this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"processMarkdown",{get:function(){throw new Error(ni.Strings.errors.processMarkdownEventRemoved())},set:function(e){throw new Error(ni.Strings.errors.processMarkdownEventRemoved())},enumerable:!1,configurable:!0}),t.applyMarkdown=function(e){var n={didProcess:!1};if(t.onProcessMarkdown)t.onProcessMarkdown(e,n);else if(window.markdownit){var r=window.markdownit;n.outputHtml=r().render(e),n.didProcess=!0}else t._haveWarnedAboutNoMarkdownProcessing||(console.warn(ni.Strings.errors.markdownProcessingNotEnabled),t._haveWarnedAboutNoMarkdownProcessing=!0);return n},t.prototype.isVersionSupported=function(){return!!this.bypassVersionCheck||!(!this.version||!this.version.isValid||this.maxVersion.major<this.version.major||this.maxVersion.major===this.version.major&&this.maxVersion.minor<this.version.minor)},t.prototype.getDefaultSerializationContext=function(){return new Ta(this.version)},t.prototype.getItemsCollectionPropertyName=function(){return"body"},t.prototype.internalParse=function(n,r){this._fallbackCard=void 0;var o=r.parseElement(void 0,n.fallback,this.forbiddenChildElements(),!this.isDesignMode());o&&(this._fallbackCard=new t,this._fallbackCard.addItem(o)),e.prototype.internalParse.call(this,n,r)},t.prototype.internalToJSON=function(n,r){this.setValue(t.versionProperty,r.targetVersion),e.prototype.internalToJSON.call(this,n,r)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return Xo.GlobalSettings.useAdvancedCardBottomTruncation&&t&&t.style.removeProperty("minHeight"),t},t.prototype.getHasBackground=function(e){return!0},t.prototype.getDefaultPadding=function(){return new Xo.PaddingDefinition(qo.Spacing.Padding,qo.Spacing.Padding,qo.Spacing.Padding,qo.Spacing.Padding)},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bypassVersionCheck",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomStyle",{get:function(){return this.hostConfig.adaptiveCard&&this.hostConfig.adaptiveCard.allowCustomStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"AdaptiveCard"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),"AdaptiveCard"!==this.getValue(ai.typeNameProperty)&&t.addFailure(this,qo.ValidationEvent.MissingCardType,ni.Strings.errors.invalidCardType()),this.bypassVersionCheck||this.version?this.isVersionSupported()||t.addFailure(this,qo.ValidationEvent.UnsupportedCardVersion,ni.Strings.errors.unsupportedCardVersion(this.version.toString(),this.maxVersion.toString())):t.addFailure(this,qo.ValidationEvent.PropertyCantBeNull,ni.Strings.errors.propertyMustBeSet("version"))},t.prototype.render=function(t){var n,r=this;return this.shouldFallback()&&this._fallbackCard?(this._fallbackCard.hostConfig=this.hostConfig,n=this._fallbackCard.render()):(n=e.prototype.render.call(this))&&(n.classList.add(this.hostConfig.makeCssClassName("ac-adaptiveCard")),Xo.GlobalSettings.setTabIndexAtCardRoot&&(n.tabIndex=0),this.speak&&n.setAttribute("aria-label",this.speak),n.onmouseenter=function(e){r.updateInputsVisualState(!0)},n.onmouseleave=function(e){r.updateInputsVisualState(!1)},this.getRootElement().updateActionsEnabledState()),t&&(Yo.appendChild(t,n),this.updateLayout()),n},t.prototype.updateLayout=function(t){if(void 0===t&&(t=!0),e.prototype.updateLayout.call(this,t),Xo.GlobalSettings.useAdvancedCardBottomTruncation&&this.isDisplayed()){var n=this.hostConfig.getEffectiveSpacing(qo.Spacing.Default);this.handleOverflow(this.renderedElement.offsetHeight-n)}},t.prototype.shouldFallback=function(){return e.prototype.shouldFallback.call(this)||!this.isVersionSupported()},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!1},enumerable:!1,configurable:!0}),t.schemaUrl="http://adaptivecards.io/schemas/adaptive-card.json",t.$schemaProperty=new ei.CustomProperty(ei.Versions.v1_0,"$schema",function(e,n,r,o){return t.schemaUrl},function(e,n,r,o,i){i.serializeValue(r,n.name,t.schemaUrl)}),t.versionProperty=new ei.CustomProperty(ei.Versions.v1_0,"version",function(e,t,n,r){var o=ei.Version.parse(n[t.name],r);return void 0===o&&(o=ei.Versions.latest,r.logParseEvent(e,qo.ValidationEvent.InvalidPropertyValue,ni.Strings.errors.invalidCardVersion(o.toString()))),o},function(e,t,n,r,o){void 0!==r&&o.serializeValue(n,t.name,r.toString())},ei.Versions.v1_0),t.fallbackTextProperty=new ei.StringProperty(ei.Versions.v1_0,"fallbackText"),t.speakProperty=new ei.StringProperty(ei.Versions.v1_0,"speak"),t.refreshProperty=new ei.SerializableObjectProperty(ei.Versions.v1_4,"refresh",ka,!0),t.authenticationProperty=new ei.SerializableObjectProperty(ei.Versions.v1_4,"authentication",Aa,!0),t._haveWarnedAboutNoMarkdownProcessing=!1,Uo([(0,ei.property)(t.versionProperty)],t.prototype,"version",void 0),Uo([(0,ei.property)(t.fallbackTextProperty)],t.prototype,"fallbackText",void 0),Uo([(0,ei.property)(t.speakProperty)],t.prototype,"speak",void 0),Uo([(0,ei.property)(t.refreshProperty)],t.prototype,"refresh",null),Uo([(0,ei.property)(t.authenticationProperty)],t.prototype,"authentication",void 0),t}(wa);Bn.AdaptiveCard=Ia;var _a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suppressStyle=!1,t}return $o(t,e),t.prototype.getSchemaKey=function(){return"InlineAdaptiveCard"},t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(Ia.$schemaProperty,Ia.versionProperty)},t.prototype.getDefaultPadding=function(){return new Xo.PaddingDefinition(this.suppressStyle?qo.Spacing.None:qo.Spacing.Padding,qo.Spacing.Padding,this.suppressStyle?qo.Spacing.None:qo.Spacing.Padding,qo.Spacing.Padding)},Object.defineProperty(t.prototype,"bypassVersionCheck",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return this.suppressStyle?qo.ContainerStyle.Default:this.hostConfig.actions.showCard.style?this.hostConfig.actions.showCard.style:qo.ContainerStyle.Emphasis},enumerable:!1,configurable:!0}),t.prototype.render=function(t){var n=e.prototype.render.call(this,t);return n&&(n.setAttribute("aria-live","polite"),n.removeAttribute("tabindex")),n},t}(Ia),Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._forbiddenTypes=new Set,t}return $o(t,e),t.prototype.internalParseCardObject=function(e,t,n,r,o,i){var a=this,s=void 0;if(t&&"object"==typeof t){var l=new Set;this._forbiddenTypes.forEach(function(e){l.add(e)}),n.forEach(function(e){a._forbiddenTypes.add(e)});var c=Yo.parseString(t.type);if(c&&this._forbiddenTypes.has(c))i(c,qo.TypeErrorType.ForbiddenType);else{var u=!1;if((s=o(c))?(s.setParent(e),s.parse(t,this),u=Xo.GlobalSettings.enableFallback&&r&&s.shouldFallback()):(u=Xo.GlobalSettings.enableFallback&&r,i(c,qo.TypeErrorType.UnknownType)),u){var d=t.fallback;!d&&e&&e.setShouldFallback(!0),"string"==typeof d&&"drop"===d.toLowerCase()?s=void 0:"object"==typeof d&&(s=this.internalParseCardObject(e,d,n,!0,o,i))}}this._forbiddenTypes=l}return s},t.prototype.cardObjectParsed=function(e,t){e instanceof $i&&this.onParseAction?this.onParseAction(e,t,this):e instanceof ai&&this.onParseElement&&this.onParseElement(e,t,this)},t.prototype.shouldSerialize=function(e){return e instanceof $i?void 0!==this.actionRegistry.findByName(e.getJsonTypeName()):!(e instanceof ai)||void 0!==this.elementRegistry.findByName(e.getJsonTypeName())},t.prototype.parseCardObject=function(e,t,n,r,o,i){var a=new Set(n),s=this.internalParseCardObject(e,t,a,r,o,i);return void 0!==s&&this.cardObjectParsed(s,t),s},t.prototype.parseElement=function(e,t,n,r){var o=this;return this.parseCardObject(e,t,n,r,function(e){return o.elementRegistry.createInstance(e,o.targetVersion)},function(e,t){t===qo.TypeErrorType.UnknownType?o.logParseEvent(void 0,qo.ValidationEvent.UnknownElementType,ni.Strings.errors.unknownElementType(e)):o.logParseEvent(void 0,qo.ValidationEvent.ElementTypeNotAllowed,ni.Strings.errors.elementTypeNotAllowed(e))})},t.prototype.parseAction=function(e,t,n,r){var o=this;return this.parseCardObject(e,t,n,r,function(e){return o.actionRegistry.createInstance(e,o.targetVersion)},function(e,t){t===qo.TypeErrorType.UnknownType?o.logParseEvent(void 0,qo.ValidationEvent.UnknownActionType,ni.Strings.errors.unknownActionType(e)):o.logParseEvent(void 0,qo.ValidationEvent.ActionTypeNotAllowed,ni.Strings.errors.actionTypeNotAllowed(e))})},Object.defineProperty(t.prototype,"elementRegistry",{get:function(){var e;return null!==(e=this._elementRegistry)&&void 0!==e?e:ti.GlobalRegistry.elements},enumerable:!1,configurable:!0}),t.prototype.setElementRegistry=function(e){this._elementRegistry=e},Object.defineProperty(t.prototype,"actionRegistry",{get:function(){var e;return null!==(e=this._actionRegistry)&&void 0!==e?e:ti.GlobalRegistry.actions},enumerable:!1,configurable:!0}),t.prototype.setActionRegistry=function(e){this._actionRegistry=e},t}(ei.BaseSerializationContext);Bn.SerializationContext=Ta,ti.GlobalRegistry.defaultElements.register("Container",ma),ti.GlobalRegistry.defaultElements.register("TextBlock",ci),ti.GlobalRegistry.defaultElements.register("RichTextBlock",di,ei.Versions.v1_2),ti.GlobalRegistry.defaultElements.register("TextRun",ui,ei.Versions.v1_2),ti.GlobalRegistry.defaultElements.register("Image",fi),ti.GlobalRegistry.defaultElements.register("ImageSet",vi),ti.GlobalRegistry.defaultElements.register("Media",Mi,ei.Versions.v1_1),ti.GlobalRegistry.defaultElements.register("FactSet",hi),ti.GlobalRegistry.defaultElements.register("ColumnSet",ga),ti.GlobalRegistry.defaultElements.register("ActionSet",ca,ei.Versions.v1_2),ti.GlobalRegistry.defaultElements.register("Input.Text",Di),ti.GlobalRegistry.defaultElements.register("Input.Date",Hi),ti.GlobalRegistry.defaultElements.register("Input.Time",Wi),ti.GlobalRegistry.defaultElements.register("Input.Number",Li),ti.GlobalRegistry.defaultElements.register("Input.ChoiceSet",Ri),ti.GlobalRegistry.defaultElements.register("Input.Toggle",Oi),ti.GlobalRegistry.defaultActions.register(Qi.JsonTypeName,Qi),ti.GlobalRegistry.defaultActions.register(Ji.JsonTypeName,Ji),ti.GlobalRegistry.defaultActions.register(ia.JsonTypeName,ia),ti.GlobalRegistry.defaultActions.register(ea.JsonTypeName,ea,ei.Versions.v1_2),ti.GlobalRegistry.defaultActions.register(Xi.JsonTypeName,Xi,ei.Versions.v1_4);const ja=e=>{let t;return t=e.iconUrl?c.jsx(p.Button,{className:e.className,onClick:e.actionClickHandler,appearance:"primary",children:c.jsxs("div",{style:{display:"flex",flexDirection:e.iconPlacement===Rn.ActionIconPlacement.LeftOfTitle?"row":"column",justifyContent:"center",alignItems:"center"},children:[c.jsx("img",{src:e.iconUrl,style:{width:e.iconSize,height:e.iconSize,flexShrink:0,marginRight:e.iconPlacement===Rn.ActionIconPlacement.LeftOfTitle?4:0,marginBottom:e.iconPlacement!==Rn.ActionIconPlacement.LeftOfTitle?4:0},alt:""}),c.jsx("span",{children:e.text})]})}):"positive"===e.style.toLocaleLowerCase().trim()||"destructive"===e.style.toLocaleLowerCase().trim()?c.jsx(p.Button,{className:e.className,onClick:e.actionClickHandler,appearance:"primary",children:e.text}):c.jsx(p.Button,{className:e.className,onClick:e.actionClickHandler,children:e.text}),t},Ma=(e,t,n,r,o,i,a,s)=>{const l=document.createElement("div");return l.className="fluentUI",H.render(c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:s,children:c.jsx(ja,{text:e,className:n,iconUrl:t,iconPlacement:r,iconSize:o,actionClickHandler:i,style:a,theme:s})})}),l),l.addEventListener("DOMNodeRemoved",()=>{H.unmountComponentAtNode(l)}),l};class Na extends Yi{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,n;const r=this.hostConfig.hostCapabilities.getCustomProperty(Nn),o=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title??"",this.iconUrl||"",e||"",o.iconPlacement,o.iconSize,this.actionClickHandler,this.style,r)}}class Da extends Ki{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,n;const r=this.hostConfig.hostCapabilities.getCustomProperty(Nn),o=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title??"",this.iconUrl||"",e||"",o.iconPlacement,o.iconSize,this.actionClickHandler,this.style,r)}}class Oa extends aa{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){if(this.renderedElement){const e=1===this.state;this.renderedElement.setAttribute("aria-expanded",e.toString())}}render(e){var t,n;const r=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title||"Default Title",this.iconUrl||"",this.iconUrl??"",r.iconPlacement,r.iconSize,this.actionClickHandler,this.style)}}class Va extends Gi{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,n;const r=this.hostConfig.hostCapabilities.getCustomProperty(Nn),o=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title??"",this.iconUrl??"",e||"",o.iconPlacement,o.iconSize,this.actionClickHandler,this.style,r)}}class Ba extends ta{constructor(){super(...arguments),s(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){if(this.renderedElement){const e=1===this.state;this.renderedElement.setAttribute("aria-expanded",e.toString())}}render(e){var t,n;const r=this.hostConfig.hostCapabilities.getCustomProperty(Nn),o=(null==(n=null==(t=this.parent)?void 0:t.hostConfig)?void 0:n.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=Ma(this.title??"",this.iconUrl??"",e||"",o.iconPlacement,o.iconSize,this.actionClickHandler,this.style,r)}}const Ra=e=>{const t=document.createElement("div");return H.render(e(),t),t};var za=Object.defineProperty,La=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&za(t,n,i),i};const Ha=(e=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"style"),s(this,"isMultiSelect",!1),s(this,"placeholder"),s(this,"wrap",!1),s(this,"choices",[]),s(this,"element"),s(this,"refControl"),s(this,"selectedValues",[]),s(this,"defaultSelectedValues",[]),s(this,"updateSelectedValues",(e,t,n)=>{t?n?this.selectedValues.includes(e)||this.selectedValues.push(e):this.removeItemFromArray(this.selectedValues,e):this.selectedValues=[e]}),s(this,"removeItemFromArray",(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})}get isCompact(){return!this.style||"compact"===this.style}set isCompact(e){this.style=e?void 0:"expanded"}internalRender(){const e=Dn(this.hostConfig),t=this.choices?this.choices.map(e=>({key:e.value,text:e.title})):[];this.defaultValue&&(this.defaultSelectedValues=this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator),this.selectedValues=[...this.defaultSelectedValues]);const n=()=>{var e;const[n,r]=L.useState(this.selectedValues);return L.useEffect(()=>{r(this.selectedValues)},[this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)]),c.jsx(p.Combobox,{style:{width:"100%"},placeholder:this.placeholder,multiselect:this.isMultiSelect,value:this.isMultiSelect?n.map(e=>{var n;return null==(n=t.find(t=>t.key===e))?void 0:n.text}).join(this.hostConfig.choiceSetInputValueSeparator):null==(e=t.find(e=>n[0]===e.key))?void 0:e.text,selectedOptions:this.isMultiSelect?n:[n[0]],autoComplete:"filtered"===this.style?"on":"off",onOptionSelect:(e,t)=>{if(this.isMultiSelect)r(t.selectedOptions),this.selectedValues=t.selectedOptions;else{const e=t.optionValue??"";r([e]),this.selectedValues=[e]}this.valueChanged()},ref:e=>{this.refControl=e},children:t.map(e=>c.jsx(p.Option,{value:e.key,children:e.text??""},e.key))})};return this.element=Ra(()=>c.jsxs(c.Fragment,{children:[!this.isMultiSelect&&"expanded"===this.style&&c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(p.RadioGroup,{defaultValue:this.defaultValue,onChange:(e,t)=>{this.updateSelectedValues(t.value,this.isMultiSelect,!0),this.valueChanged()},ref:e=>{this.refControl=e},children:this.choices.map((e,t)=>c.jsx(p.Radio,{value:e.value,label:e.title,style:{marginTop:t>0?this.hostConfig.spacing.default:0}},e.value))})})}),this.isMultiSelect&&"expanded"===this.style&&c.jsx("div",{style:{display:"flex",gap:this.hostConfig.spacing.default},children:this.choices.map((t,n)=>{const r=this.defaultSelectedValues.indexOf(t.value??"")>-1;return c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(p.Checkbox,{label:t.title,defaultChecked:r,onChange:(e,n)=>{this.updateSelectedValues(t.value??"",this.isMultiSelect,!!n),this.valueChanged()},ref:e=>{0===n&&(this.refControl=e)}})})},t.value)})}),("compact"===this.style||"filtered"===this.style)&&c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(n,{})})})]})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.ChoiceSet"}focus(){this.refControl&&this.refControl.focus&&this.refControl.focus()}internalValidateProperties(e){super.internalValidateProperties(e),0===this.choices.length&&e.addFailure(this,A.ValidationEvent.CollectionCantBeEmpty,A.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(const t of this.choices)t.title&&t.value||e.addFailure(this,A.ValidationEvent.PropertyCantBeNull,A.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}isSet(){return!!this.value}isValid(){return!!this.value||!this.isRequired}get value(){if(this.selectedValues)return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)}},s(e,"valueProperty",new A.StringProperty(A.Versions.v1_5,"value")),s(e,"choicesProperty",new A.SerializableObjectCollectionProperty(A.Versions.v1_5,"choices",A.Choice)),s(e,"styleProperty",new A.ValueSetProperty(A.Versions.v1_5,"style",[{value:"compact"},{value:"expanded"},{value:"filtered",targetVersion:A.Versions.v1_5}],"compact")),s(e,"isMultiSelectProperty",new A.BoolProperty(A.Versions.v1_5,"isMultiSelect",!1)),s(e,"placeholderProperty",new A.StringProperty(A.Versions.v1_5,"placeholder")),s(e,"wrapProperty",new A.BoolProperty(A.Versions.v1_5,"wrap",!1)),e);La([A.property(Ha.valueProperty)],Ha.prototype,"defaultValue"),La([A.property(Ha.styleProperty)],Ha.prototype,"style"),La([A.property(Ha.isMultiSelectProperty)],Ha.prototype,"isMultiSelect"),La([A.property(Ha.placeholderProperty)],Ha.prototype,"placeholder"),La([A.property(Ha.wrapProperty)],Ha.prototype,"wrap"),La([A.property(Ha.choicesProperty)],Ha.prototype,"choices");let Fa=Ha;var Wa=Object.defineProperty,$a=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&Wa(t,n,i),i};const Ua=(t=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"min"),s(this,"max"),s(this,"placeholder"),s(this,"_value"),s(this,"refControl"),s(this,"element")}internalRender(){const e=Dn(this.hostConfig);return this.element=Ra(()=>c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(T.DatePicker,{id:this.id,placeholder:this.placeholder,minDate:this.convertStringToDate(this.min),maxDate:this.convertStringToDate(this.max),onSelectDate:e=>{this._value=e??void 0,this.valueChanged()},ref:e=>{this.refControl=e},style:{width:"100%"}})})})),this.element.style.width="100%",this.element}convertStringToDate(e){if(e)try{const t=new Date(e);return isNaN(t.getTime())?void 0:t}catch{return}}getJsonTypeName(){return"Input.Date"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;const e=new Date(this.value);let t=!0;if(this.min){const n=new Date(this.min);t=t&&e>=n}if(this.max){const n=new Date(this.max);t=t&&e<=n}return t}get value(){if(this._value){const e=this._value.getTimezoneOffset();return new Date(this._value.getTime()-60*e*1e3).toISOString().split("T")[0]}}},s(t,"valueProperty",new A.StringProperty(A.Versions.v1_5,"value")),s(t,"placeholderProperty",new A.StringProperty(A.Versions.v1_5,"placeholder")),s(t,"minProperty",new A.StringProperty(A.Versions.v1_0,"min")),s(t,"maxProperty",new A.StringProperty(A.Versions.v1_0,"max")),t);$a([A.property(Ua.valueProperty)],Ua.prototype,"defaultValue"),$a([A.property(Ua.minProperty)],Ua.prototype,"min"),$a([A.property(Ua.maxProperty)],Ua.prototype,"max"),$a([A.property(Ua.placeholderProperty)],Ua.prototype,"placeholder");let Ja=Ua;var Ga=Object.defineProperty,qa=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&Ga(t,n,i),i};const Xa=(n=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"min"),s(this,"max"),s(this,"placeholder"),s(this,"refControl",null),s(this,"element")}internalRender(){const e=Dn(this.hostConfig);return this.element=Ra(()=>c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:c.jsx(p.SpinButton,{style:{width:"calc(100% - 10px)"},id:this.id,defaultValue:void 0!==this.defaultValue?this.defaultValue:void 0,placeholder:this.placeholder,min:this.min,max:this.max,onChange:()=>{this.valueChanged()},ref:e=>{this.refControl=e}})})})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.Number"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){const e=this.value;return void 0!==e&&!isNaN(e)}isValid(){const e=this.value;if(void 0===e)return!this.isRequired;let t=!0;return void 0!==this.min&&(t=t&&e>=this.min),void 0!==this.max&&(t=t&&e<=this.max),t}get value(){return this.refControl?Number(this.refControl.value):void 0}},s(n,"valueProperty",new A.NumProperty(A.Versions.v1_5,"value")),s(n,"placeholderProperty",new A.StringProperty(A.Versions.v1_5,"placeholder")),s(n,"minProperty",new A.NumProperty(A.Versions.v1_0,"min")),s(n,"maxProperty",new A.NumProperty(A.Versions.v1_0,"max")),n);qa([A.property(Xa.valueProperty)],Xa.prototype,"defaultValue"),qa([A.property(Xa.minProperty)],Xa.prototype,"min"),qa([A.property(Xa.maxProperty)],Xa.prototype,"max"),qa([A.property(Xa.placeholderProperty)],Xa.prototype,"placeholder");let Ya=Xa;const Za=e=>{const{ariaLabel:t,iconProps:n,styles:r,className:o,onClick:i,...a}=e;return c.jsx(p.Button,{appearance:"transparent","aria-label":t,className:o,onClick:i,style:r,...a,children:c.jsx("img",{src:n.src,alt:t,style:{height:n.height||"100%",width:n.width||"auto"}})})},Qa={marginLeft:8};var Ka=Object.defineProperty,es=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&Ka(t,n,i),i};const ts=(r=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"maxLength"),s(this,"isMultiline",!1),s(this,"placeholder"),s(this,"style",A.InputTextStyle.Text),s(this,"inlineAction"),s(this,"regex"),s(this,"refControl",null),s(this,"element"),s(this,"_value",this.defaultValue||""),s(this,"handleKeyDown",e=>{var t;"Enter"===e.key&&this.inlineAction&&(null==(t=this.inlineAction)||t.execute())}),s(this,"buildInlineActionButton",()=>{var e;return Ra((null==(e=this.inlineAction)?void 0:e.iconUrl)?this.inlineIconActionButton:this.buildTextOnlyInlineActionActionButton)}),s(this,"inlineActionClickHandler",e=>{var t;e.stopPropagation(),e.preventDefault(),null==(t=this.inlineAction)||t.execute()}),s(this,"inlineIconActionButton",()=>{var e,t;const n=this.hostConfig.hostCapabilities.getCustomProperty(Nn);return c.jsx(p.FluentProvider,{theme:n,children:c.jsx(Za,{ariaLabel:(null==(e=this.inlineAction)?void 0:e.title)||"Inline action",className:this.hostConfig.makeCssClassName("ac-inlineActionButton","iconOnly"),iconProps:{src:(null==(t=this.inlineAction)?void 0:t.iconUrl)??""},onClick:this.inlineActionClickHandler,styles:Qa})})}),s(this,"buildTextOnlyInlineActionActionButton",()=>{var e;const t=this.hostConfig.hostCapabilities.getCustomProperty(Nn);return c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:t,children:c.jsx(p.Button,{appearance:"primary",className:this.hostConfig.makeCssClassName("ac-inlineActionButton","textOnly"),onClick:this.inlineActionClickHandler,style:Qa,children:(null==(e=this.inlineAction)?void 0:e.title)??""})})})})}internalRender(){const e=Dn(this.hostConfig);return this.element=Ra(()=>c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,children:this.isMultiline?c.jsx(p.Textarea,{resize:"vertical",style:{width:"100%"},id:this.id,defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e}}):c.jsx(p.Input,{id:this.id,style:{width:"100%"},type:A.InputTextStyle[this.style].toLowerCase(),defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e?e.inputElement:null}})})})),this.element.style.width="100%",this.element}overrideInternalRender(){const e=super.overrideInternalRender();return this.inlineAction&&this.inputControlContainerElement.appendChild(this.buildInlineActionButton()),e||document.createElement("div")}getJsonTypeName(){return"Input.Text"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}getActionById(e){let t=super.getActionById(e);if(!t&&this.inlineAction&&(t=this.inlineAction.getActionById(e)),!t)throw new Error(`Action with id '${e}' not found.`);return t}isSet(){return!!this.value}isValid(){return this.value?!this.regex||new RegExp(this.regex,"g").test(this.value):!this.isRequired}get value(){if(this._value)return this._value}},s(r,"valueProperty",new A.StringProperty(A.Versions.v1_0,"value")),s(r,"maxLengthProperty",new A.NumProperty(A.Versions.v1_0,"maxLength")),s(r,"isMultilineProperty",new A.BoolProperty(A.Versions.v1_0,"isMultiline",!1)),s(r,"placeholderProperty",new A.StringProperty(A.Versions.v1_0,"placeholder")),s(r,"styleProperty",new A.EnumProperty(A.Versions.v1_0,"style",A.InputTextStyle,A.InputTextStyle.Text)),s(r,"inlineActionProperty",new A.ActionProperty(A.Versions.v1_0,"inlineAction",["Action.ShowCard"])),s(r,"regexProperty",new A.StringProperty(A.Versions.v1_3,"regex",!0)),r);es([A.property(ts.valueProperty)],ts.prototype,"defaultValue"),es([A.property(ts.maxLengthProperty)],ts.prototype,"maxLength"),es([A.property(ts.isMultilineProperty)],ts.prototype,"isMultiline"),es([A.property(ts.placeholderProperty)],ts.prototype,"placeholder"),es([A.property(ts.styleProperty)],ts.prototype,"style"),es([A.property(ts.inlineActionProperty)],ts.prototype,"inlineAction"),es([A.property(ts.regexProperty)],ts.prototype,"regex");let ns=ts;var rs=Object.defineProperty,os=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&rs(t,n,i),i};const is=e=>{const{id:t,defaultTime:n,minTime:r,maxTime:o,placeholder:i,theme:a,onTimeChange:s}=e,[l,u]=L.useState(n),[d,h]=L.useState(n?j.formatDateToTimeString(n??new Date):"");return c.jsx(p.IdPrefixProvider,{value:t,children:c.jsx(p.FluentProvider,{theme:a,children:c.jsx(j.TimePicker,{style:{width:"100%"},expandIcon:c.jsx(v.ClockRegular,{}),id:t,freeform:!0,min:r?j.formatDateToTimeString(r):void 0,max:o?j.formatDateToTimeString(o):void 0,placeholder:i,value:l?j.formatDateToTimeString(l):d,onTimeChange:(e,t)=>{const n=t.selectedTime??void 0,r=t.selectedTimeText??"";u(n),h(r),s&&n&&s(n,r)},onInput:e=>{h(e.target.value)}})})})},as=(o=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"min"),s(this,"max"),s(this,"placeholder"),s(this,"_time"),s(this,"element")}static convertTimeStringToDate(e){return new Date("1973-09-04T"+e+":00Z")}internalRender(){const e=Dn(this.hostConfig),t=this.defaultValue?o.convertTimeStringToDate(this.defaultValue):void 0,n=this.min?o.convertTimeStringToDate(this.min):void 0,r=this.max?o.convertTimeStringToDate(this.max):void 0;return this.element=Ra(()=>c.jsx(is,{id:A.generateUniqueId(),defaultTime:t,minTime:n,maxTime:r,placeholder:this.placeholder,theme:e,onTimeChange:e=>{this._time=e,this.valueChanged()}})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.Time"}focus(){}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;if(!this._time)return!1;let e=!0;if(this.min){const t=o.convertTimeStringToDate(this.min);e=e&&this._time>=t}if(this.max){const t=o.convertTimeStringToDate(this.max);e=e&&this._time<=t}return e}get value(){return this._time?j.formatDateToTimeString(this._time):void 0}},s(o,"valueProperty",new A.TimeProperty(A.Versions.v1_0,"value")),s(o,"placeholderProperty",new A.StringProperty(A.Versions.v1_0,"placeholder")),s(o,"minProperty",new A.TimeProperty(A.Versions.v1_0,"min")),s(o,"maxProperty",new A.TimeProperty(A.Versions.v1_0,"max")),o);os([A.property(as.valueProperty)],as.prototype,"defaultValue"),os([A.property(as.minProperty)],as.prototype,"min"),os([A.property(as.maxProperty)],as.prototype,"max"),os([A.property(as.placeholderProperty)],as.prototype,"placeholder");let ss=as;var ls=Object.defineProperty,cs=(e,t,n,r)=>{for(var o,i=void 0,a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);return i&&ls(t,n,i),i};const us=(i=class extends A.Input{constructor(){super(...arguments),s(this,"defaultValue"),s(this,"title"),s(this,"valueOn","true"),s(this,"valueOff","false"),s(this,"wrap",!1),s(this,"_value"),s(this,"refControl",null),s(this,"element")}internalRender(){const e=Dn(this.hostConfig);return this.element=Ra(()=>c.jsx(p.IdPrefixProvider,{value:A.generateUniqueId(),children:c.jsx(p.FluentProvider,{theme:e,style:{backgroundColor:"transparent"},children:c.jsx(p.Switch,{id:this.id,label:this.title,onChange:(e,t)=>{this._value=t.checked,this.valueChanged()},defaultChecked:this.defaultValue===this.valueOn,style:{marginBottom:0,marginTop:0},ref:e=>{this.refControl=e}})})})),this.element.style.width="100%",this.element}get isNullable(){return!1}getJsonTypeName(){return"Input.Toggle"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return this.isRequired?this.value===this.valueOn:!!this.value}get value(){return null!==this._value&&void 0!==this._value?this._value?this.valueOn:this.valueOff:this.isRequired?void 0:this.valueOff}},s(i,"valueProperty",new A.StringProperty(A.Versions.v1_5,"value")),s(i,"titleProperty",new A.StringProperty(A.Versions.v1_5,"title")),s(i,"valueOnProperty",new A.StringProperty(A.Versions.v1_5,"valueOn",!0,void 0,"true",e=>"true")),s(i,"valueOffProperty",new A.StringProperty(A.Versions.v1_5,"valueOff",!0,void 0,"false",e=>"false")),s(i,"wrapProperty",new A.BoolProperty(A.Versions.v1_2,"wrap",!1)),i);cs([A.property(us.valueProperty)],us.prototype,"defaultValue"),cs([A.property(us.titleProperty)],us.prototype,"title"),cs([A.property(us.valueOnProperty)],us.prototype,"valueOn"),cs([A.property(us.valueOffProperty)],us.prototype,"valueOff"),cs([A.property(us.wrapProperty)],us.prototype,"wrap");let ds=us;console.log("expression:",N.Expression);const ps=e=>{switch(e){case jn.SharePoint:return p.webLightTheme;case jn.Teams:return p.teamsLightTheme;case jn.TeamsDark:return p.teamsDarkTheme;case jn.TeamsHighContrast:return p.teamsHighContrastTheme;default:return p.webLightTheme}};var hs=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ms="-ms-",fs="-moz-",gs="-webkit-",ys="comm",vs="rule",bs="decl",xs="@keyframes",Cs=Math.abs,ws=String.fromCharCode,Ss=Object.assign;function ks(e){return e.trim()}function Ps(e,t,n){return e.replace(t,n)}function Es(e,t){return e.indexOf(t)}function As(e,t){return 0|e.charCodeAt(t)}function Is(e,t,n){return e.slice(t,n)}function _s(e){return e.length}function Ts(e){return e.length}function js(e,t){return t.push(e),e}var Ms=1,Ns=1,Ds=0,Os=0,Vs=0,Bs="";function Rs(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ms,column:Ns,length:a,return:""}}function zs(e,t){return Ss(Rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ls(){return Vs=Os>0?As(Bs,--Os):0,Ns--,10===Vs&&(Ns=1,Ms--),Vs}function Hs(){return Vs=Os<Ds?As(Bs,Os++):0,Ns++,10===Vs&&(Ns=1,Ms++),Vs}function Fs(){return As(Bs,Os)}function Ws(){return Os}function $s(e,t){return Is(Bs,e,t)}function Us(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Js(e){return Ms=Ns=1,Ds=_s(Bs=e),Os=0,[]}function Gs(e){return Bs="",e}function qs(e){return ks($s(Os-1,Zs(91===e?e+2:40===e?e+1:e)))}function Xs(e){for(;(Vs=Fs())&&Vs<33;)Hs();return Us(e)>2||Us(Vs)>3?"":" "}function Ys(e,t){for(;--t&&Hs()&&!(Vs<48||Vs>102||Vs>57&&Vs<65||Vs>70&&Vs<97););return $s(e,Ws()+(t<6&&32==Fs()&&32==Hs()))}function Zs(e){for(;Hs();)switch(Vs){case e:return Os;case 34:case 39:34!==e&&39!==e&&Zs(Vs);break;case 40:41===e&&Zs(e);break;case 92:Hs()}return Os}function Qs(e,t){for(;Hs()&&e+Vs!==57&&(e+Vs!==84||47!==Fs()););return"/*"+$s(t,Os-1)+"*"+ws(47===e?e:Hs())}function Ks(e){for(;!Us(Fs());)Hs();return $s(e,Os)}function el(e){return Gs(tl("",null,null,null,[""],e=Js(e),0,[0],e))}function tl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,m=0,f=1,g=1,y=1,v=0,b="",x=o,C=i,w=r,S=b;g;)switch(m=v,v=Hs()){case 40:if(108!=m&&58==As(S,d-1)){-1!=Es(S+=Ps(qs(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=qs(v);break;case 9:case 10:case 13:case 32:S+=Xs(m);break;case 92:S+=Ys(Ws()-1,7);continue;case 47:switch(Fs()){case 42:case 47:js(rl(Qs(Hs(),Ws()),t,n),l);break;default:S+="/"}break;case 123*f:s[c++]=_s(S)*y;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=Ps(S,/\f/g,"")),h>0&&_s(S)-d&&js(h>32?ol(S+";",r,n,d-1):ol(Ps(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(js(w=nl(S,t,n,c,u,o,s,b,x=[],C=[],d),i),123===v)if(0===u)tl(S,t,w,w,x,i,d,s,C);else switch(99===p&&110===As(S,3)?100:p){case 100:case 108:case 109:case 115:tl(e,w,w,r&&js(nl(e,w,w,0,0,o,s,b,o,x=[],d),C),o,C,d,s,r?x:C);break;default:tl(S,w,w,w,[""],C,0,s,C)}}c=u=h=0,f=y=1,b=S="",d=a;break;case 58:d=1+_s(S),h=m;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Ls())continue;switch(S+=ws(v),v*f){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(_s(S)-1)*y,y=1;break;case 64:45===Fs()&&(S+=qs(Hs())),p=Fs(),u=d=_s(b=S+=Ks(Ws())),v++;break;case 45:45===m&&2==_s(S)&&(f=0)}}return i}function nl(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=Ts(p),m=0,f=0,g=0;m<r;++m)for(var y=0,v=Is(e,d+1,d=Cs(f=a[m])),b=e;y<h;++y)(b=ks(f>0?p[y]+" "+v:Ps(v,/&\f/g,p[y])))&&(l[g++]=b);return Rs(e,t,n,0===o?vs:s,l,c,u)}function rl(e,t,n){return Rs(e,t,n,ys,ws(Vs),Is(e,2,-2),0)}function ol(e,t,n,r){return Rs(e,t,n,bs,Is(e,0,r),Is(e,r+1,-1),r)}function il(e,t){for(var n="",r=Ts(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function al(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bs:return e.return=e.return||e.value;case ys:return"";case xs:return e.return=e.value+"{"+il(e.children,r)+"}";case vs:e.value=e.props.join(",")}return _s(n=il(e.children,r))?e.return=e.value+"{"+n+"}":""}function sl(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ll=function(e,t,n){for(var r=0,o=0;r=o,o=Fs(),38===r&&12===o&&(t[n]=1),!Us(o);)Hs();return $s(e,Os)},cl=function(e,t){return Gs(function(e,t){var n=-1,r=44;do{switch(Us(r)){case 0:38===r&&12===Fs()&&(t[n]=1),e[n]+=ll(Os-1,t,n);break;case 2:e[n]+=qs(r);break;case 4:if(44===r){e[++n]=58===Fs()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ws(r)}}while(r=Hs());return e}(Js(e),t))},ul=new WeakMap,dl=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ul.get(n))&&!r){ul.set(e,!0);for(var o=[],i=cl(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},pl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function hl(e,t){switch(function(e,t){return 45^As(e,0)?(((t<<2^As(e,0))<<2^As(e,1))<<2^As(e,2))<<2^As(e,3):0}(e,t)){case 5103:return gs+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gs+e+fs+e+ms+e+e;case 6828:case 4268:return gs+e+ms+e+e;case 6165:return gs+e+ms+"flex-"+e+e;case 5187:return gs+e+Ps(e,/(\w+).+(:[^]+)/,gs+"box-$1$2"+ms+"flex-$1$2")+e;case 5443:return gs+e+ms+"flex-item-"+Ps(e,/flex-|-self/,"")+e;case 4675:return gs+e+ms+"flex-line-pack"+Ps(e,/align-content|flex-|-self/,"")+e;case 5548:return gs+e+ms+Ps(e,"shrink","negative")+e;case 5292:return gs+e+ms+Ps(e,"basis","preferred-size")+e;case 6060:return gs+"box-"+Ps(e,"-grow","")+gs+e+ms+Ps(e,"grow","positive")+e;case 4554:return gs+Ps(e,/([^-])(transform)/g,"$1"+gs+"$2")+e;case 6187:return Ps(Ps(Ps(e,/(zoom-|grab)/,gs+"$1"),/(image-set)/,gs+"$1"),e,"")+e;case 5495:case 3959:return Ps(e,/(image-set\([^]*)/,gs+"$1$`$1");case 4968:return Ps(Ps(e,/(.+:)(flex-)?(.*)/,gs+"box-pack:$3"+ms+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gs+e+e;case 4095:case 3583:case 4068:case 2532:return Ps(e,/(.+)-inline(.+)/,gs+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_s(e)-1-t>6)switch(As(e,t+1)){case 109:if(45!==As(e,t+4))break;case 102:return Ps(e,/(.+:)(.+)-([^]+)/,"$1"+gs+"$2-$3$1"+fs+(108==As(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Es(e,"stretch")?hl(Ps(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==As(e,t+1))break;case 6444:switch(As(e,_s(e)-3-(~Es(e,"!important")&&10))){case 107:return Ps(e,":",":"+gs)+e;case 101:return Ps(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gs+(45===As(e,14)?"inline-":"")+"box$3$1"+gs+"$2$3$1"+ms+"$2box$3")+e}break;case 5936:switch(As(e,t+11)){case 114:return gs+e+ms+Ps(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gs+e+ms+Ps(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gs+e+ms+Ps(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gs+e+ms+e+e}return e}var ml,fl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case bs:e.return=hl(e.value,e.length);break;case xs:return il([zs(e,{value:Ps(e.value,"@","@"+gs)})],r);case vs:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return il([zs(e,{props:[Ps(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return il([zs(e,{props:[Ps(t,/:(plac\w+)/,":"+gs+"input-$1")]}),zs(e,{props:[Ps(t,/:(plac\w+)/,":-moz-$1")]}),zs(e,{props:[Ps(t,/:(plac\w+)/,ms+"input-$1")]})],r)}return""})}}],gl=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||fl,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,p=[al,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[dl,pl].concat(i,p),u=Ts(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,il(el(e?e+"{"+t.styles+"}":t.styles),h),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new hs({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return m.sheet.hydrate(s),m},yl={exports:{}},vl={};var bl,xl={};
25
25
  /** @license React v16.13.1
26
26
  * react-is.development.js
27
27
  *
@@ -29,7 +29,7 @@ var s=function(){function e(){}return e.generate=function(){var t=4294967295*Mat
29
29
  *
30
30
  * This source code is licensed under the MIT license found in the
31
31
  * LICENSE file in the root directory of this source tree.
32
- */"production"===process.env.NODE_ENV?yl.exports=function(){if(ml)return vl;ml=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case h:case a:return e;default:return p}}case n:return p}}}function x(e){return b(e)===c}return vl.AsyncMode=l,vl.ConcurrentMode=c,vl.ContextConsumer=s,vl.ContextProvider=a,vl.Element=t,vl.ForwardRef=u,vl.Fragment=r,vl.Lazy=m,vl.Memo=h,vl.Portal=n,vl.Profiler=i,vl.StrictMode=o,vl.Suspense=d,vl.isAsyncMode=function(e){return x(e)||b(e)===l},vl.isConcurrentMode=x,vl.isContextConsumer=function(e){return b(e)===s},vl.isContextProvider=function(e){return b(e)===a},vl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vl.isForwardRef=function(e){return b(e)===u},vl.isFragment=function(e){return b(e)===r},vl.isLazy=function(e){return b(e)===m},vl.isMemo=function(e){return b(e)===h},vl.isPortal=function(e){return b(e)===n},vl.isProfiler=function(e){return b(e)===i},vl.isStrictMode=function(e){return b(e)===o},vl.isSuspense=function(e){return b(e)===d},vl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===f)},vl.typeOf=b,vl}():yl.exports=(bl||(bl=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var f=e.type;switch(f){case l:case c:case r:case i:case o:case d:return f;default:var g=f&&f.$$typeof;switch(g){case s:case u:case m:case h:case a:return g;default:return p}}case n:return p}}}var x=l,C=c,w=s,S=a,k=t,P=u,E=r,A=m,I=h,_=n,T=i,j=o,M=d,N=!1;function D(e){return b(e)===c}xl.AsyncMode=x,xl.ConcurrentMode=C,xl.ContextConsumer=w,xl.ContextProvider=S,xl.Element=k,xl.ForwardRef=P,xl.Fragment=E,xl.Lazy=A,xl.Memo=I,xl.Portal=_,xl.Profiler=T,xl.StrictMode=j,xl.Suspense=M,xl.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||b(e)===l},xl.isConcurrentMode=D,xl.isContextConsumer=function(e){return b(e)===s},xl.isContextProvider=function(e){return b(e)===a},xl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xl.isForwardRef=function(e){return b(e)===u},xl.isFragment=function(e){return b(e)===r},xl.isLazy=function(e){return b(e)===m},xl.isMemo=function(e){return b(e)===h},xl.isPortal=function(e){return b(e)===n},xl.isProfiler=function(e){return b(e)===i},xl.isStrictMode=function(e){return b(e)===o},xl.isSuspense=function(e){return b(e)===d},xl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===f)},xl.typeOf=b}()),xl);var Cl=yl.exports,wl={};wl[Cl.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wl[Cl.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Sl=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var kl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pl=/[A-Z]|^ms/g,El=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Al=function(e){return 45===e.charCodeAt(1)},Il=function(e){return null!=e&&"boolean"!=typeof e},_l=sl(function(e){return Al(e)?e:e.replace(Pl,"-$&").toLowerCase()}),Tl=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(El,function(e,t,n){return Ml={name:t,styles:n,next:Ml},t})}return 1===kl[e]||Al(e)||"number"!=typeof t||0===t?t:t+"px"};function jl(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ml={name:o.name,styles:o.styles,next:Ml},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ml={name:a.name,styles:a.styles,next:Ml},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=jl(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;Il(s)&&(r+=_l(i)+":"+Tl(i,s)+";")}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var l=0;l<a.length;l++)Il(a[l])&&(r+=_l(i)+":"+Tl(i,a[l])+";");else{var c=jl(e,t,a);switch(i){case"animation":case"animationName":r+=_l(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var s=Ml,l=n(e);return Ml=s,jl(e,t,l)}}return n}var Ml,Nl=/label:\s*([^\s;{]+)\s*(;|$)/g;function Dl(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ml=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=jl(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=jl(n,t,e[a]),r)o+=i[a]}Nl.lastIndex=0;for(var s,l="";null!==(s=Nl.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Ml}}var Vl=!!L.useInsertionEffect&&L.useInsertionEffect||function(e){return e()},Ol=L.createContext("undefined"!=typeof HTMLElement?gl({key:"css"}):null);Ol.Provider;var Bl,Rl,zl=function(e){return u.forwardRef(function(t,n){var r=u.useContext(Ol);return e(t,r,n)})},Ll=L.createContext({}),Hl={}.hasOwnProperty,Fl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Wl=function(e,t){var n={};for(var r in t)Hl.call(t,r)&&(n[r]=t[r]);return n[Fl]=e,n},$l=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Sl(t,n,r),Vl(function(){return function(e,t,n){Sl(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}),null},Ul=zl(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Fl],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Dl(i,void 0,L.useContext(Ll));a+=t.key+"-"+s.name;var l={};for(var c in e)Hl.call(e,c)&&"css"!==c&&c!==Fl&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),L.createElement(L.Fragment,null,L.createElement($l,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))}),Jl=function(e,t,n){return Hl.call(t,"css")?z.jsx(Ul,Wl(e,t),n):z.jsx(e,t,n)},Gl=function(e,t,n){return Hl.call(t,"css")?z.jsxs(Ul,Wl(e,t),n):z.jsxs(e,t,n)},ql=function(e,t){var n=arguments;if(null==t||!Hl.call(t,"css"))return L.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ul,o[1]=Wl(e,t);for(var i=2;i<r;i++)o[i]=n[i];return L.createElement.apply(null,o)};function Xl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Dl(t)}Bl=ql||(ql={}),Rl||(Rl=Bl.JSX||(Bl.JSX={}));const Yl=Xl`
32
+ */"production"===process.env.NODE_ENV?yl.exports=function(){if(ml)return vl;ml=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case h:case a:return e;default:return p}}case n:return p}}}function x(e){return b(e)===c}return vl.AsyncMode=l,vl.ConcurrentMode=c,vl.ContextConsumer=s,vl.ContextProvider=a,vl.Element=t,vl.ForwardRef=u,vl.Fragment=r,vl.Lazy=m,vl.Memo=h,vl.Portal=n,vl.Profiler=i,vl.StrictMode=o,vl.Suspense=d,vl.isAsyncMode=function(e){return x(e)||b(e)===l},vl.isConcurrentMode=x,vl.isContextConsumer=function(e){return b(e)===s},vl.isContextProvider=function(e){return b(e)===a},vl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vl.isForwardRef=function(e){return b(e)===u},vl.isFragment=function(e){return b(e)===r},vl.isLazy=function(e){return b(e)===m},vl.isMemo=function(e){return b(e)===h},vl.isPortal=function(e){return b(e)===n},vl.isProfiler=function(e){return b(e)===i},vl.isStrictMode=function(e){return b(e)===o},vl.isSuspense=function(e){return b(e)===d},vl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===f)},vl.typeOf=b,vl}():yl.exports=(bl||(bl=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var f=e.type;switch(f){case l:case c:case r:case i:case o:case d:return f;default:var g=f&&f.$$typeof;switch(g){case s:case u:case m:case h:case a:return g;default:return p}}case n:return p}}}var x=l,C=c,w=s,S=a,k=t,P=u,E=r,A=m,I=h,_=n,T=i,j=o,M=d,N=!1;function D(e){return b(e)===c}xl.AsyncMode=x,xl.ConcurrentMode=C,xl.ContextConsumer=w,xl.ContextProvider=S,xl.Element=k,xl.ForwardRef=P,xl.Fragment=E,xl.Lazy=A,xl.Memo=I,xl.Portal=_,xl.Profiler=T,xl.StrictMode=j,xl.Suspense=M,xl.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||b(e)===l},xl.isConcurrentMode=D,xl.isContextConsumer=function(e){return b(e)===s},xl.isContextProvider=function(e){return b(e)===a},xl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xl.isForwardRef=function(e){return b(e)===u},xl.isFragment=function(e){return b(e)===r},xl.isLazy=function(e){return b(e)===m},xl.isMemo=function(e){return b(e)===h},xl.isPortal=function(e){return b(e)===n},xl.isProfiler=function(e){return b(e)===i},xl.isStrictMode=function(e){return b(e)===o},xl.isSuspense=function(e){return b(e)===d},xl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===f)},xl.typeOf=b}()),xl);var Cl=yl.exports,wl={};wl[Cl.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wl[Cl.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Sl=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var kl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pl=/[A-Z]|^ms/g,El=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Al=function(e){return 45===e.charCodeAt(1)},Il=function(e){return null!=e&&"boolean"!=typeof e},_l=sl(function(e){return Al(e)?e:e.replace(Pl,"-$&").toLowerCase()}),Tl=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(El,function(e,t,n){return Ml={name:t,styles:n,next:Ml},t})}return 1===kl[e]||Al(e)||"number"!=typeof t||0===t?t:t+"px"};function jl(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ml={name:o.name,styles:o.styles,next:Ml},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ml={name:a.name,styles:a.styles,next:Ml},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=jl(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;Il(s)&&(r+=_l(i)+":"+Tl(i,s)+";")}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var l=0;l<a.length;l++)Il(a[l])&&(r+=_l(i)+":"+Tl(i,a[l])+";");else{var c=jl(e,t,a);switch(i){case"animation":case"animationName":r+=_l(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var s=Ml,l=n(e);return Ml=s,jl(e,t,l)}}return n}var Ml,Nl=/label:\s*([^\s;{]+)\s*(;|$)/g;function Dl(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ml=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=jl(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=jl(n,t,e[a]),r)o+=i[a]}Nl.lastIndex=0;for(var s,l="";null!==(s=Nl.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Ml}}var Ol=!!L.useInsertionEffect&&L.useInsertionEffect||function(e){return e()},Vl=L.createContext("undefined"!=typeof HTMLElement?gl({key:"css"}):null);Vl.Provider;var Bl,Rl,zl=function(e){return u.forwardRef(function(t,n){var r=u.useContext(Vl);return e(t,r,n)})},Ll=L.createContext({}),Hl={}.hasOwnProperty,Fl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Wl=function(e,t){var n={};for(var r in t)Hl.call(t,r)&&(n[r]=t[r]);return n[Fl]=e,n},$l=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Sl(t,n,r),Ol(function(){return function(e,t,n){Sl(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}),null},Ul=zl(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Fl],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Dl(i,void 0,L.useContext(Ll));a+=t.key+"-"+s.name;var l={};for(var c in e)Hl.call(e,c)&&"css"!==c&&c!==Fl&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),L.createElement(L.Fragment,null,L.createElement($l,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))}),Jl=function(e,t,n){return Hl.call(t,"css")?z.jsx(Ul,Wl(e,t),n):z.jsx(e,t,n)},Gl=function(e,t,n){return Hl.call(t,"css")?z.jsxs(Ul,Wl(e,t),n):z.jsxs(e,t,n)},ql=function(e,t){var n=arguments;if(null==t||!Hl.call(t,"css"))return L.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ul,o[1]=Wl(e,t);for(var i=2;i<r;i++)o[i]=n[i];return L.createElement.apply(null,o)};function Xl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Dl(t)}Bl=ql||(ql={}),Rl||(Rl=Bl.JSX||(Bl.JSX={}));const Yl=Xl`
33
33
  position: relative;
34
34
  display: inline-block;
35
35
  line-height: 0;
@@ -82,7 +82,7 @@ var s=function(){function e(){}return e.generate=function(){var t=4294967295*Mat
82
82
  ${Zl};
83
83
  font-size: ${e}px;
84
84
  ${n?`color: ${n};`:"color: inherit;"}
85
- `;return Gl("span",{css:[Yl,t&&Xl`${t}`],children:[Jl(v.SearchRegular,{css:i}),Jl("span",{css:o,children:"AI"})]})},nc=p.makeStyles({container:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"},section:{display:"flex",flexDirection:"column",gap:"10px"},iconRow:{display:"flex",alignItems:"center",gap:"15px",padding:"10px",border:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRadius:"8px"},label:{minWidth:"150px",fontWeight:600},buttonExample:{display:"flex",alignItems:"center",gap:"8px"},codeBlock:{background:p.tokens.colorNeutralBackground2,padding:"10px",borderRadius:"4px",fontSize:"12px",overflow:"auto",border:`1px solid ${p.tokens.colorNeutralStroke2}`}}),rc=u.memo(({icon:e,hoverIcon:t,imageSrc:n,width:r=24,height:o=24,color:i,hoverColor:a,onClick:s,enabled:l=!0})=>{const d=i||p.tokens.colorBrandBackground,h=a||p.tokens.colorBrandBackgroundHover,m=p.tokens.fontFamilyBase,[f,g]=u.useState(!1),y=u.useCallback(()=>{l&&g(!0)},[l]),v=u.useCallback(()=>{l&&g(!1)},[l]),b=u.useMemo(()=>l&&f&&t?t:e,[f,t,e,l]),x=u.useMemo(()=>({width:r,height:o,color:f?h:d,display:"flex",alignItems:"center",justifyContent:"center",opacity:l?1:.5,fontFamily:m,fontSize:"inherit"}),[r,o,f,h,d,l,m]),C=u.useMemo(()=>({border:"none",background:"none",padding:0,cursor:l?"pointer":"default"}),[l]),w=u.useMemo(()=>({width:r,height:o,objectFit:"contain",opacity:l?1:.5}),[r,o,l]);return c.jsx("button",{onClick:l?s:void 0,onMouseEnter:y,onMouseLeave:v,disabled:!l,style:C,children:n?c.jsx("img",{src:n,alt:"icon",style:w}):u.cloneElement(b,{style:{...b.props.style,...x}})})}),oc=L.forwardRef(({value:e,onChange:t,onSend:n,placeholder:r="Type a message",isRunning:o,onAbort:i},a)=>{const s={container:g.css({backgroundColor:p.tokens.colorNeutralBackground1,border:"1px solid "+p.tokens.colorNeutralStroke1,borderRadius:p.tokens.borderRadiusLarge,padding:`${p.tokens.spacingVerticalXS} ${p.tokens.spacingHorizontalS}`,minHeight:"40px",":focus-within::after":{borderBottom:`2px solid ${p.tokens.colorBrandStroke1}`}}),textarea:g.css({width:"calc(100% - 5px)",flex:1,border:"none",outline:"none",backgroundColor:"transparent",fontSize:p.tokens.fontSizeBase300,color:p.tokens.colorNeutralForeground1,resize:"none","::placeholder":{color:p.tokens.colorNeutralForegroundDisabled},"::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),iconContainer:g.css({display:"flex",alignItems:"center",gap:p.tokens.spacingHorizontalXS,marginLeft:p.tokens.spacingHorizontalXS}),buttonSend:g.css({width:"36px !important",height:"36px !important",maxWidth:"36px !important",maxHeight:"36px !important",minWidth:"36px !important",minHeight:"36px !important"})},l=L.useCallback(()=>{const t=e.trim();t.length>0&&n(t)},[e,n]);return c.jsxs(st,{width:"100%",className:s.container,children:[c.jsx("textarea",{ref:a,className:s.textarea,placeholder:r,value:e,onChange:e=>t(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),l())},rows:3}),c.jsx(st,{horizontal:!0,horizontalAlign:"end",width:"100%",children:o?c.jsx(rc,{icon:c.jsx(v.RecordStopRegular,{}),hoverIcon:c.jsx(v.RecordStopFilled,{}),width:32,height:32,onClick:i}):c.jsx(rc,{icon:c.jsx(v.ArrowCircleUp32Regular,{}),hoverIcon:c.jsx(v.ArrowCircleUp32Filled,{}),width:32,height:32,onClick:l,enabled:e.trim().length>0})})]})}),ic=()=>({listContainer:g.css({display:"grid",gridTemplateColumns:"1fr",gap:p.tokens.spacingVerticalXXS,maxHeight:"400px",overflowY:"auto",overflowX:"hidden",padding:p.tokens.spacingVerticalS,minWidth:"280px","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),suggestionsHeader:g.css({color:p.tokens.colorBrandBackground,padding:p.tokens.spacingVerticalXS}),noResults:g.css({padding:p.tokens.spacingVerticalS,textAlign:"center",color:p.tokens.colorNeutralForeground3})}),ac=({context:e,inputValue:t,parentRef:n,mentionChars:r,onUserSelect:o,theme:i=p.webLightTheme,suggestionsHeader:a="Suggestions",maxSuggestions:s=100,userFilter:l})=>{var d,h;const m=G(),f=e||m,g=null==f?void 0:f.graphClient,y=(null==(h=null==(d=null==f?void 0:f.pageContext)?void 0:d.web)?void 0:h.absoluteUrl)||"",[v,b]=u.useState(!1),[x,C]=u.useState({top:0,left:0}),[w,S]=u.useState([]),[k,P]=u.useState(""),[E,A]=u.useState(""),I=u.useRef({}),_=ic(),T=u.useCallback(async e=>{if(!g)return console.warn("Graph client not available"),[];const t=`${e}_${s}`;if(I.current[t])return I.current[t];try{const n=e&&e.length>0?`startswith(displayName,'${e}') or startswith(givenName,'${e}') or startswith(surname,'${e}')`:"",r=n?`/users?$filter=${n}&$select=id,displayName,mail,userPrincipalName&$top=${s}`:`/users?$select=id,displayName,mail,userPrincipalName&$orderby=displayName&$top=${s}`;console.log("[fetchUsers]: API query:",r);const o=await g.get(r);console.log("[fetchUsers]: Graph response:",o);const i=(o.value||[]).map(e=>({id:e.id||"",displayName:e.displayName||e.userPrincipalName||"Unknown User",mail:e.mail||e.userPrincipalName||"",avatar:y?`${y}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail||e.userPrincipalName}`:void 0})).filter(e=>e.id&&e.displayName);return console.log("[fetchUsers]: Processed users:",i),I.current[t]=i,i}catch(n){return console.error("[fetchUsers]: Error fetching users from Graph:",n),[]}},[g,y,s]),j=u.useCallback(Ke(async(e,t)=>{console.log("[debouncedFetch]: Fetching users for query:",e,"with char:",t);const n=await T(e),r=l?n.filter(t=>l(t,e)):n;console.log("[debouncedFetch]: Filtered users:",r),r.sort((e,t)=>e.displayName.localeCompare(t.displayName)),S(r),P(t),A(e),b(!0),console.log("[debouncedFetch]: Menu should be shown now")},300),[f,s,l,T]),M=e=>{const t=n.current;if(!t)return{top:0,left:0};if("TEXTAREA"===t.tagName){const n=t,r=O(n,e),o=n.getBoundingClientRect();return{top:o.top+r.top+22,left:o.left+r.left+16}}const r=t.getBoundingClientRect();return{top:r.bottom+5,left:r.left}};u.useEffect(()=>{if(!t)return void b(!1);console.log("[Mensions]: Analyzing input:",t);let e=!1;for(const n of r){const r=t.lastIndexOf(n);if(console.log("[Mensions]: Checking mention char:",n,"at position:",r),-1!==r&&(0===r||" "===t[r-1])){const o=t.slice(r+1);if(console.log("[Mensions]: Search text:",o),!o.includes(" ")){e=!0;const t=M(r);console.log("[Mensions]: Menu position:",t),C(t),j(o,n);break}}}e||(console.log("[Mensions]: No mention found, hiding menu"),b(!1))},[t,r,n,j]);const N=e=>{o(e,k),b(!1),S([])},D=u.useCallback(({users:e})=>c.jsxs("div",{className:_.listContainer,children:[0===e.length&&c.jsxs(p.Caption1,{className:_.noResults,children:['No users found for "',E,'"']}),e.map(e=>c.jsx(p.Card,{appearance:"subtle",onMouseDown:e=>e.preventDefault(),onClick:()=>N(e),children:c.jsx(p.Persona,{name:e.displayName||"Unknown User",role:"gridcell",secondaryText:e.mail||e.userPrincipalName||"",avatar:{image:{src:e.avatar}}})},e.id))]}),[_,E,N]);return c.jsxs(ft,{theme:i,anchorPoint:x,isOpen:v,onClose:()=>b(!1),excludeRefs:n?[n]:[],children:[c.jsx(p.CardHeader,{header:c.jsx(p.Body1Strong,{className:_.suggestionsHeader,children:a})}),c.jsx(p.Divider,{}),c.jsx(D,{users:w})]})},sc=()=>({inputContainer:g.css({marginTop:"auto",marginLeft:"auto","::after":{content:'""',position:"absolute",bottom:0,left:0,right:0,borderBottom:"2px solid transparent",pointerEvents:"none",borderRadius:p.tokens.borderRadiusMedium}}),listContainer:g.css({maxHeight:"400px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),sugestionsHeader:g.css({color:p.tokens.colorBrandBackground})}),lc=({context:e,onChange:t,value:n,placeholder:r,onSend:o,theme:i=p.webLightTheme,isRunning:a,onAbort:s})=>{const[l,d]=u.useState(n||""),h=u.useRef(null),m=sc();u.useEffect(()=>{var e;null==(e=h.current)||e.focus(),d(n||"")},[n]);return c.jsxs(st,{horizontal:!0,width:"100%",className:m.inputContainer,children:[c.jsx(oc,{ref:h,onSend:o,value:l,onChange:e=>{d(e),t&&t(e)},theme:i,placeholder:r,isRunning:a,onAbort:s}),c.jsx(ac,{context:e,inputValue:l,parentRef:h,mentionChars:["@"],onUserSelect:(e,n)=>{const r=new RegExp(`${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),o=l.replace(r,`${n}${e.mail} `);d(o),t&&t(o),setTimeout(()=>{var e;null==(e=h.current)||e.focus()},0)},theme:i,suggestionsHeader:"Suggestions",maxSuggestions:10})]})},cc=()=>{const e=(()=>{const e=p.tokens.colorBrandBackground,t=g.keyframes`
85
+ `;return Gl("span",{css:[Yl,t&&Xl`${t}`],children:[Jl(v.SearchRegular,{css:i}),Jl("span",{css:o,children:"AI"})]})},nc=p.makeStyles({container:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"},section:{display:"flex",flexDirection:"column",gap:"10px"},iconRow:{display:"flex",alignItems:"center",gap:"15px",padding:"10px",border:`1px solid ${p.tokens.colorNeutralStroke2}`,borderRadius:"8px"},label:{minWidth:"150px",fontWeight:600},buttonExample:{display:"flex",alignItems:"center",gap:"8px"},codeBlock:{background:p.tokens.colorNeutralBackground2,padding:"10px",borderRadius:"4px",fontSize:"12px",overflow:"auto",border:`1px solid ${p.tokens.colorNeutralStroke2}`}}),rc=u.memo(({icon:e,hoverIcon:t,imageSrc:n,width:r=24,height:o=24,color:i,hoverColor:a,onClick:s,enabled:l=!0})=>{const d=i||p.tokens.colorBrandBackground,h=a||p.tokens.colorBrandBackgroundHover,m=p.tokens.fontFamilyBase,[f,g]=u.useState(!1),y=u.useCallback(()=>{l&&g(!0)},[l]),v=u.useCallback(()=>{l&&g(!1)},[l]),b=u.useMemo(()=>l&&f&&t?t:e,[f,t,e,l]),x=u.useMemo(()=>({width:r,height:o,color:f?h:d,display:"flex",alignItems:"center",justifyContent:"center",opacity:l?1:.5,fontFamily:m,fontSize:"inherit"}),[r,o,f,h,d,l,m]),C=u.useMemo(()=>({border:"none",background:"none",padding:0,cursor:l?"pointer":"default"}),[l]),w=u.useMemo(()=>({width:r,height:o,objectFit:"contain",opacity:l?1:.5}),[r,o,l]);return c.jsx("button",{onClick:l?s:void 0,onMouseEnter:y,onMouseLeave:v,disabled:!l,style:C,children:n?c.jsx("img",{src:n,alt:"icon",style:w}):u.cloneElement(b,{style:{...b.props.style,...x}})})}),oc=L.forwardRef(({value:e,onChange:t,onSend:n,placeholder:r="Type a message",isRunning:o,onAbort:i},a)=>{const s={container:g.css({backgroundColor:p.tokens.colorNeutralBackground1,border:"1px solid "+p.tokens.colorNeutralStroke1,borderRadius:p.tokens.borderRadiusLarge,padding:`${p.tokens.spacingVerticalXS} ${p.tokens.spacingHorizontalS}`,minHeight:"40px",":focus-within::after":{borderBottom:`2px solid ${p.tokens.colorBrandStroke1}`}}),textarea:g.css({width:"calc(100% - 5px)",flex:1,border:"none",outline:"none",backgroundColor:"transparent",fontSize:p.tokens.fontSizeBase300,color:p.tokens.colorNeutralForeground1,resize:"none","::placeholder":{color:p.tokens.colorNeutralForegroundDisabled},"::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),iconContainer:g.css({display:"flex",alignItems:"center",gap:p.tokens.spacingHorizontalXS,marginLeft:p.tokens.spacingHorizontalXS}),buttonSend:g.css({width:"36px !important",height:"36px !important",maxWidth:"36px !important",maxHeight:"36px !important",minWidth:"36px !important",minHeight:"36px !important"})},l=L.useCallback(()=>{const t=e.trim();t.length>0&&n(t)},[e,n]);return c.jsxs(st,{width:"100%",className:s.container,children:[c.jsx("textarea",{ref:a,className:s.textarea,placeholder:r,value:e,onChange:e=>t(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),l())},rows:3}),c.jsx(st,{horizontal:!0,horizontalAlign:"end",width:"100%",children:o?c.jsx(rc,{icon:c.jsx(v.RecordStopRegular,{}),hoverIcon:c.jsx(v.RecordStopFilled,{}),width:32,height:32,onClick:i}):c.jsx(rc,{icon:c.jsx(v.ArrowCircleUp32Regular,{}),hoverIcon:c.jsx(v.ArrowCircleUp32Filled,{}),width:32,height:32,onClick:l,enabled:e.trim().length>0})})]})}),ic=()=>({listContainer:g.css({display:"grid",gridTemplateColumns:"1fr",gap:p.tokens.spacingVerticalXXS,maxHeight:"400px",overflowY:"auto",overflowX:"hidden",padding:p.tokens.spacingVerticalS,minWidth:"280px","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),suggestionsHeader:g.css({color:p.tokens.colorBrandBackground,padding:p.tokens.spacingVerticalXS}),noResults:g.css({padding:p.tokens.spacingVerticalS,textAlign:"center",color:p.tokens.colorNeutralForeground3})}),ac=({context:e,inputValue:t,parentRef:n,mentionChars:r,onUserSelect:o,theme:i=p.webLightTheme,suggestionsHeader:a="Suggestions",maxSuggestions:s=100,userFilter:l})=>{var d,h;const m=G(),f=e||m,g=null==f?void 0:f.graphClient,y=(null==(h=null==(d=null==f?void 0:f.pageContext)?void 0:d.web)?void 0:h.absoluteUrl)||"",[v,b]=u.useState(!1),[x,C]=u.useState({top:0,left:0}),[w,S]=u.useState([]),[k,P]=u.useState(""),[E,A]=u.useState(""),I=u.useRef({}),_=ic(),T=u.useCallback(async e=>{if(!g)return console.warn("Graph client not available"),[];const t=`${e}_${s}`;if(I.current[t])return I.current[t];try{const n=e&&e.length>0?`startswith(displayName,'${e}') or startswith(givenName,'${e}') or startswith(surname,'${e}')`:"",r=n?`/users?$filter=${n}&$select=id,displayName,mail,userPrincipalName&$top=${s}`:`/users?$select=id,displayName,mail,userPrincipalName&$orderby=displayName&$top=${s}`;console.log("[fetchUsers]: API query:",r);const o=await g.get(r);console.log("[fetchUsers]: Graph response:",o);const i=(o.value||[]).map(e=>({id:e.id||"",displayName:e.displayName||e.userPrincipalName||"Unknown User",mail:e.mail||e.userPrincipalName||"",avatar:y?`${y}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail||e.userPrincipalName}`:void 0})).filter(e=>e.id&&e.displayName);return console.log("[fetchUsers]: Processed users:",i),I.current[t]=i,i}catch(n){return console.error("[fetchUsers]: Error fetching users from Graph:",n),[]}},[g,y,s]),j=u.useCallback(Ke(async(e,t)=>{console.log("[debouncedFetch]: Fetching users for query:",e,"with char:",t);const n=await T(e),r=l?n.filter(t=>l(t,e)):n;console.log("[debouncedFetch]: Filtered users:",r),r.sort((e,t)=>e.displayName.localeCompare(t.displayName)),S(r),P(t),A(e),b(!0),console.log("[debouncedFetch]: Menu should be shown now")},300),[f,s,l,T]),M=e=>{const t=n.current;if(!t)return{top:0,left:0};if("TEXTAREA"===t.tagName){const n=t,r=V(n,e),o=n.getBoundingClientRect();return{top:o.top+r.top+22,left:o.left+r.left+16}}const r=t.getBoundingClientRect();return{top:r.bottom+5,left:r.left}};u.useEffect(()=>{if(!t)return void b(!1);console.log("[Mensions]: Analyzing input:",t);let e=!1;for(const n of r){const r=t.lastIndexOf(n);if(console.log("[Mensions]: Checking mention char:",n,"at position:",r),-1!==r&&(0===r||" "===t[r-1])){const o=t.slice(r+1);if(console.log("[Mensions]: Search text:",o),!o.includes(" ")){e=!0;const t=M(r);console.log("[Mensions]: Menu position:",t),C(t),j(o,n);break}}}e||(console.log("[Mensions]: No mention found, hiding menu"),b(!1))},[t,r,n,j]);const N=e=>{o(e,k),b(!1),S([])},D=u.useCallback(({users:e})=>c.jsxs("div",{className:_.listContainer,children:[0===e.length&&c.jsxs(p.Caption1,{className:_.noResults,children:['No users found for "',E,'"']}),e.map(e=>c.jsx(p.Card,{appearance:"subtle",onMouseDown:e=>e.preventDefault(),onClick:()=>N(e),children:c.jsx(p.Persona,{name:e.displayName||"Unknown User",role:"gridcell",secondaryText:e.mail||e.userPrincipalName||"",avatar:{image:{src:e.avatar}}})},e.id))]}),[_,E,N]);return c.jsxs(ft,{theme:i,anchorPoint:x,isOpen:v,onClose:()=>b(!1),excludeRefs:n?[n]:[],children:[c.jsx(p.CardHeader,{header:c.jsx(p.Body1Strong,{className:_.suggestionsHeader,children:a})}),c.jsx(p.Divider,{}),c.jsx(D,{users:w})]})},sc=()=>({inputContainer:g.css({marginTop:"auto",marginLeft:"auto","::after":{content:'""',position:"absolute",bottom:0,left:0,right:0,borderBottom:"2px solid transparent",pointerEvents:"none",borderRadius:p.tokens.borderRadiusMedium}}),listContainer:g.css({maxHeight:"400px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),sugestionsHeader:g.css({color:p.tokens.colorBrandBackground})}),lc=({context:e,onChange:t,value:n,placeholder:r,onSend:o,theme:i=p.webLightTheme,isRunning:a,onAbort:s})=>{const[l,d]=u.useState(n||""),h=u.useRef(null),m=sc();u.useEffect(()=>{var e;null==(e=h.current)||e.focus(),d(n||"")},[n]);return c.jsxs(st,{horizontal:!0,width:"100%",className:m.inputContainer,children:[c.jsx(oc,{ref:h,onSend:o,value:l,onChange:e=>{d(e),t&&t(e)},theme:i,placeholder:r,isRunning:a,onAbort:s}),c.jsx(ac,{context:e,inputValue:l,parentRef:h,mentionChars:["@"],onUserSelect:(e,n)=>{const r=new RegExp(`${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),o=l.replace(r,`${n}${e.mail} `);d(o),t&&t(o),setTimeout(()=>{var e;null==(e=h.current)||e.focus()},0)},theme:i,suggestionsHeader:"Suggestions",maxSuggestions:10})]})},cc=()=>{const e=(()=>{const e=p.tokens.colorBrandBackground,t=g.keyframes`
86
86
  0%, 80%, 100% {
87
87
  opacity: 0;
88
88
  transform: scale(0.8);
@@ -133,7 +133,7 @@ var s=function(){function e(){}return e.generate=function(){var t=4294967295*Mat
133
133
  `,bottomText:g.css`
134
134
  padding-left: 8px;
135
135
  padding-right: 8px;
136
- `,zoomContainer:g.css({display:"flex",flexDirection:"row",alignItems:"center",gap:"6px",width:"100%",boxSizing:"border-box",padding:"8px 0px"})},[s,l]=L.useState(n),[u,d]=L.useState(null),[h,m]=L.useState(!1);L.useEffect(()=>{l(n)},[n]);const f=(e,n)=>{const r={spanCols:n+1,spanRows:e+1};l(r),null==t||t(r),m(!1)},y=(e,t)=>{d({spanCols:t+1,spanRows:e+1})},b=L.useMemo(()=>30*r+4*(r-1)+32,[r]);return c.jsxs(p.Menu,{open:h,onOpenChange:(e,t)=>{m(t.open),d(null)},children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.Tooltip,{content:"Configure",relationship:"label",children:c.jsx(p.MenuButton,{icon:c.jsx(i,{}),size:"small",appearance:"transparent"})})}),c.jsxs(p.MenuPopover,{style:{width:`${b}px`,minWidth:"120px",padding:8},children:[c.jsx("div",{className:a.zoomContainer,children:c.jsx(bt,{label:`Span (${s.spanCols} × ${s.spanRows})`})}),c.jsx("div",{className:a.gridContainer,style:{gridTemplateColumns:`repeat(${r}, 30px)`,gridTemplateRows:`repeat(${o}, 30px)`},onMouseLeave:()=>{d(null)},children:(()=>{const e=[];for(let t=0;t<o;t++)for(let n=0;n<r;n++){const r=t<s.spanRows&&n<s.spanCols,o=u&&t<u.spanRows&&n<u.spanCols;e.push(c.jsx("div",{className:`${a.cell} ${o?a.hoveredCell:""} ${r?a.selectedCell:""}`,onMouseEnter:()=>y(t,n),onClick:()=>f(t,n)},`${t}-${n}`))}return e})()}),c.jsx(p.Caption1,{className:a.bottomText,children:"Click to set span"})]})]})};exports.ErrorType=l.ErrorType,exports.LogLevel=l.LogLevel,exports.AIAssistant=e=>{const{instrutions:t,timezone:n,locale:r,onResponse:o,openAIConfig:i,theme:a,placeholder:s,context:l}=e,[d,h]=L.useReducer(uc,{messages:[],inputText:"",isLoading:!0,error:void 0,isRunning:!1}),{messages:m,inputText:f,isLoading:y,error:v,isRunning:b}=d,C=L.useRef([]),w={container:g.css({display:"flex",flexDirection:"column",padding:"10px",width:"100%",height:"600px",borderRadius:"8px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",overflowY:"auto",overflowX:"hidden",position:"relative",zIndex:1e3}),chatList:g.css({display:"flex",flexDirection:"column",gap:"10px",padding:"10px",overflowY:"auto",overflowX:"hidden",height:"100%",width:"100%","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),chatAIAssistantRoot:g.css({padding:"10px",display:"flex",flexDirection:"column",position:"relative",height:"calc(100% - 20px)"}),inputContainer:g.css({display:"flex",flexDirection:"row",flex:1,marginTop:"10px",gap:"10px",alignItems:"center"}),input:g.css({width:"100%",fontSize:"14px"})},S=L.useRef(null),{sendRequest:k,cancelRequest:P,error:E}=function(){const[e,t]=u.useState(""),[n,r]=u.useState(!1),[o,i]=u.useState(null),a=u.useRef(null);return{data:e,isLoading:n,error:o,sendRequest:u.useCallback(async(e,n,o,s)=>{var l;t(""),i(null),r(!0);const c=new AbortController;a.current=c;try{const r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),signal:c.signal,...o});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const i=null==(l=r.body)?void 0:l.getReader();if(!i)throw new Error("No response body");const a=new TextDecoder("utf-8");let u=!1,d="";for(;!u;){const{value:e,done:n}=await i.read();if(u=n,e){const n=a.decode(e,{stream:!0});d+=n,t(d),s&&s(n)}}}catch(u){throw u instanceof Error&&"AbortError"===u.name?(i("Request aborted"),u):(i(u instanceof Error?u.message:"Error occurred"),u)}finally{r(!1)}},[]),cancelRequest:u.useCallback(()=>{a.current&&a.current.abort()},[])}}(),A=L.useCallback(()=>{S.current&&(S.current.scrollTop=S.current.scrollHeight-S.current.clientHeight)},[]);L.useEffect(()=>{var e,t;const r={message:"Welcome to AI Assistant! How can I help you today?",senderName:"Assistant",timeStamp:dc(n,(null==(t=null==(e=null==l?void 0:l.pageContext)?void 0:e.cultureInfo)?void 0:t.currentUICultureName)||"en-US"),status:"received"};h({type:"INIT",welcomeMessage:r})},[]);const I=L.useCallback(async()=>{var e,a,s,u;if(!f.trim())return;const d={message:f,senderName:"User",timeStamp:dc(n,(null==(a=null==(e=null==l?void 0:l.pageContext)?void 0:e.cultureInfo)?void 0:a.currentUICultureName)||"en-US"),status:"received"},p=f;h({type:"ADD_USER_MESSAGE",message:d}),h({type:"CLEAR_INPUT"}),h({type:"SET_IS_RUNNING"});const m={message:c.jsx(cc,{}),senderName:"Assistant",timeStamp:dc(n,(null==(u=null==(s=null==l?void 0:l.pageContext)?void 0:s.cultureInfo)?void 0:u.currentUICultureName)||"en-US"),status:"sending"};h({type:"ADD_ASSISTANT_MESSAGE",message:m}),A();let g="";const y=(null==i?void 0:i.endpoint)||"http://localhost:7071/api/EventAssistant",v={instructions:t,input:p,timezone:n,locale:r,history:C.current,mcpServers:null==i?void 0:i.mcpServers};try{await k(y,v,void 0,e=>{g+=e,null==o||o(g).then(e=>{const{message:t,status:n}=e;h({type:"UPDATE_LAST_ASSISTANT_MESSAGE",message:{...m,message:t||g,status:n||"received"}}),h({type:"SET_IS_RUNNING"})})})}catch(b){console.error("Error during streaming:",b),h({type:"UPDATE_LAST_ASSISTANT_MESSAGE",message:{...m,message:"Error occurred while processing your request.",status:"failed"}}),h({type:"SET_IS_RUNNING"})}C.current.push(p),C.current.push(g),A()},[f,t,r,o,i,n,k,E]),_=L.useCallback(e=>{h({type:"SET_INPUT",inputText:e})},[]);return y?c.jsx(p.Spinner,{size:"medium"}):v?c.jsx(En,{message:"There was an error processing your request.",messageType:U.INFO}):c.jsxs("div",{id:"aiAssistant",className:w.chatAIAssistantRoot,children:[c.jsx(V.Chat,{className:w.chatList,ref:S,children:m.map((e,t)=>"User"===e.senderName?c.jsx(V.ChatMyMessage,{status:e.status,author:e.senderName,timestamp:e.timeStamp,children:e.message},t):c.jsx(V.ChatMessage,{decoration:"failed"===e.status?"important":void 0,avatar:c.jsx(x.Icon,{icon:"carbon:ibm-consulting-advantage-assistant",width:"32",height:"32",style:{color:p.tokens.colorBrandBackground}}),author:e.senderName,timestamp:e.timeStamp,children:e.message},t))}),c.jsx("div",{className:w.inputContainer,children:c.jsx(lc,{context:l,value:f,onChange:_,placeholder:s,onSend:I,onAbort:P,theme:a,isRunning:b})})]})},exports.AISearchControl=({systemPromptTemplate:e,azureOpenAIConfig:t,placeholder:n="Ask AI to generate search query... (e.g., 'Find engineers in the Seattle office')",onSearchQueryGenerated:r,onSearchStart:o,onSearchError:i,disabled:a=!1,className:s,width:l})=>{const{error:c}=q(),{generateText:d,isConfigured:h}={generateText:async(e,t)=>(console.warn("useAzureOpenAI not implemented - add your Azure OpenAI implementation",{prompt:e,userInput:t}),"Azure OpenAI not configured - please provide configuration"),isConfigured:!1},[m,f]=u.useState(!1),[g,y]=u.useState(""),v=u.useRef(null),{searchBoxStyles:b,iconWrapperStyles:x}={searchBoxStyles:Xl`
136
+ `,zoomContainer:g.css({display:"flex",flexDirection:"row",alignItems:"center",gap:"6px",width:"100%",boxSizing:"border-box",padding:"8px 0px"})},[s,l]=L.useState(n),[u,d]=L.useState(null),[h,m]=L.useState(!1);L.useEffect(()=>{l(n)},[n]);const f=(e,n)=>{const r={spanCols:n+1,spanRows:e+1};l(r),null==t||t(r),m(!1)},y=(e,t)=>{d({spanCols:t+1,spanRows:e+1})},b=L.useMemo(()=>30*r+4*(r-1)+32,[r]);return c.jsxs(p.Menu,{open:h,onOpenChange:(e,t)=>{m(t.open),d(null)},children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.Tooltip,{content:"Configure",relationship:"label",children:c.jsx(p.MenuButton,{icon:c.jsx(i,{}),size:"small",appearance:"transparent"})})}),c.jsxs(p.MenuPopover,{style:{width:`${b}px`,minWidth:"120px",padding:8},children:[c.jsx("div",{className:a.zoomContainer,children:c.jsx(bt,{label:`Span (${s.spanCols} × ${s.spanRows})`})}),c.jsx("div",{className:a.gridContainer,style:{gridTemplateColumns:`repeat(${r}, 30px)`,gridTemplateRows:`repeat(${o}, 30px)`},onMouseLeave:()=>{d(null)},children:(()=>{const e=[];for(let t=0;t<o;t++)for(let n=0;n<r;n++){const r=t<s.spanRows&&n<s.spanCols,o=u&&t<u.spanRows&&n<u.spanCols;e.push(c.jsx("div",{className:`${a.cell} ${o?a.hoveredCell:""} ${r?a.selectedCell:""}`,onMouseEnter:()=>y(t,n),onClick:()=>f(t,n)},`${t}-${n}`))}return e})()}),c.jsx(p.Caption1,{className:a.bottomText,children:"Click to set span"})]})]})};exports.ErrorType=l.ErrorType,exports.LogLevel=l.LogLevel,exports.AIAssistant=e=>{const{instrutions:t,timezone:n,locale:r,onResponse:o,openAIConfig:i,theme:a,placeholder:s,context:l}=e,[d,h]=L.useReducer(uc,{messages:[],inputText:"",isLoading:!0,error:void 0,isRunning:!1}),{messages:m,inputText:f,isLoading:y,error:v,isRunning:b}=d,C=L.useRef([]),w={container:g.css({display:"flex",flexDirection:"column",padding:"10px",width:"100%",height:"600px",borderRadius:"8px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",overflowY:"auto",overflowX:"hidden",position:"relative",zIndex:1e3}),chatList:g.css({display:"flex",flexDirection:"column",gap:"10px",padding:"10px",overflowY:"auto",overflowX:"hidden",height:"100%",width:"100%","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),chatAIAssistantRoot:g.css({padding:"10px",display:"flex",flexDirection:"column",position:"relative",height:"calc(100% - 20px)"}),inputContainer:g.css({display:"flex",flexDirection:"row",flex:1,marginTop:"10px",gap:"10px",alignItems:"center"}),input:g.css({width:"100%",fontSize:"14px"})},S=L.useRef(null),{sendRequest:k,cancelRequest:P,error:E}=function(){const[e,t]=u.useState(""),[n,r]=u.useState(!1),[o,i]=u.useState(null),a=u.useRef(null);return{data:e,isLoading:n,error:o,sendRequest:u.useCallback(async(e,n,o,s)=>{var l;t(""),i(null),r(!0);const c=new AbortController;a.current=c;try{const r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),signal:c.signal,...o});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const i=null==(l=r.body)?void 0:l.getReader();if(!i)throw new Error("No response body");const a=new TextDecoder("utf-8");let d=!1,p="",h="";for(;!d;){const{value:e,done:n}=await i.read();if(d=n,e){h+=a.decode(e,{stream:!0});const n=h.split("\n");h=n.pop()||"";let r="",o="";for(const e of n)if(e.startsWith("event:"))r=e.substring(6).trim();else if(e.startsWith("data:"))o=e.substring(5).trim();else if(""===e){if("error"===r)try{const e=JSON.parse(o).message||"An error occurred";throw e.includes("429")||e.toLowerCase().includes("rate limit")?new Error("Rate limit exceeded. Please wait a moment and try again."):e.includes("quota")?new Error("API quota exceeded. Please try again later."):new Error(e)}catch(u){if(u instanceof Error&&u.message.includes("Rate limit"))throw u;throw new Error(o||"An error occurred during streaming")}else if("done"===r)d=!0;else if(o&&"tool"!==r)try{const e=JSON.parse(o);(!e.status||Object.keys(e).length>1)&&(p+=o,t(p),s&&s(o))}catch{p+=o,t(p),s&&s(o)}r="",o=""}}}}catch(d){throw d instanceof Error&&"AbortError"===d.name?(i("Request aborted"),d):(i(d instanceof Error?d.message:"Error occurred"),d)}finally{r(!1)}},[]),cancelRequest:u.useCallback(()=>{a.current&&a.current.abort()},[])}}(),A=L.useCallback(()=>{S.current&&(S.current.scrollTop=S.current.scrollHeight-S.current.clientHeight)},[]);L.useEffect(()=>{var e,t;const r={message:"Welcome to AI Assistant! How can I help you today?",senderName:"Assistant",timeStamp:dc(n,(null==(t=null==(e=null==l?void 0:l.pageContext)?void 0:e.cultureInfo)?void 0:t.currentUICultureName)||"en-US"),status:"received"};h({type:"INIT",welcomeMessage:r})},[]);const I=L.useCallback(async()=>{var e,a,s,u;if(!f.trim())return;const d={message:f,senderName:"User",timeStamp:dc(n,(null==(a=null==(e=null==l?void 0:l.pageContext)?void 0:e.cultureInfo)?void 0:a.currentUICultureName)||"en-US"),status:"received"},p=f;h({type:"ADD_USER_MESSAGE",message:d}),h({type:"CLEAR_INPUT"}),h({type:"SET_IS_RUNNING"});const m={message:c.jsx(cc,{}),senderName:"Assistant",timeStamp:dc(n,(null==(u=null==(s=null==l?void 0:l.pageContext)?void 0:s.cultureInfo)?void 0:u.currentUICultureName)||"en-US"),status:"sending"};h({type:"ADD_ASSISTANT_MESSAGE",message:m}),A();let g="";const y=(null==i?void 0:i.endpoint)||"http://localhost:7071/api/EventAssistant",v={instructions:t,input:p,timezone:n,locale:r,history:C.current,mcpServers:null==i?void 0:i.mcpServers};try{await k(y,v,void 0,e=>{g+=e,null==o||o(g).then(e=>{const{message:t,status:n}=e;h({type:"UPDATE_LAST_ASSISTANT_MESSAGE",message:{...m,message:t||g,status:n||"received"}}),h({type:"SET_IS_RUNNING"})})})}catch(b){console.error("Error during streaming:",b);let e="Error occurred while processing your request.";b instanceof Error&&(e=b.message.includes("Rate limit")||b.message.includes("429")?"⚠️ Rate limit exceeded. Please wait a moment before sending another message.":b.message.includes("quota")?"⚠️ API quota exceeded. Please try again later.":b.message.includes("abort")?"Request was cancelled.":b.message),h({type:"UPDATE_LAST_ASSISTANT_MESSAGE",message:{...m,message:e,status:"failed"}}),h({type:"SET_IS_RUNNING"})}C.current.push(p),C.current.push(g),A()},[f,t,r,o,i,n,k,E]),_=L.useCallback(e=>{h({type:"SET_INPUT",inputText:e})},[]);return y?c.jsx(p.Spinner,{size:"medium"}):v?c.jsx(En,{message:"There was an error processing your request.",messageType:U.INFO}):c.jsxs("div",{id:"aiAssistant",className:w.chatAIAssistantRoot,children:[c.jsx(O.Chat,{className:w.chatList,ref:S,children:m.map((e,t)=>"User"===e.senderName?c.jsx(O.ChatMyMessage,{status:e.status,author:e.senderName,timestamp:e.timeStamp,children:e.message},t):c.jsx(O.ChatMessage,{decoration:"failed"===e.status?"important":void 0,avatar:c.jsx(x.Icon,{icon:"carbon:ibm-consulting-advantage-assistant",width:"32",height:"32",style:{color:p.tokens.colorBrandBackground}}),author:e.senderName,timestamp:e.timeStamp,children:e.message},t))}),c.jsx("div",{className:w.inputContainer,children:c.jsx(lc,{context:l,value:f,onChange:_,placeholder:s,onSend:I,onAbort:P,theme:a,isRunning:b})})]})},exports.AISearchControl=({systemPromptTemplate:e,azureOpenAIConfig:t,placeholder:n="Ask AI to generate search query... (e.g., 'Find engineers in the Seattle office')",onSearchQueryGenerated:r,onSearchStart:o,onSearchError:i,disabled:a=!1,className:s,width:l})=>{const{error:c}=q(),{generateText:d,isConfigured:h}={generateText:async(e,t)=>(console.warn("useAzureOpenAI not implemented - add your Azure OpenAI implementation",{prompt:e,userInput:t}),"Azure OpenAI not configured - please provide configuration"),isConfigured:!1},[m,f]=u.useState(!1),[g,y]=u.useState(""),v=u.useRef(null),{searchBoxStyles:b,iconWrapperStyles:x}={searchBoxStyles:Xl`
137
137
  border: 1px solid ${p.tokens.colorNeutralStroke2};
138
138
  border-radius: 50px; /* Fully circular/pill shape */
139
139
  background-color: ${p.tokens.colorNeutralBackground1};
@@ -197,5 +197,5 @@ var s=function(){function e(){}return e.generate=function(){var t=4294967295*Mat
197
197
  align-items: center;
198
198
  padding: 2px;
199
199
  margin-right: 8px;
200
- `},C=u.useCallback(async e=>{if(e.trim()){return void(null==i||i("Azure OpenAI is not properly configured. Please check your configuration.",e.trim()))}},[d,e,r,o,i,c,h]),w=u.useCallback((e,t)=>{y(t.value)},[]),S=u.useCallback(()=>{var e;y(""),null==(e=v.current)||e.blur(),null==r||r("","")},[r]),k=u.useCallback(e=>{var t;"Enter"===e.key&&!m&&g.trim()?C(g).catch(e=>{console.error("Error in handleAISearch:",e)}):"Escape"===e.key&&(null==(t=v.current)||t.blur(),y(""),null==r||r("",""))},[C,m,g,r]);return Jl(p.SearchBox,{ref:v,css:b,className:s,style:{width:l},placeholder:n,value:g,onChange:w,onKeyDown:k,disabled:a||m,contentBefore:Jl("span",{css:x,children:Jl(tc,{size:20})}),dismiss:{onClick:S}})},exports.AISearchIcon=tc,exports.AISearchIconExample=()=>{const e=nc();return c.jsxs("div",{className:e.container,children:[c.jsx("h2",{children:"AI Search Icon Examples"}),c.jsxs("div",{className:e.section,children:[c.jsx("h3",{children:"Standard AI Search Icon"}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Small (16px):"}),c.jsx(tc,{size:16})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Medium (20px):"}),c.jsx(tc,{size:20})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Large (24px):"}),c.jsx(tc,{size:24})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Extra Large (32px):"}),c.jsx(tc,{size:32})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Custom Colors:"}),c.jsx(tc,{size:24,color:p.tokens.colorPaletteBlueForeground2,aiIndicatorColor:p.tokens.colorPaletteGreenForeground2})]})]}),c.jsxs("div",{className:e.section,children:[c.jsx("h3",{children:"Usage in Buttons"}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Primary Button:"}),c.jsx(p.Button,{appearance:"primary",icon:c.jsx(tc,{size:16}),children:"AI Search"})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Secondary Button:"}),c.jsx(p.Button,{appearance:"secondary",icon:c.jsx(tc,{size:16}),children:"Smart Search"})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Icon Only Button:"}),c.jsx(p.Button,{appearance:"subtle",icon:c.jsx(tc,{size:20}),title:"AI Search"})]})]}),c.jsxs("div",{className:e.section,children:[c.jsx("h3",{children:"Usage Example Code"}),c.jsx("pre",{className:e.codeBlock,children:"// Basic usage\nimport { AISearchIcon } from './AISearchIcon';\n\n// Standard icon with AI badge\n<AISearchIcon size={20} />\n\n// Icon with custom colors\n<AISearchIcon \n size={24} \n color={tokens.colorPaletteBlueForeground2}\n aiIndicatorColor={tokens.colorPaletteGreenForeground2}\n/>\n\n// In a button\n<Button \n appearance=\"primary\"\n icon={<AISearchIcon size={16} />}\n>\n AI Search\n</Button>"})]})]})},exports.AdaptiveCardHost=e=>{const t=u.useRef(null),n=u.useRef(null),r=u.useRef(null),o=u.useRef(null);u.useEffect(()=>{A.AdaptiveCard.onProcessMarkdown||(A.AdaptiveCard.onProcessMarkdown=(e,t)=>{t.outputHtml=(new W.default).render(e),t.didProcess=!0;try{t.outputHtml=(new W.default).render(e),t.didProcess=!0}catch(n){console.error("AdaptiveCardHost: Error parsing Markdown",n),t.didProcess=!1}})},[]),u.useEffect(()=>{n.current=null,n.current=new A.AdaptiveCard,r.current=new A.SerializationContext},[e]);const i=u.useCallback(t=>{if(e.onInvokeAction){let n={type:"",title:""};const r=t.getJsonTypeName();switch(r){case A.OpenUrlAction.JsonTypeName:{const e=t;n={type:r,title:e.title,url:e.url}}break;case A.SubmitAction.JsonTypeName:{const e=t;n={type:r,title:e.title,data:e.data}}break;case A.ExecuteAction.JsonTypeName:{const e=t;n={type:r,title:e.title,data:e.data,verb:e.verb}}break;default:n={type:r,title:"Unknown Action"}}e.onInvokeAction(n)}},[e.onInvokeAction]);return u.useEffect(()=>{let t,r=e.themeType;o.current=null,r||(r=jn.SharePoint),t=e.theme?e.theme:ps(r);const i=Vn(r,t),a=i.hostConfig;console.log("hostconfig:",a),o.current=t,n.current&&(n.current.hostConfig=i.hostConfig),e.onUpdateHostCapabilities&&e.onUpdateHostCapabilities(a.hostCapabilities)},[e]),u.useEffect(()=>{n.current&&(n.current.onExecuteAction=i)},[e,i]),u.useEffect(()=>{const t=new A.CardObjectRegistry,n=new A.CardObjectRegistry;var o;A.GlobalRegistry.populateWithDefaultElements(t),A.GlobalRegistry.populateWithDefaultActions(n),o=t,M.initializeIcons(),o.register("Input.Text",ns),o.register("Input.Number",Ya),o.register("Input.Time",ss),o.register("Input.Date",Ja),o.register("Input.Toggle",ds),o.register("Input.ChoiceSet",Fa),function(e){e.register("Action.Submit",Oa),e.register("Action.OpenUrl",Da),e.register("Action.ShowCard",Va),e.register("Action.ToggleVisibility",Ba),e.register("Action.Execute",Na)}(n),e.onSetCustomElements&&e.onSetCustomElements(t),e.onSetCustomActions&&e.onSetCustomActions(n);const i=r.current;i&&i.setElementRegistry(t),i&&i.setActionRegistry(n)},[e]),u.useEffect(()=>{for(var o;null==(o=null==t?void 0:t.current)?void 0:o.firstChild;)t.current.lastChild&&t.current.removeChild(t.current.lastChild);const i=t.current;if(!i)return;const a=n.current;try{const t=new D.Template(e.card),n=((e,t,n)=>{var r,o,i,a,s,l,c;let u,d;return d=n?{theme:t,aadInfo:(null==(r=null==n?void 0:n.pageContext)?void 0:r.aadInfo)?{instanceUrl:n.pageContext.aadInfo.instanceUrl||"",tenantId:n.pageContext.aadInfo.tenantId||"",userId:n.pageContext.aadInfo.userId||""}:void 0,cultureInfo:(null==(o=null==n?void 0:n.pageContext)?void 0:o.cultureInfo)?{currentCultureName:n.pageContext.cultureInfo.currentCultureName,currentUICultureName:n.pageContext.cultureInfo.currentUICultureName,isRightToLeft:n.pageContext.cultureInfo.isRightToLeft||!1}:void 0,userInfo:(null==(i=null==n?void 0:n.pageContext)?void 0:i.user)?{displayName:n.pageContext.user.displayName,email:n.pageContext.user.email,isAnonymousGuestUser:n.pageContext.user.isAnonymousGuestUser||!1,isExternalGuestUser:n.pageContext.user.isExternalGuestUser||!1,loginName:n.pageContext.user.loginName,preferUserTimeZone:n.pageContext.user.preferUserTimeZone||!1}:void 0,spListInfo:(null==(a=null==n?void 0:n.pageContext)?void 0:a.list)?{id:n.pageContext.list.id,serverRelativeUrl:n.pageContext.list.serverRelativeUrl||"",title:n.pageContext.list.title}:void 0,spListItemInfo:(null==(s=null==n?void 0:n.pageContext)?void 0:s.listItem)?{id:n.pageContext.listItem.id.toString()}:void 0,spSiteInfo:(null==(l=null==n?void 0:n.pageContext)?void 0:l.site)?{absoluteUrl:n.pageContext.site.absoluteUrl,cdnPrefix:n.pageContext.site.cdnPrefix||"",classification:n.pageContext.site.classification||"",correlationId:n.pageContext.site.correlationId||"",id:n.pageContext.site.id,isNoScriptEnabled:n.pageContext.site.isNoScriptEnabled||!1,recycleBinItemCount:n.pageContext.site.recycleBinItemCount||0,serverRelativeUrl:n.pageContext.site.serverRelativeUrl||"",serverRequestPath:n.pageContext.site.serverRequestPath||"",sitePagesEnabled:n.pageContext.site.sitePagesEnabled||!1}:void 0,spWebInfo:(null==(c=null==n?void 0:n.pageContext)?void 0:c.web)?{absoluteUrl:n.pageContext.web.absoluteUrl,id:n.pageContext.web.id,isAppWeb:n.pageContext.web.isAppWeb||!1,language:n.pageContext.web.language||0,languageName:n.pageContext.web.languageName||"",logoUrl:n.pageContext.web.logoUrl||"",serverRelativeUrl:n.pageContext.web.serverRelativeUrl||"",templateName:n.pageContext.web.templateName||"",title:n.pageContext.web.title,description:n.pageContext.web.description||""}:void 0}:{theme:t},u=e?{$root:{...null==e?void 0:e.$root,"@context":d}}:{$root:{"@context":d}},u})(e.data??{$root:{}},ps(e.themeType??jn.SharePoint),e.context),o=t.expand(n);if(a&&a.parse(o,r.current??void 0),a){const e=a.render();e&&e.outerHTML!==i.innerHTML&&e.outerHTML!==i.innerHTML&&(i.innerHTML="",i.appendChild(e))}}catch(s){e.onError&&e.onError(s)}},[e,ps]),c.jsx(p.IdPrefixProvider,{value:"adaptiveCardHost",children:c.jsx(p.FluentProvider,{theme:o.current?o.current:ps(e.themeType??jn.SharePoint),children:c.jsx("div",{ref:t,className:`${e.className?e.className:""}`,style:e.style})})})},exports.AppDashboard=({cards:e,containerWidth:t,containerHeight:n="100%",maxSpanRows:r=4,enableDragAndDrop:o=!0,enableCache:i=!0,cacheKeyPrefix:a="app-dashboard",onCardsReorder:s,onCardResize:l})=>{const d={dashboardContainer:g.css({display:"grid",padding:"20px",gap:"16px",backgroundColor:p.tokens.colorNeutralBackground2,gridTemplateColumns:"repeat(auto-fill, minmax(350px, 1fr))",gridAutoRows:"350px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2},justifyContent:"center",gridAutoFlow:"dense"}),cardBody:g.css({display:"flex",flexDirection:"column",height:"100%",minHeight:"320px"}),chartContainer:g.css({flex:1,width:"100%",minHeight:"280px"}),cardDescription:g.css({color:`${p.tokens.colorNeutralForeground2}`}),cardWrapper:g.css({position:"relative",height:"100%",minHeight:"300px",borderRadius:p.tokens.borderRadiusMedium,transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:`${p.tokens.shadow16}`},"&:active":{transform:"translateY(0)",boxShadow:`${p.tokens.shadow8}`}})},h=`${a}-layout-settings`,m=`${a}-card-order`,{getCachedData:f,setCachedData:y}=X(),v=u.useCallback(e=>f(e),[f]),b=u.useCallback((e,t)=>y(e,t,43200),[y]),{getCachedData:x,setCachedData:C}=X(),w=u.useCallback(e=>x(e),[x]),S=u.useCallback((e,t)=>C(e,t,43200),[C]),[k,P]=u.useState([]),[E,A]=u.useState({}),I=u.useRef(null),_=u.useRef(null),T=u.useRef(null);u.useEffect(()=>{(async()=>{try{let t=e,n={};if(i){const[r,o]=await Promise.all([v(h),w(m)]);if(o&&o.length>0){const n=new Map(e.map(e=>[e.id,e])),r=o.filter(e=>n.has(e)),i=e.filter(e=>!o.includes(e.id));t=[...r.map(e=>n.get(e)),...i]}e.forEach(e=>{var t,o;const i=null==r?void 0:r[e.id];n[e.id]={spanCols:(null==i?void 0:i.spanCols)??(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==i?void 0:i.spanRows)??(null==(o=e.defaultSpan)?void 0:o.spanRows)??1}})}else e.forEach(e=>{var t,r;n[e.id]={spanCols:(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==(r=e.defaultSpan)?void 0:r.spanRows)??1}});P(t),A(n)}catch(t){console.warn("Failed to load dashboard data from cache:",t),P(e);const n={};e.forEach(e=>{var t,r;n[e.id]={spanCols:(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==(r=e.defaultSpan)?void 0:r.spanRows)??1}}),A(n)}})()},[e,i,h,m,v,w]),u.useEffect(()=>{if(!i||0===Object.keys(E).length)return;(async()=>{try{await b(h,E)}catch(e){console.warn("Failed to save dashboard layout to cache:",e)}})()},[E,i,h,b]),u.useEffect(()=>{if(!i||0===k.length)return;(async()=>{try{const e=k.map(e=>e.id);await S(m,e)}catch(e){console.warn("Failed to save dashboard order to cache:",e)}})()},[k,i,m,S]),u.useEffect(()=>{t<=600&&A(()=>{const e={};return k.forEach(t=>{e[t.id]={spanCols:1,spanRows:1}}),e})},[t,k]);const j=u.useMemo(()=>t>600,[t]),{minCardWidth:M,gridGap:N,containerPadding:D}=u.useMemo(()=>({minCardWidth:350,gridGap:16,containerPadding:20}),[]),V=t-2*D,O=u.useMemo(()=>Math.floor((V+N)/(M+N)),[V,N,M]),B=Math.max(O,1),R=u.useCallback(()=>{if(null!==I.current&&null!==_.current&&I.current!==_.current){const e=[...k],[t]=e.splice(I.current,1);e.splice(_.current,0,t),P(e),s&&s(e)}I.current=null,_.current=null},[k,s]),z=u.useCallback((e,t)=>{const n={spanCols:Math.min(Math.max(t.spanCols,1),B),spanRows:Math.min(Math.max(t.spanRows,1),r)};A(t=>({...t,[e]:n})),l&&l(e,n)},[B,r,l]),L=u.useMemo(()=>k.reduce((e,t)=>{var n,r;return e[t.id]={spanCols:Math.min((null==(n=t.defaultSpan)?void 0:n.spanCols)??1,O),spanRows:(null==(r=t.defaultSpan)?void 0:r.spanRows)??1},e},{}),[k,O]),H=u.useMemo(()=>k.map((e,t)=>{var i,a,s,l;const u=!1!==e.showZoom&&j,h=e.headerAction||(u?c.jsx(Cc,{values:E[e.id]||L[e.id]||{spanCols:1,spanRows:1},maxCols:B,maxRows:r,IsOpen:!1,onChange:t=>z(e.id,t)}):void 0);return c.jsx("div",{className:d.cardWrapper,draggable:o,onDragStart:()=>o&&(I.current=t),onDragEnter:()=>o&&(_.current=t),onDragOver:e=>o&&e.preventDefault(),onDragEnd:o?R:void 0,style:{gridColumnEnd:(null==(i=E[e.id])?void 0:i.spanCols)?`span ${E[e.id].spanCols}`:`span ${(null==(a=L[e.id])?void 0:a.spanCols)||1}`,gridRowEnd:(null==(s=E[e.id])?void 0:s.spanRows)?`span ${E[e.id].spanRows}`:`span ${(null==(l=L[e.id])?void 0:l.spanRows)||1}`,cursor:o?"grab":"default"},children:c.jsxs(p.Card,{className:`${d.cardBody} ${e.className||""}`,children:[c.jsx(p.CardHeader,{header:c.jsxs(yt,{gap:"0px",children:[c.jsx(p.Text,{weight:"semibold",size:400,children:e.cardTitle}),e.cardDescription&&c.jsx(p.Text,{className:d.cardDescription,size:200,children:e.cardDescription})]}),action:h}),c.jsx("div",{className:d.chartContainer,style:{height:n,...e.style},children:e.content})]})},e.id)}),[k,o,R,E,d.cardBody,d.cardDescription,d.chartContainer,d.cardWrapper,j,B,r,z,n,L]);return 0===k.length?c.jsx(xc,{}):c.jsx("div",{ref:T,className:d.dashboardContainer,style:{height:n},children:H})},exports.AspectRatio=({ratio:e,children:t,maxWidth:n,maxHeight:r,style:o={},...i})=>{const a={position:"relative",width:"100%",paddingTop:100/e+"%",maxWidth:n||"none",maxHeight:r||"none",...o};return c.jsx("div",{style:a,...i,children:c.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:t})})},exports.Breadcrumb=({items:e,maxWidth:t="100%",styles:n,theme:r,size:o="medium",currentIndex:i=e.length-1,className:a})=>{const{styles:s,getStyles:l}=Pt(),d=u.useRef(null),[h,m]=u.useState([]),[g,y]=u.useState([]);return u.useEffect(()=>{const t=()=>{if(!d.current)return;const t=d.current.offsetWidth;let n=0;const r=[],o=[];e.forEach(e=>{n+80<=t-50?(r.push(e),n+=80):o.push(e)}),m(r),y(o)},n=((e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}})(t,100),r=new f.ResizeObserver(()=>{n()});return d.current&&r.observe(d.current),t(),()=>{r.disconnect()}},[e]),c.jsx("div",{ref:d,className:p.mergeClasses(s.container,a),style:{maxWidth:t,...n},children:c.jsxs(st,{horizontal:!0,verticalAlign:"center",horizontalAlign:"start",children:[h.map((e,t)=>c.jsxs(c.Fragment,{children:[t===i?c.jsxs(st,{horizontal:!0,verticalAlign:"center",horizontalAlign:"start",columnGap:5,styles:{overflow:"hidden"},children:[e.icon?u.cloneElement(e.icon,{style:{fontSize:"large"===o?"20px":"medium"===o?"16px":"12px"}}):null,c.jsx(p.Text,{className:p.mergeClasses(s.breadcrumbItem,l(e,o),l(e,"current")),"aria-current":"page",children:e.label},e.label)]}):c.jsx(p.Button,{icon:e.icon?e.icon:null,appearance:"transparent",className:`${s.breadcrumbItem}`,onClick:e.onClick,children:c.jsx(p.Text,{className:l(e,o),children:e.label})},e.label),t<h.length-1&&c.jsx(v.ChevronRightRegular,{style:{fontSize:"large"===o?"20px":"medium"===o?"16px":"12px"}})]})),g.length>0&&c.jsx(Et,{items:g,theme:r})]})})},exports.ButtonMenu=kt,exports.CalendarControl=({events:e,height:t=800,theme:n,onDayChange:r,onMonthChange:o,onWeekChange:i,onViewChange:a,onDaySlotClick:s,defaultView:l,strings:d})=>{const{styles:m}=Mt(),g=u.useRef(null),[y,v]=u.useState(null),b=u.useRef(0),[x,C]=u.useState(new Date),[w,S]=u.useState(l??Yt.Month),{getMonthCalendar:k}=Jt(Intl.DateTimeFormat().resolvedOptions().timeZone),P=L.useCallback(e=>{const t=e.getMonth(),n=h.startOfMonth(e),r=h.startOfWeek(n);return Array.from({length:42},(e,n)=>{const o=h.addDays(r,n);return{day:o.getDate(),currentMonth:o.getMonth()===t,date:o}})},[42]),E=L.useCallback(e=>{o&&o(e),C(e)},[o]),A=L.useCallback(e=>{r&&r(e),C(e)},[r]),I=L.useCallback(e=>{i&&i(e),C(e)},[i]),_=L.useCallback(e=>{a&&a(e),S(e)},[a]),T=L.useCallback(t=>{var n;const{date:r}=t;return(null==(n=k(e,x.getFullYear(),x.getMonth())[h.format(r,"yyyy-MM-dd")])?void 0:n.flatMap(e=>e))||[]},[x,e]),j=L.useCallback(()=>{g.current&&requestAnimationFrame(()=>{if(g.current){const e=g.current.querySelector(`.${m.calendarWrapper} > div:nth-child(8)`);e&&(v(e.offsetHeight),b.current=e.offsetHeight)}})},[m.calendarWrapper]);u.useEffect(()=>{const e=new f.ResizeObserver(j);return g.current&&e.observe(g.current),j(),window.addEventListener("resize",j),()=>{e.disconnect(),window.removeEventListener("resize",j)}},[j,w]),u.useEffect(()=>{S(l||Yt.Month)},[l]);const M=L.useCallback(()=>{switch(w){case Yt.Month:return c.jsx(hn,{events:e,currentDate:x,rowHeight:y,getCalendarDays:P,getEventsForDay:T,styles:m,onDaySlotClick:s,height:t,calendarRef:g,strings:null==d?void 0:d.calendarControl});case Yt.Week:return c.jsx(mn,{events:e,currentDay:x,height:t,strings:null==d?void 0:d.weekView});case Yt.Day:return c.jsx(fn,{events:e,currentDay:x,height:t,strings:null==d?void 0:d.dayView});default:return c.jsx(hn,{events:e,currentDate:x,rowHeight:y,getCalendarDays:P,getEventsForDay:T,styles:m,onDaySlotClick:s,height:t,calendarRef:g,strings:null==d?void 0:d.calendarControl})}},[w,e,x,y,P,T,m,s,t]);return c.jsx(p.IdPrefixProvider,{value:"calendarControl-",children:c.jsx(p.FluentProvider,{theme:n??p.webLightTheme,style:{width:"100%"},children:c.jsxs(st,{height:"100%",verticalAlign:"start",children:[c.jsx(cn,{selectedView:w,onSelectedView:_,currentDate:x,setCurrentDate:C,onWeekChange:I,onMonthChange:E,onDayChange:A,strings:null==d?void 0:d.toolbar}),c.jsx(M,{})]})})})},exports.CalendarMonth=tn,exports.Card=tt,exports.Carousel=e=>{const{className:t,items:n,title:r}=e,o=L.useRef(null),[i,a]=L.useState(0),[s,l]=L.useState(0),{carouselStyles:u}=ht(e),[d,h]=y(),m=mt(),{enableControls:g,embla__slide:b,embla__container:x,embla__viewport:C,embla__buttons:w}=pt(0,i),{prevBtnDisabled:S,nextBtnDisabled:k,onPrevButtonClick:P,onNextButtonClick:E}=dt(h);return L.useEffect(()=>{let e;return o.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;a(e),l(n)}}),a(o.current.clientWidth),l(o.current.clientHeight),e.observe(o.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsxs("div",{id:"-carousel",className:p.mergeClasses(t,"embla"),style:{...u(i,s)},ref:o,children:[c.jsxs("div",{className:g,children:[c.jsx(p.Subtitle2,{className:m.titleStyles,children:r}),c.jsxs("div",{className:w,children:[c.jsx(p.Button,{onClick:P,disabled:S,appearance:"subtle",icon:c.jsx(v.ChevronLeftRegular,{})}),c.jsx(p.Button,{onClick:E,disabled:k,appearance:"subtle",icon:c.jsx(v.ChevronRightRegular,{})})]})]}),c.jsx("div",{className:C,ref:d,children:c.jsx("div",{className:x,children:n.map((e,t)=>c.jsx("div",{className:b,children:e},t))})})]})})},exports.Center=ct,exports.ChatInput=oc,exports.ChatInputWithMensions=lc,exports.ChatInputWithMensionsV1=({context:e,onChange:t,value:n,placeholder:r,onSend:o,theme:i=p.webLightTheme,isRunning:a,onAbort:s})=>{const[l,d]=u.useState(n||""),[h,m]=u.useState(!1),f=u.useRef(null),[g,y]=u.useState({top:0,left:0}),[v,b]=u.useState([]),x=u.useRef({}),C=sc();u.useEffect(()=>{var e;null==(e=f.current)||e.focus(),d(n||"")},[n]);const w=u.useCallback(Ke(async t=>{const n=await(async t=>{var n,r;if(x.current[t])return x.current[t];if(!(null==e?void 0:e.graphClient))return console.warn("Graph client not available"),[];try{const o=t&&t.length>0?`/users?$filter=startswith(displayName,'${t}')`:"/users?$orderby=displayName&$top=10",i=await e.graphClient.get(o),a=(null==i?void 0:i.value)||[],s=(null==(r=null==(n=e.pageContext)?void 0:n.web)?void 0:r.absoluteUrl)||"";return a.forEach(e=>{e.avatar=s?`${s}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail}`:`https://graph.microsoft.com/v1.0/users/${e.id}/photo/$value`}),x.current[t]=a,a}catch(o){return console.error("Error fetching users from Graph:",o),[]}})(t);n.sort((e,t)=>e.displayName.localeCompare(t.displayName)),b(n),m(!0),setTimeout(()=>{var e;null==(e=f.current)||e.focus()},0)},300),[e]),S=e=>{var n;const r=l.replace(/@(\w*)$/,`@${e} `);d(r),t&&t(r),m(!1),b([]),null==(n=f.current)||n.focus()},k=u.useCallback(({users:e})=>c.jsxs("div",{className:C.listContainer,children:[0===e.length&&c.jsx(p.Caption1,{children:"No users found"}),e.map(e=>c.jsx(p.Card,{size:"small",appearance:"subtle",onMouseDown:e=>e.preventDefault(),onClick:()=>S(e.mail),children:c.jsx(p.Persona,{name:e.displayName,role:"gridcell",secondaryText:e.mail,avatar:{image:{src:e.avatar}}})},e.id))]}),[C.listContainer,S]);return c.jsxs(st,{horizontal:!0,width:"100%",className:C.inputContainer,children:[c.jsx(oc,{ref:f,onSend:o,value:l,onChange:async e=>{var n;d(e),t&&t(e),null==(n=f.current)||n.focus();const r=e.lastIndexOf("@");if(-1===r||0!==r&&" "!==e[r-1])m(!1);else{const t=e.slice(r+1);await w(t);const n=f.current;if(n){const e=O(n,r),t=n.getBoundingClientRect(),o=t.top+e.top+22,i=t.left+e.left+16;y({top:o,left:i})}}},theme:i,placeholder:r,isRunning:a,onAbort:s}),c.jsxs(ft,{theme:i,anchorPoint:g,isOpen:h,onClose:()=>m(!1),excludeRefs:[f],children:[c.jsx(p.CardHeader,{header:c.jsx(p.Body1Strong,{className:C.sugestionsHeader,children:"Sugestions"})}),c.jsx(p.Divider,{}),c.jsx(k,{users:v})]})]})},exports.Container=e=>{const{className:t,children:n,style:r,alignItems:o="center",justifyContent:i="center",flexDirection:a="row",centerContent:s=!0}=e,l=L.useRef(null),[u,d]=L.useState(0),[p,h]=L.useState(0),{containerStyles:g}=ut(e),y=L.useMemo(()=>m.debounce(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;d(e),h(n)}},200),[]);return L.useEffect(()=>{const e=new f.ResizeObserver(e=>{y(e)});return l.current&&e.observe(l.current),()=>{e.disconnect(),y.cancel()}},[y]),c.jsx("div",{id:"container",className:t,style:{...g(u,p),display:"flex",justifyContent:i,alignItems:o,flexDirection:a,...r},ref:l,children:s?c.jsx(ct,{children:n}):n})},exports.CustomControlBar=({items:e,selectedItemId:t,onSelectedItem:n,renderControl:r,theme:o})=>{const i={container:g.css({display:"flex",flexWrap:"nowrap",minWidth:0,overflow:"hidden",gap:10,marginBottom:20,width:"100%"}),text1LineStyle:g.css({display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word"}),button:g.css({cursor:"pointer",minWidth:107})},a=L.useCallback(e=>{n&&n(e)},[n]);return c.jsx(p.Overflow,{children:c.jsxs(p.FluentProvider,{theme:o,children:[" ",c.jsxs("div",{className:p.mergeClasses(i.container),children:[e.map(e=>{const n=e.id===t;return c.jsx(p.OverflowItem,{id:e.id,priority:n?2:1,children:r(e,n,()=>a(e.id))},e.id)}),c.jsx(In,{items:e,onSelectedItem:a,theme:o})," "]})]})})},exports.DataGrid=e=>{const{items:t,columns:n,defaultSelectedItems:r=[],enableSorting:o=!1,selectionMode:i="none",onSelectionChange:a,onSortChange:s,defaultSortState:l,columnSizingOptions:u,enableResizing:d=!1,noItemsMessage:h,isLoadingData:m,isLoadingDataMessage:f,dataGridBodyClassName:g,dataGridBodyStyles:y,refreshData:v}=e,b=e=>t.findIndex(t=>t===e),[x,C]=L.useState(new Set(r.map(e=>b(e)))),w=L.useRef(null),{styles:S}=vn();L.useEffect(()=>{r.length>0&&C(new Set(r.map(e=>b(e))))},[r,t]),L.useEffect(()=>{v&&C(new Set)},[v]);const k=n.map(e=>p.createTableColumn({columnId:e.column,renderHeaderCell:()=>c.jsx(p.Body1Strong,{children:e.header}),renderCell:t=>c.jsx(p.TableCellLayout,{media:e.media?e.media(t):void 0,className:null==e?void 0:e.className,style:null==e?void 0:e.style,children:e.onRender?e.onRender(t):String(t[null==e?void 0:e.column]??"")}),compare:e.order})),P=L.useCallback((e,t)=>{e.stopPropagation(),"row"===i&&a&&a([t])},[i,a]),E=L.useMemo(()=>"row"===i?S.rowSelection:"",[i,S.rowSelection]),A=L.useCallback(()=>c.jsx(p.DataGridBody,{style:y??{},className:g??"",children:({item:e,rowId:t})=>c.jsx(p.DataGridRow,{className:E,onClick:t=>P(t,e),children:({renderCell:t})=>c.jsx(p.DataGridCell,{children:t(e)})},t)}),[P,E,y,g]),I=L.useMemo(()=>t.length&&!m,[t,m]),_=L.useCallback(()=>m?c.jsx(c.Fragment,{children:f??c.jsx(yn,{direction:"vertical",gap:"s",justifyContent:"center",alignItems:"center",style:{height:"100%",minHeight:200,width:"100%"},children:c.jsx(p.Spinner,{})})}):I?c.jsx(A,{}):m||t.length?c.jsx(c.Fragment,{}):c.jsx("div",{children:h}),[I,m,t,h]);return c.jsx("div",{ref:w,children:c.jsxs(p.DataGrid,{as:"div",items:t,onSelectionChange:(e,n)=>{const r=new Set;if(n.selectedItems.forEach(e=>{const t=Number(e);isNaN(t)||r.add(t)}),C(r),a){const e=Array.from(r).map(e=>t[e]);a(e)}},sortable:o,columns:k,selectionMode:"none"===i||"row"===i?void 0:"multiple"===i?"multiselect":"single"===i?"single":void 0,selectedItems:x,defaultSortState:l,onSortChange:(e,t)=>{s&&s(t)},columnSizingOptions:u,resizableColumns:d,resizableColumnsOptions:{autoFitColumns:!1},children:[c.jsx(p.DataGridHeader,{children:c.jsx(p.DataGridRow,{children:({renderHeaderCell:e})=>c.jsx(p.DataGridHeaderCell,{children:e()})})}),c.jsx(_,{})]})})},exports.DataGridV2=xn,exports.DropdownField=({options:e,onChange:t,renderItem:n,validate:r,label:o,placeholder:i,message:a,messageType:s,required:l,size:d,hint:h})=>{const[m,f]=u.useState(""),[g,y]=u.useState(""),b=L.useMemo(()=>g?"error":"warning"===s?"warning":"info"===s?"success":"none",[g,s]),x=L.useMemo(()=>g||a,[g,a]),C=L.useCallback(()=>{switch(b){case"error":return c.jsx(v.ErrorCircle12Filled,{});case"warning":return c.jsx(v.Warning12Filled,{});case"success":return c.jsx(v.CheckmarkCircle12Filled,{});default:return null}},[b]);return c.jsx(p.Field,{label:o,required:l,validationMessage:x,validationMessageIcon:C(),size:d,hint:h,validationState:b,children:c.jsx(p.Dropdown,{placeholder:i,onChange:(e,n)=>{const o=(null==n?void 0:n.value)||"";f(o);const i=r?r(o):"";y(i),!i&&t&&t(o)},value:m,children:e.map(e=>c.jsxs(p.Option,{value:e.value,disabled:e.disabled,checkIcon:e.checkIcon,as:e.as,text:e.text||"",children:[n&&n(e)," "]},e.value))})})},exports.EBreakPoints=$,exports.ECalendarViews=Yt,exports.EMessageType=U,exports.GenericOverFlowMenu=({items:e,renderItem:t,keyExtractor:n})=>{const{ref:r,overflowCount:o,isOverflowing:i}=p.useOverflowMenu();return i?c.jsxs(p.Menu,{children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsxs(p.MenuButton,{ref:r,children:["+",o," items"]})}),c.jsx(p.MenuPopover,{children:c.jsx(p.MenuList,{children:e.map(e=>c.jsx(_n,{id:n(e),children:t(e)},n(e)))})})]}):null},exports.Grid=e=>{const{children:t,className:n}=e,{gridStyles:r}=nt(e),o=L.useRef(null),[i,a]=L.useState(0),[s,l]=L.useState(0);return L.useEffect(()=>{let e;return o.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;a(e),l(n)}}),e.observe(o.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsx("div",{className:n,style:r(i,s),ref:o,children:t})})},exports.Layout=e=>{const{className:t,children:n,layoutConfig:r=ot}=e,o=L.useRef(null),[i,a]=L.useState(0),[s,l]=L.useState(0),{rootStyles:u,layoutGridStyles:d}=rt({...e,layoutConfig:r}),h=((e,t)=>{let n;return L.useCallback((...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)},[e,t])})((e,t)=>{a(e),l(t)},200);return L.useEffect(()=>{if(!o.current)return;const e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;h(e,n)}});return e.observe(o.current),()=>e.disconnect()},[h]),c.jsx("div",{id:"-Layout",className:p.mergeClasses(t,d),style:{...u(i,s),gridTemplateAreas:r.areas.join(" "),gridTemplateColumns:r.columns,gridTemplateRows:r.rows},ref:o,children:L.Children.map(n,(e,t)=>{var n;if(L.isValidElement(e)){const r=e;return c.jsx("div",{style:{gridArea:(null==(n=r.props)?void 0:n.area)??`area-${t}`},children:e},t)}return e})})},exports.LayoutItem=e=>{const{area:t,children:n}=e;return c.jsx(c.Fragment,{children:c.jsx("div",{style:{gridArea:t},children:n})})},exports.ListItemActivityMessage=({siteId:e,listId:t,itemId:n,currentUserEmail:r,strings:o,context:i})=>{var a,s,l,d,p,h,m,f,g,y,b;const{getItemActivities:x}=(e=>{const t=G(),n=e||t,r=null==n?void 0:n.graphClient;return{getItemActivities:u.useCallback(async(e,t,n)=>{if(!r)return console.warn("Graph client not available for SharePoint activities"),{activities:[]};try{const o=await r.get(`/sites/${e}/lists/${t}/items/${n}/getActivitiesByInterval(startDateTime='',endDateTime='',interval='')`);return o&&o.value?{activities:o.value.map(e=>({action:e.action||{},actor:e.actor||{},times:e.times||{}}))}:{activities:[]}}catch(o){throw console.error("Error fetching SharePoint activities:",o),o}},[r])}})(i),C=new Map([["access",{message:(null==o?void 0:o.access)||(null==(a=vc.get("access"))?void 0:a.message)||"",icon:c.jsx(v.OpenRegular,{style:gc})}],["comment",{message:(null==o?void 0:o.comment)||(null==(s=vc.get("comment"))?void 0:s.message)||"",icon:c.jsx(v.CommentRegular,{style:gc})}],["create",{message:(null==o?void 0:o.create)||(null==(l=vc.get("create"))?void 0:l.message)||"",icon:c.jsx(v.AddRegular,{style:gc})}],["delete",{message:(null==o?void 0:o.delete)||(null==(d=vc.get("delete"))?void 0:d.message)||"",icon:c.jsx(v.DeleteRegular,{style:gc})}],["edit",{message:(null==o?void 0:o.edit)||(null==(p=vc.get("edit"))?void 0:p.message)||"",icon:c.jsx(v.EditRegular,{style:gc})}],["mention",{message:(null==o?void 0:o.mention)||(null==(h=vc.get("mention"))?void 0:h.message)||"",icon:c.jsx(v.MentionRegular,{style:gc})}],["move",{message:(null==o?void 0:o.move)||(null==(m=vc.get("move"))?void 0:m.message)||"",icon:c.jsx(v.ArrowMoveRegular,{style:gc})}],["rename",{message:(null==o?void 0:o.rename)||(null==(f=vc.get("rename"))?void 0:f.message)||"",icon:c.jsx(v.RenameRegular,{style:gc})}],["restore",{message:(null==o?void 0:o.restore)||(null==(g=vc.get("restore"))?void 0:g.message)||"",icon:c.jsx(v.ArrowSyncRegular,{style:gc})}],["share",{message:(null==o?void 0:o.share)||(null==(y=vc.get("share"))?void 0:y.message)||"",icon:c.jsx(v.PeopleRegular,{style:gc})}],["version",{message:(null==o?void 0:o.version)||(null==(b=vc.get("version"))?void 0:b.message)||"",icon:c.jsx(v.HistoryRegular,{style:gc})}]]),[w,S]=L.useState({message:"",icon:c.jsx(c.Fragment,{})}),[k,P]=L.useState(!0),E=L.useRef(void 0),A=L.useRef(void 0),[I]=L.useState(30),_=L.useCallback(e=>e.user.email===r,[r]),T=L.useCallback(e=>{if(!e)return{message:"",icon:c.jsx(c.Fragment,{})};const{action:t,actor:n}=e,{displayName:r}=(null==n?void 0:n.user)||{displayName:""},o=yc.find(e=>t[e]);if(o){const e=C.get(o);if(e){return{message:`${_(n)?"You":r} ${e.message}`,icon:e.icon}}}return{message:"",icon:c.jsx(c.Fragment,{})}},[C,_]);return L.useEffect(()=>{var e;null==(e=A.current)||e.setPlaybackRate(I/100)},[I,k]),L.useEffect(()=>{let r=!1;const o=async(i=1e3)=>{var a;if(e&&t&&n)try{const o=await x(e,t,n);if(r)return;const i=o.activities[0];E.current&&JSON.stringify(E.current)===JSON.stringify(i)||(E.current=i,S(T(i)))}catch(s){if(429===s.status){const e=null==(a=s.headers)?void 0:a.get("Retry-After"),t=e?1e3*parseInt(e,10):i;return console.warn(`Throttled. Retrying after ${t}ms`),void setTimeout(()=>o(2*t),t)}console.error("Activity Error",s)}finally{r||P(!1)}},i=setTimeout(()=>{o()},1e3);return()=>{clearTimeout(i),r=!0}},[e,t,n,x,T]),c.jsx(B.Fade,{imperativeRef:A,visible:!k,children:c.jsx("div",{children:c.jsxs(st,{horizontal:!0,verticalAlign:"center",horizontalAlign:"center",RowGap:4,columnGap:4,children:[w.icon," ",w.message]})})})},exports.LivePersona=pc,exports.Mensions=ac,exports.MensionsExample=({context:e})=>{const[t,n]=u.useState(""),[r,o]=u.useState(""),i=u.useRef(null),a=u.useRef(null);return c.jsxs(st,{RowGap:20,children:[c.jsxs("div",{children:[c.jsx("h3",{children:"Input with @ mentions"}),c.jsx(p.Input,{ref:i,value:t,onChange:(e,t)=>n(t.value),placeholder:"Type @ to mention someone..."}),c.jsx(ac,{context:e,inputValue:t,parentRef:i,mentionChars:["@"],onUserSelect:(e,r)=>{const o=new RegExp(`${r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),a=t.replace(o,`${r}${e.displayName} `);n(a),setTimeout(()=>{var e;null==(e=i.current)||e.focus()},0)},theme:p.webLightTheme,suggestionsHeader:"Mention User",maxSuggestions:8})]}),c.jsxs("div",{children:[c.jsx("h3",{children:"Textarea with @ and # mentions"}),c.jsx(p.Textarea,{ref:a,value:r,onChange:(e,t)=>o(t.value),placeholder:"Type @ to mention someone or # for tags...",rows:4}),c.jsx(ac,{context:e,inputValue:r,parentRef:a,mentionChars:["@","#"],onUserSelect:(e,t)=>{const n=new RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),i=r.replace(n,`${t}${e.displayName} `);o(i),setTimeout(()=>{var e;null==(e=a.current)||e.focus()},0)},theme:p.webLightTheme,suggestionsHeader:"Select User or Tag",maxSuggestions:10,userFilter:(e,t)=>{var n;return e.displayName.toLowerCase().includes(t.toLowerCase())||((null==(n=e.mail)?void 0:n.toLowerCase().includes(t.toLowerCase()))??!1)}})]})]})},exports.Popup=ft,exports.RenderAdaptiveCard=({card:e,data:t})=>{const n=u.useRef(null);return u.useEffect(()=>{if(!n.current)return;n.current.innerHTML="";const r=new D.Template(e).expand({$root:t}),o=new F.AdaptiveCard;null==o||o.parse(r);const i=o.render();i&&n.current.appendChild(i)},[e,t]),c.jsx("div",{ref:n})},exports.RenderDialog=wn,exports.RenderDrawer=e=>{const{isOpen:t,onOpenChange:n,title:r,headerActions:o,footerActions:i,size:a,separator:s,type:l,style:u,children:d,position:p,classNameHeader:h="",classNameBody:m="",classNameFooter:f=""}=e;return c.jsx(c.Fragment,{children:c.jsxs(P.Drawer,{type:l,separator:s,open:t,onOpenChange:(e,t)=>{n&&n(t.open)},size:a,style:u,position:p,children:[c.jsx(P.DrawerHeader,{className:h,children:c.jsx(P.DrawerHeaderTitle,{style:{width:"100%"},action:o,children:r})}),c.jsx(P.DrawerBody,{className:m,children:d}),c.jsx(P.DrawerFooter,{className:f,children:i})]})})},exports.RenderHeader=e=>{const{onDismiss:t,title:n,description:r,icon:o,showCloseButton:i=!0}=e,a=Sn();return c.jsx(c.Fragment,{children:c.jsxs("div",{id:"RenderHedaermain",className:a.renderHeaderContent,children:[c.jsxs("div",{className:a.renderHeaderHeader,children:[c.jsx(p.Button,{style:{display:i?"block":"none"},appearance:"subtle",className:a.closeButton,onClick:e=>{e.stopPropagation(),e.preventDefault(),t(!1)},icon:c.jsx(v.Dismiss24Regular,{})}),c.jsxs("div",{className:a.renderHeaderTitleContainer,children:[L.isValidElement(o)?o:c.jsx(x.Icon,{icon:o}),c.jsxs("div",{className:a.dialogTitleAndDescriptionContainer,children:[L.isValidElement(n)?n:c.jsx(p.Subtitle1,{className:a.renderHeaderTitle,children:n}),L.isValidElement(r)?r:c.jsx(p.Caption1,{className:a.renderHeaderDescription,children:r})]})]})]}),c.jsx("div",{className:a.divider})]})})},exports.RenderLabel=bt,exports.RenderSpinner=e=>{const{size:t,label:n,labelPosition:r,style:o,className:i}=e,a=xt();return c.jsx("div",{className:a.root,children:c.jsx(p.Spinner,{style:o,className:p.mergeClasses(a.spinner,i),size:t,label:n,labelPosition:r})})},exports.SelectDay=Kt,exports.SelectMonth=nn,exports.SelectView=({onChange:e,defaultKey:t,label:n,options:r=[]})=>{const[o,i]=u.useState(()=>r.map(e=>({...e,selected:e.key===(t??"status")})));u.useEffect(()=>{const t=o.find(e=>e.selected);t&&e(t.key)},[]);const a=u.useCallback(t=>{const n=o.map(e=>({...e,selected:e.key===t.key}));i(n),e(t.key)},[o,e]);return c.jsxs(yt,{gap:"s",alignItems:"center",children:[n&&c.jsx(p.Label,{children:n}),c.jsx(kt,{options:o,onSelected:a,styles:{width:220}})]})},exports.SelectWeek=sn,exports.ShareDialog=({isOpen:e,options:t,onClose:n})=>{const[r,o]=u.useState(void 0);console.log(r);const i=u.useRef(null),[a,s]=u.useState(400),{siteUrl:l,listId:d,itemId:p,name:h}=t,m=u.useCallback(()=>{n()},[n]),f=u.useCallback(e=>{if(e.origin!==window.location.origin)return;console.log("Message from iframe:",e.data);const{name:t,height:n}=JSON.parse(e.data);switch(t){case"share_dismiss":m();break;case"share_resize":s(n)}},[m]);return u.useEffect(()=>(window.addEventListener("message",f),()=>{window.removeEventListener("message",f)}),[f]),u.useEffect(()=>{if(e){const e="sharePoint",t=0,n="",r=(new Date).getTime(),i=!1,a=encodeURIComponent(window.location.origin),s=encodeURIComponent(h),c=`${l}/_layouts/15/sharedialog.aspx?listId=${d}&listItemId=${p}&clientId=${e}&policyTip=${t}&folderColor=${n}&clickTime=${r}&ma=0&fullScreenMode=${i}&itemName= ${s}&channelId=&origin=${a}`;console.log(c),o(c)}else o(void 0)},[e,l,d,p]),c.jsx(wn,{isOpen:e,onDismiss:m,maxHeight:"fit-content",children:c.jsx("iframe",{ref:i,src:r||"",style:{width:"100%",height:a,border:"none"},onLoad:()=>console.log("Iframe loaded")})})},exports.ShowError=({title:e,message:t})=>{const n=kn();return c.jsx(p.Card,{className:n.container,children:c.jsxs(yt,{gap:"l",alignItems:"center",children:[c.jsx(v.ErrorCircleRegular,{className:n.icon}),c.jsxs(yt,{gap:"s",alignItems:"center",children:[c.jsx(p.Title3,{className:n.title,children:e}),c.jsx(p.Body1,{className:n.message,children:t})]})]})})},exports.ShowMessage=En,exports.Space=e=>{const t=L.useRef(null),[n,r]=L.useState(0),{spaceStyles:o}=it(e);return L.useEffect(()=>{let e;return t.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e}=t.contentRect;r(e)}}),e.observe(t.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsx("div",{id:"-space",style:o(n),ref:t})})},exports.Stack=st,exports.StackItem=e=>{const{children:t,grow:n,disableShrink:r,shrink:o,order:i,alignSelf:a,verticalFill:s}=e,{getBaseStyles:l}=Z(),u=L.useRef(null),[d,p]=L.useState(0),[h,m]=L.useState(0),g=l(e,d,h);L.useEffect(()=>{let e;return u.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;p(e),m(n)}}),e.observe(u.current)),()=>{e&&e.disconnect()}},[]);const y={...g,alignSelf:a,order:i,height:s?"100%":"auto",flexGrow:n?"boolean"==typeof n?1:n:void 0,flexShrink:r||!n&&!o?0:1,minWidth:0,minHeight:0,width:"auto"};return c.jsx(c.Fragment,{children:c.jsx("div",{ref:u,style:y,children:t})})},exports.StackV2=yt,exports.StackedUsers=({users:e,maxVisible:t=5,avatarSize:n=32,showHoverCard:r=!0,context:o,className:i,layout:a="stack",overflowText:s})=>{const l={container:g.css({display:"flex",alignItems:"center",gap:"4px"}),stackLayout:g.css({"& > *:not(:first-child)":{marginLeft:"-8px"}}),spreadLayout:g.css({display:"flex",flexDirection:"row",gap:"8px","& > *":{marginLeft:"0"}}),userCardWrapper:g.css({position:"relative",zIndex:1,transition:"transform 0.2s ease, z-index 0.2s ease","&:hover":{transform:"scale(1.1)",zIndex:10}}),overflowButton:g.css({backgroundColor:p.tokens.colorNeutralBackground1,border:`2px solid ${p.tokens.colorNeutralStroke1}`,borderRadius:"50%",color:p.tokens.colorNeutralForeground1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",fontWeight:600,minWidth:"32px",minHeight:"32px",position:"relative",zIndex:1,transition:"all 0.2s ease","&:hover":{backgroundColor:p.tokens.colorNeutralBackground1Hover,zIndex:10}}),popover:g.css({maxWidth:"300px",padding:"12px"}),popoverUserList:g.css({display:"flex",flexDirection:"column",gap:"8px"}),popoverUserCard:g.css({padding:"4px",borderRadius:"4px",transition:"background-color 0.2s ease","&:hover":{backgroundColor:p.tokens.colorNeutralBackground1Hover}})},{visibleUsers:d,overflowUsers:h}=u.useMemo(()=>{if(!e||0===e.length)return{visibleUsers:[],overflowUsers:[]};return{visibleUsers:e.slice(0,t),overflowUsers:e.slice(t)}},[e,t]),m=u.useMemo(()=>s||`+${h.length}`,[s,h.length]);return e&&0!==e.length?o?c.jsxs(yt,{direction:"horizontal",alignItems:"start",gap:"stack"===a?"4px":"12px",className:`${"stack"===a?l.stackLayout:l.spreadLayout} ${i||""}`,children:[d.map((e,t)=>c.jsx("div",{className:l.userCardWrapper,children:c.jsx(fc,{userId:e.id,avatarSize:n,showHoverCard:r??!0,context:o,avatarOnly:!0})},`user-${e.id||t}`)),h.length>0&&c.jsxs(p.Popover,{withArrow:!0,children:[c.jsx(p.PopoverTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.Button,{className:l.overflowButton,style:{width:`${n}px`,height:`${n}px`,fontSize:n>40?"14px":"12px"},appearance:"subtle",children:m})}),c.jsx(p.PopoverSurface,{className:l.popover,children:c.jsx("div",{className:l.popoverUserList,children:h.map((e,t)=>c.jsx("div",{className:l.popoverUserCard,children:c.jsx(fc,{userId:e.id,avatarSize:32,showHoverCard:r??!0,context:o,textPosition:"after",avatarOnly:!1})},`overflow-user-${e.id||t}`))})})]})]}):(console.warn("StackedUsers: context is required to display user cards"),null):null},exports.TypographyControl=e=>{const{fontSize:t,fontWeight:n,numberOfLines:r,as:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:l,paddingRight:u,margin:d,marginTop:h,marginBottom:m,marginLeft:f,marginRight:y,children:v,style:b,className:x,color:C,block:w,truncate:S,wrap:k}=e,P=g.css({color:C,fontSize:t&&Ct[t]?Ct[t]:t,fontWeight:n&&St[n]?St[n]:n,display:r?"-webkit-box":void 0,WebkitBoxOrient:"vertical",overflow:r?"hidden":void 0,WebkitLineClamp:r,padding:i&&wt[i]?wt[i]:i,paddingTop:a&&wt[a]?wt[a]:a,paddingBottom:s&&wt[s]?wt[s]:s,paddingLeft:l&&wt[l]?wt[l]:l,paddingRight:u&&wt[u]?wt[u]:u,margin:d&&wt[d]?wt[d]:d,marginTop:h&&wt[h]?wt[h]:h,marginBottom:m&&wt[m]?wt[m]:m,marginLeft:f&&wt[f]?wt[f]:f,marginRight:y&&wt[y]?wt[y]:y,...b});return c.jsx(p.Text,{as:o,className:p.mergeClasses(x,P),block:w,truncate:S,wrap:k,children:v})},exports.UniversalProvider=({context:e,children:t})=>c.jsx(J.Provider,{value:e,children:t}),exports.UserCard=fc,exports.VideoPlayer=e=>{const{url:t,controls:n=!0,width:r="100%",height:o="100%",loop:i=!1,muted:a=!1}=e,[s,l]=u.useState(!1),d=Tn(e);return c.jsxs("div",{className:d.videoPlayerContainer,children:[c.jsx(E,{url:t,controls:n,width:r,height:o,playing:s,loop:i,muted:a,onPause:()=>l(!1),onPlay:()=>l(!0),className:d.reactPlayer}),!s&&c.jsx(p.Button,{className:p.mergeClasses(d.playButton),onClick:()=>{l(!s)},children:"►"})]})},exports.cloneDeep=function e(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array)return t.map(t=>e(t));if(t instanceof Object){const n={};for(const r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}return t},exports.debounce=Ke,exports.defaultCalendarControlStrings=pn,exports.defaultCalendarMonthStrings=en,exports.defaultSelectWeekStrings=rn,exports.every=function(e,t){return e.every(t)},exports.filter=function(e,t){return e.filter(t)},exports.get=function(e,t,n){const r=Array.isArray(t)?t:t.split(".");let o=e;for(const i of r){if(null==o)return n;o=o[i]}return void 0===o?n:o},exports.groupBy=function(e,t){return e.reduce((e,n)=>{const r=String(t(n));return e[r]||(e[r]=[]),e[r].push(n),e},{})},exports.isEmpty=function(e){return null==e||("string"==typeof e||Array.isArray(e)?0===e.length:"object"==typeof e&&0===Object.keys(e).length)},exports.map=function(e,t){return e.map(t)},exports.set=function(e,t,n){const r=Array.isArray(t)?t:t.split("."),o=r.pop();if(!o)return e;let i=e;for(const a of r)a in i&&"object"==typeof i[a]||(i[a]={}),i=i[a];return i[o]=n,e},exports.some=function(e,t){return e.some(t)},exports.throttle=function(e,t=0){let n=null,r=0;return function(...o){const i=this,a=Date.now();r||(r=a);const s=t-(a-r);s<=0||s>t?(n&&(clearTimeout(n),n=null),r=a,e.apply(i,o)):n||(n=setTimeout(()=>{r=Date.now(),n=null,e.apply(i,o)},s))}},exports.uniq=function(e){return Array.from(new Set(e))},exports.uniqBy=function(e,t){const n=new Set;return e.filter(e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)})},exports.useApplicationContext=G,exports.useAspectRatioStyles=e=>{const{styles:t}=e,{getBaseStyles:n}=Z();return{aspectRatioStyles:L.useCallback((r,o)=>({...n(e,r,o),...t}),[n,e,t])}},exports.useCalendar=Jt,exports.useCalendarStyles=Mt,exports.useCardStyles=et,exports.useCarouselStyles=pt,exports.useCarouselStylesMain=ht,exports.useCenterStyles=lt,exports.useComponentUtils=Z,exports.useContainerStyles=ut,exports.useDataGridStyles=vn,exports.useDateUtils=(e,t,n)=>{const{getFormatRelative:r,formatDate:o}=Ze(t,e);return{formatUtcDate:(e,t="PP")=>{const n=h.differenceInDays(new Date,h.parseISO(e));let i="";return void 0!==e&&(i=n>7?o(e,t):r(e)),i},formatTime:n=>n.toLocaleTimeString(e,{timeZone:t}),convertDateToUTC:n=>{const r="string"==typeof n?new Date(n):n,o=new Intl.DateTimeFormat(e,{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(r);let i,a,s,l,c,u;for(const e of o)switch(e.type){case"year":i=e.value;break;case"month":a=e.value;break;case"day":s=e.value;break;case"hour":l=e.value;break;case"minute":c=e.value;break;case"second":u=e.value}return new Date(`${i}-${a}-${s}T${l}:${c}:${u}Z`)}}},exports.useDayViewStyles=Gt,exports.useGraphAPI=()=>{const e=G(),t=null==e?void 0:e.graphClient;return{getUser:u.useCallback(async e=>{if(!t)return console.warn("Graph client not available"),null;try{return await t.get(`/users/${e}`)}catch(n){return console.error("Error fetching user:",n),null}},[t]),getCurrentUser:u.useCallback(async()=>{if(!t)return console.warn("Graph client not available"),null;try{return await t.get("/me")}catch(e){return console.error("Error fetching current user:",e),null}},[t]),searchUsers:u.useCallback(async(e,n=10)=>{if(!t)return console.warn("Graph client not available"),[];try{return(await t.get(`/users?$search="displayName:${e}" OR "mail:${e}"&$top=${n}`)).value||[]}catch(r){return console.error("Error searching users:",r),[]}},[t]),getUserPhoto:u.useCallback(async e=>{if(!t)return console.warn("Graph client not available"),null;try{const n=await t.get(`/users/${e}/photo/$value`);return URL.createObjectURL(n)}catch(n){return console.error("Error fetching user photo:",n),null}},[t]),graphClient:t}},exports.useGridStyles=nt,exports.useImageUtils=()=>{const e=u.useCallback(async e=>{const t=await fetch(e).then(e=>e.text());return"data:image/svg+xml;base64,"+btoa(t)},[]),t=u.useCallback(async(e,t,n)=>new Promise((r,o)=>{const i=new Image;i.crossOrigin="anonymous",i.addEventListener("load",()=>{var e;const a=document.createElement("canvas");let s;a.width=t??i.width,a.height=n??i.height,null==(e=null==a?void 0:a.getContext("2d"))||e.drawImage(i,0,0,t??i.width,n??i.height);try{s=a.toDataURL("image/png",1),r(s)}catch(l){Qe&&console.error(`[ImageService.getBase64Image]: Err='${l.message}'`),o(l)}}),i.addEventListener("error",e=>{Qe&&console.error(`[ImageService.getBase64Image]: Image load error='${e.message}'`),o(e)}),i.src=e}),[]),n=u.useCallback(e=>!m.isEmpty(e)&&e.indexOf("data:image/")>=0,[]);return{getBase64ImageFromDOMImg:u.useCallback(e=>{try{const t=document.getElementById(e),n=document.createElement("canvas");n.width=t.width,n.height=t.height;const r=n.getContext("2d");null==r||r.drawImage(t,0,0);return n.toDataURL("image/png")}catch(t){return void(Qe&&console.error(`[getBase64ImageFromDOMImg]: Err='${t.message}'`))}},[]),isBase64Image:n,getImageBase64:t,base64FromSVGUrl:e}},exports.useIndexedDBCache=X,exports.useLayoutStyles=rt,exports.useLogging=q,exports.useMensionsStyles=ic,exports.usePolling=Y,exports.usePrevNextButtons=dt,exports.useRenderHeaderStyles=Sn,exports.useShowErrorStyles=kn,exports.useShowMessageStyles=Pn,exports.useSpaceStyles=it,exports.useStackStyles=at,exports.useStyles=()=>({inputContainer:g.css({marginTop:"auto",marginLeft:"auto","::after":{content:'""',position:"absolute",bottom:0,left:0,right:0,borderBottom:"2px solid transparent",pointerEvents:"none",borderRadius:p.tokens.borderRadiusMedium}}),listContainer:g.css({maxHeight:"400px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),sugestionsHeader:g.css({color:p.tokens.colorBrandBackground})}),exports.useTimeZoneHelper=()=>{const e=G(),t=u.useMemo(()=>Intl.DateTimeFormat().resolvedOptions().timeZone,[]);return{timeZone:t,convertToUserTimeZone:(e,n)=>{const r=n||t;return d.toZonedTime(e,r)},convertFromUserTimeZone:(e,n)=>{const r=n||t;return d.fromZonedTime(e,r)},formatInTimeZone:(e,n,r)=>{const o=r||t;return d.format(d.toZonedTime(e,o),n,{timeZone:o})},getUserTimeZone:()=>{var n,r;return null==(r=null==(n=null==e?void 0:e.pageContext)?void 0:n.user)||r.preferUserTimeZone,t}}},exports.useUtils=At,exports.useVideoStyles=Tn,exports.useWeekViewStyles=Vt;
200
+ `},C=u.useCallback(async e=>{if(e.trim()){return void(null==i||i("Azure OpenAI is not properly configured. Please check your configuration.",e.trim()))}},[d,e,r,o,i,c,h]),w=u.useCallback((e,t)=>{y(t.value)},[]),S=u.useCallback(()=>{var e;y(""),null==(e=v.current)||e.blur(),null==r||r("","")},[r]),k=u.useCallback(e=>{var t;"Enter"===e.key&&!m&&g.trim()?C(g).catch(e=>{console.error("Error in handleAISearch:",e)}):"Escape"===e.key&&(null==(t=v.current)||t.blur(),y(""),null==r||r("",""))},[C,m,g,r]);return Jl(p.SearchBox,{ref:v,css:b,className:s,style:{width:l},placeholder:n,value:g,onChange:w,onKeyDown:k,disabled:a||m,contentBefore:Jl("span",{css:x,children:Jl(tc,{size:20})}),dismiss:{onClick:S}})},exports.AISearchIcon=tc,exports.AISearchIconExample=()=>{const e=nc();return c.jsxs("div",{className:e.container,children:[c.jsx("h2",{children:"AI Search Icon Examples"}),c.jsxs("div",{className:e.section,children:[c.jsx("h3",{children:"Standard AI Search Icon"}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Small (16px):"}),c.jsx(tc,{size:16})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Medium (20px):"}),c.jsx(tc,{size:20})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Large (24px):"}),c.jsx(tc,{size:24})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Extra Large (32px):"}),c.jsx(tc,{size:32})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Custom Colors:"}),c.jsx(tc,{size:24,color:p.tokens.colorPaletteBlueForeground2,aiIndicatorColor:p.tokens.colorPaletteGreenForeground2})]})]}),c.jsxs("div",{className:e.section,children:[c.jsx("h3",{children:"Usage in Buttons"}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Primary Button:"}),c.jsx(p.Button,{appearance:"primary",icon:c.jsx(tc,{size:16}),children:"AI Search"})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Secondary Button:"}),c.jsx(p.Button,{appearance:"secondary",icon:c.jsx(tc,{size:16}),children:"Smart Search"})]}),c.jsxs("div",{className:e.iconRow,children:[c.jsx("span",{className:e.label,children:"Icon Only Button:"}),c.jsx(p.Button,{appearance:"subtle",icon:c.jsx(tc,{size:20}),title:"AI Search"})]})]}),c.jsxs("div",{className:e.section,children:[c.jsx("h3",{children:"Usage Example Code"}),c.jsx("pre",{className:e.codeBlock,children:"// Basic usage\nimport { AISearchIcon } from './AISearchIcon';\n\n// Standard icon with AI badge\n<AISearchIcon size={20} />\n\n// Icon with custom colors\n<AISearchIcon \n size={24} \n color={tokens.colorPaletteBlueForeground2}\n aiIndicatorColor={tokens.colorPaletteGreenForeground2}\n/>\n\n// In a button\n<Button \n appearance=\"primary\"\n icon={<AISearchIcon size={16} />}\n>\n AI Search\n</Button>"})]})]})},exports.AdaptiveCardHost=e=>{const t=u.useRef(null),n=u.useRef(null),r=u.useRef(null),o=u.useRef(null);u.useEffect(()=>{A.AdaptiveCard.onProcessMarkdown||(A.AdaptiveCard.onProcessMarkdown=(e,t)=>{t.outputHtml=(new W.default).render(e),t.didProcess=!0;try{t.outputHtml=(new W.default).render(e),t.didProcess=!0}catch(n){console.error("AdaptiveCardHost: Error parsing Markdown",n),t.didProcess=!1}})},[]),u.useEffect(()=>{n.current=null,n.current=new A.AdaptiveCard,r.current=new A.SerializationContext},[e]);const i=u.useCallback(t=>{if(e.onInvokeAction){let n={type:"",title:""};const r=t.getJsonTypeName();switch(r){case A.OpenUrlAction.JsonTypeName:{const e=t;n={type:r,title:e.title,url:e.url}}break;case A.SubmitAction.JsonTypeName:{const e=t;n={type:r,title:e.title,data:e.data}}break;case A.ExecuteAction.JsonTypeName:{const e=t;n={type:r,title:e.title,data:e.data,verb:e.verb}}break;default:n={type:r,title:"Unknown Action"}}e.onInvokeAction(n)}},[e.onInvokeAction]);return u.useEffect(()=>{let t,r=e.themeType;o.current=null,r||(r=jn.SharePoint),t=e.theme?e.theme:ps(r);const i=On(r,t),a=i.hostConfig;console.log("hostconfig:",a),o.current=t,n.current&&(n.current.hostConfig=i.hostConfig),e.onUpdateHostCapabilities&&e.onUpdateHostCapabilities(a.hostCapabilities)},[e]),u.useEffect(()=>{n.current&&(n.current.onExecuteAction=i)},[e,i]),u.useEffect(()=>{const t=new A.CardObjectRegistry,n=new A.CardObjectRegistry;var o;A.GlobalRegistry.populateWithDefaultElements(t),A.GlobalRegistry.populateWithDefaultActions(n),o=t,M.initializeIcons(),o.register("Input.Text",ns),o.register("Input.Number",Ya),o.register("Input.Time",ss),o.register("Input.Date",Ja),o.register("Input.Toggle",ds),o.register("Input.ChoiceSet",Fa),function(e){e.register("Action.Submit",Va),e.register("Action.OpenUrl",Da),e.register("Action.ShowCard",Oa),e.register("Action.ToggleVisibility",Ba),e.register("Action.Execute",Na)}(n),e.onSetCustomElements&&e.onSetCustomElements(t),e.onSetCustomActions&&e.onSetCustomActions(n);const i=r.current;i&&i.setElementRegistry(t),i&&i.setActionRegistry(n)},[e]),u.useEffect(()=>{for(var o;null==(o=null==t?void 0:t.current)?void 0:o.firstChild;)t.current.lastChild&&t.current.removeChild(t.current.lastChild);const i=t.current;if(!i)return;const a=n.current;try{const t=new D.Template(e.card),n=((e,t,n)=>{var r,o,i,a,s,l,c;let u,d;return d=n?{theme:t,aadInfo:(null==(r=null==n?void 0:n.pageContext)?void 0:r.aadInfo)?{instanceUrl:n.pageContext.aadInfo.instanceUrl||"",tenantId:n.pageContext.aadInfo.tenantId||"",userId:n.pageContext.aadInfo.userId||""}:void 0,cultureInfo:(null==(o=null==n?void 0:n.pageContext)?void 0:o.cultureInfo)?{currentCultureName:n.pageContext.cultureInfo.currentCultureName,currentUICultureName:n.pageContext.cultureInfo.currentUICultureName,isRightToLeft:n.pageContext.cultureInfo.isRightToLeft||!1}:void 0,userInfo:(null==(i=null==n?void 0:n.pageContext)?void 0:i.user)?{displayName:n.pageContext.user.displayName,email:n.pageContext.user.email,isAnonymousGuestUser:n.pageContext.user.isAnonymousGuestUser||!1,isExternalGuestUser:n.pageContext.user.isExternalGuestUser||!1,loginName:n.pageContext.user.loginName,preferUserTimeZone:n.pageContext.user.preferUserTimeZone||!1}:void 0,spListInfo:(null==(a=null==n?void 0:n.pageContext)?void 0:a.list)?{id:n.pageContext.list.id,serverRelativeUrl:n.pageContext.list.serverRelativeUrl||"",title:n.pageContext.list.title}:void 0,spListItemInfo:(null==(s=null==n?void 0:n.pageContext)?void 0:s.listItem)?{id:n.pageContext.listItem.id.toString()}:void 0,spSiteInfo:(null==(l=null==n?void 0:n.pageContext)?void 0:l.site)?{absoluteUrl:n.pageContext.site.absoluteUrl,cdnPrefix:n.pageContext.site.cdnPrefix||"",classification:n.pageContext.site.classification||"",correlationId:n.pageContext.site.correlationId||"",id:n.pageContext.site.id,isNoScriptEnabled:n.pageContext.site.isNoScriptEnabled||!1,recycleBinItemCount:n.pageContext.site.recycleBinItemCount||0,serverRelativeUrl:n.pageContext.site.serverRelativeUrl||"",serverRequestPath:n.pageContext.site.serverRequestPath||"",sitePagesEnabled:n.pageContext.site.sitePagesEnabled||!1}:void 0,spWebInfo:(null==(c=null==n?void 0:n.pageContext)?void 0:c.web)?{absoluteUrl:n.pageContext.web.absoluteUrl,id:n.pageContext.web.id,isAppWeb:n.pageContext.web.isAppWeb||!1,language:n.pageContext.web.language||0,languageName:n.pageContext.web.languageName||"",logoUrl:n.pageContext.web.logoUrl||"",serverRelativeUrl:n.pageContext.web.serverRelativeUrl||"",templateName:n.pageContext.web.templateName||"",title:n.pageContext.web.title,description:n.pageContext.web.description||""}:void 0}:{theme:t},u=e?{$root:{...null==e?void 0:e.$root,"@context":d}}:{$root:{"@context":d}},u})(e.data??{$root:{}},ps(e.themeType??jn.SharePoint),e.context),o=t.expand(n);if(a&&a.parse(o,r.current??void 0),a){const e=a.render();e&&e.outerHTML!==i.innerHTML&&e.outerHTML!==i.innerHTML&&(i.innerHTML="",i.appendChild(e))}}catch(s){e.onError&&e.onError(s)}},[e,ps]),c.jsx(p.IdPrefixProvider,{value:"adaptiveCardHost",children:c.jsx(p.FluentProvider,{theme:o.current?o.current:ps(e.themeType??jn.SharePoint),children:c.jsx("div",{ref:t,className:`${e.className?e.className:""}`,style:e.style})})})},exports.AppDashboard=({cards:e,containerWidth:t,containerHeight:n="100%",maxSpanRows:r=4,enableDragAndDrop:o=!0,enableCache:i=!0,cacheKeyPrefix:a="app-dashboard",onCardsReorder:s,onCardResize:l})=>{const d={dashboardContainer:g.css({display:"grid",padding:"20px",gap:"16px",backgroundColor:p.tokens.colorNeutralBackground2,gridTemplateColumns:"repeat(auto-fill, minmax(350px, 1fr))",gridAutoRows:"350px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2},justifyContent:"center",gridAutoFlow:"dense"}),cardBody:g.css({display:"flex",flexDirection:"column",height:"100%",minHeight:"320px"}),chartContainer:g.css({flex:1,width:"100%",minHeight:"280px"}),cardDescription:g.css({color:`${p.tokens.colorNeutralForeground2}`}),cardWrapper:g.css({position:"relative",height:"100%",minHeight:"300px",borderRadius:p.tokens.borderRadiusMedium,transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:`${p.tokens.shadow16}`},"&:active":{transform:"translateY(0)",boxShadow:`${p.tokens.shadow8}`}})},h=`${a}-layout-settings`,m=`${a}-card-order`,{getCachedData:f,setCachedData:y}=X(),v=u.useCallback(e=>f(e),[f]),b=u.useCallback((e,t)=>y(e,t,43200),[y]),{getCachedData:x,setCachedData:C}=X(),w=u.useCallback(e=>x(e),[x]),S=u.useCallback((e,t)=>C(e,t,43200),[C]),[k,P]=u.useState([]),[E,A]=u.useState({}),I=u.useRef(null),_=u.useRef(null),T=u.useRef(null);u.useEffect(()=>{(async()=>{try{let t=e,n={};if(i){const[r,o]=await Promise.all([v(h),w(m)]);if(o&&o.length>0){const n=new Map(e.map(e=>[e.id,e])),r=o.filter(e=>n.has(e)),i=e.filter(e=>!o.includes(e.id));t=[...r.map(e=>n.get(e)),...i]}e.forEach(e=>{var t,o;const i=null==r?void 0:r[e.id];n[e.id]={spanCols:(null==i?void 0:i.spanCols)??(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==i?void 0:i.spanRows)??(null==(o=e.defaultSpan)?void 0:o.spanRows)??1}})}else e.forEach(e=>{var t,r;n[e.id]={spanCols:(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==(r=e.defaultSpan)?void 0:r.spanRows)??1}});P(t),A(n)}catch(t){console.warn("Failed to load dashboard data from cache:",t),P(e);const n={};e.forEach(e=>{var t,r;n[e.id]={spanCols:(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==(r=e.defaultSpan)?void 0:r.spanRows)??1}}),A(n)}})()},[e,i,h,m,v,w]),u.useEffect(()=>{if(!i||0===Object.keys(E).length)return;(async()=>{try{await b(h,E)}catch(e){console.warn("Failed to save dashboard layout to cache:",e)}})()},[E,i,h,b]),u.useEffect(()=>{if(!i||0===k.length)return;(async()=>{try{const e=k.map(e=>e.id);await S(m,e)}catch(e){console.warn("Failed to save dashboard order to cache:",e)}})()},[k,i,m,S]),u.useEffect(()=>{t<=600&&A(()=>{const e={};return k.forEach(t=>{e[t.id]={spanCols:1,spanRows:1}}),e})},[t,k]);const j=u.useMemo(()=>t>600,[t]),{minCardWidth:M,gridGap:N,containerPadding:D}=u.useMemo(()=>({minCardWidth:350,gridGap:16,containerPadding:20}),[]),O=t-2*D,V=u.useMemo(()=>Math.floor((O+N)/(M+N)),[O,N,M]),B=Math.max(V,1),R=u.useCallback(()=>{if(null!==I.current&&null!==_.current&&I.current!==_.current){const e=[...k],[t]=e.splice(I.current,1);e.splice(_.current,0,t),P(e),s&&s(e)}I.current=null,_.current=null},[k,s]),z=u.useCallback((e,t)=>{const n={spanCols:Math.min(Math.max(t.spanCols,1),B),spanRows:Math.min(Math.max(t.spanRows,1),r)};A(t=>({...t,[e]:n})),l&&l(e,n)},[B,r,l]),L=u.useMemo(()=>k.reduce((e,t)=>{var n,r;return e[t.id]={spanCols:Math.min((null==(n=t.defaultSpan)?void 0:n.spanCols)??1,V),spanRows:(null==(r=t.defaultSpan)?void 0:r.spanRows)??1},e},{}),[k,V]),H=u.useMemo(()=>k.map((e,t)=>{var i,a,s,l;const u=!1!==e.showZoom&&j,h=e.headerAction||(u?c.jsx(Cc,{values:E[e.id]||L[e.id]||{spanCols:1,spanRows:1},maxCols:B,maxRows:r,IsOpen:!1,onChange:t=>z(e.id,t)}):void 0);return c.jsx("div",{className:d.cardWrapper,draggable:o,onDragStart:()=>o&&(I.current=t),onDragEnter:()=>o&&(_.current=t),onDragOver:e=>o&&e.preventDefault(),onDragEnd:o?R:void 0,style:{gridColumnEnd:(null==(i=E[e.id])?void 0:i.spanCols)?`span ${E[e.id].spanCols}`:`span ${(null==(a=L[e.id])?void 0:a.spanCols)||1}`,gridRowEnd:(null==(s=E[e.id])?void 0:s.spanRows)?`span ${E[e.id].spanRows}`:`span ${(null==(l=L[e.id])?void 0:l.spanRows)||1}`,cursor:o?"grab":"default"},children:c.jsxs(p.Card,{className:`${d.cardBody} ${e.className||""}`,children:[c.jsx(p.CardHeader,{header:c.jsxs(yt,{gap:"0px",children:[c.jsx(p.Text,{weight:"semibold",size:400,children:e.cardTitle}),e.cardDescription&&c.jsx(p.Text,{className:d.cardDescription,size:200,children:e.cardDescription})]}),action:h}),c.jsx("div",{className:d.chartContainer,style:{height:n,...e.style},children:e.content})]})},e.id)}),[k,o,R,E,d.cardBody,d.cardDescription,d.chartContainer,d.cardWrapper,j,B,r,z,n,L]);return 0===k.length?c.jsx(xc,{}):c.jsx("div",{ref:T,className:d.dashboardContainer,style:{height:n},children:H})},exports.AspectRatio=({ratio:e,children:t,maxWidth:n,maxHeight:r,style:o={},...i})=>{const a={position:"relative",width:"100%",paddingTop:100/e+"%",maxWidth:n||"none",maxHeight:r||"none",...o};return c.jsx("div",{style:a,...i,children:c.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:t})})},exports.Breadcrumb=({items:e,maxWidth:t="100%",styles:n,theme:r,size:o="medium",currentIndex:i=e.length-1,className:a})=>{const{styles:s,getStyles:l}=Pt(),d=u.useRef(null),[h,m]=u.useState([]),[g,y]=u.useState([]);return u.useEffect(()=>{const t=()=>{if(!d.current)return;const t=d.current.offsetWidth;let n=0;const r=[],o=[];e.forEach(e=>{n+80<=t-50?(r.push(e),n+=80):o.push(e)}),m(r),y(o)},n=((e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}})(t,100),r=new f.ResizeObserver(()=>{n()});return d.current&&r.observe(d.current),t(),()=>{r.disconnect()}},[e]),c.jsx("div",{ref:d,className:p.mergeClasses(s.container,a),style:{maxWidth:t,...n},children:c.jsxs(st,{horizontal:!0,verticalAlign:"center",horizontalAlign:"start",children:[h.map((e,t)=>c.jsxs(c.Fragment,{children:[t===i?c.jsxs(st,{horizontal:!0,verticalAlign:"center",horizontalAlign:"start",columnGap:5,styles:{overflow:"hidden"},children:[e.icon?u.cloneElement(e.icon,{style:{fontSize:"large"===o?"20px":"medium"===o?"16px":"12px"}}):null,c.jsx(p.Text,{className:p.mergeClasses(s.breadcrumbItem,l(e,o),l(e,"current")),"aria-current":"page",children:e.label},e.label)]}):c.jsx(p.Button,{icon:e.icon?e.icon:null,appearance:"transparent",className:`${s.breadcrumbItem}`,onClick:e.onClick,children:c.jsx(p.Text,{className:l(e,o),children:e.label})},e.label),t<h.length-1&&c.jsx(v.ChevronRightRegular,{style:{fontSize:"large"===o?"20px":"medium"===o?"16px":"12px"}})]})),g.length>0&&c.jsx(Et,{items:g,theme:r})]})})},exports.ButtonMenu=kt,exports.CalendarControl=({events:e,height:t=800,theme:n,onDayChange:r,onMonthChange:o,onWeekChange:i,onViewChange:a,onDaySlotClick:s,defaultView:l,strings:d})=>{const{styles:m}=Mt(),g=u.useRef(null),[y,v]=u.useState(null),b=u.useRef(0),[x,C]=u.useState(new Date),[w,S]=u.useState(l??Yt.Month),{getMonthCalendar:k}=Jt(Intl.DateTimeFormat().resolvedOptions().timeZone),P=L.useCallback(e=>{const t=e.getMonth(),n=h.startOfMonth(e),r=h.startOfWeek(n);return Array.from({length:42},(e,n)=>{const o=h.addDays(r,n);return{day:o.getDate(),currentMonth:o.getMonth()===t,date:o}})},[42]),E=L.useCallback(e=>{o&&o(e),C(e)},[o]),A=L.useCallback(e=>{r&&r(e),C(e)},[r]),I=L.useCallback(e=>{i&&i(e),C(e)},[i]),_=L.useCallback(e=>{a&&a(e),S(e)},[a]),T=L.useCallback(t=>{var n;const{date:r}=t;return(null==(n=k(e,x.getFullYear(),x.getMonth())[h.format(r,"yyyy-MM-dd")])?void 0:n.flatMap(e=>e))||[]},[x,e]),j=L.useCallback(()=>{g.current&&requestAnimationFrame(()=>{if(g.current){const e=g.current.querySelector(`.${m.calendarWrapper} > div:nth-child(8)`);e&&(v(e.offsetHeight),b.current=e.offsetHeight)}})},[m.calendarWrapper]);u.useEffect(()=>{const e=new f.ResizeObserver(j);return g.current&&e.observe(g.current),j(),window.addEventListener("resize",j),()=>{e.disconnect(),window.removeEventListener("resize",j)}},[j,w]),u.useEffect(()=>{S(l||Yt.Month)},[l]);const M=L.useCallback(()=>{switch(w){case Yt.Month:return c.jsx(hn,{events:e,currentDate:x,rowHeight:y,getCalendarDays:P,getEventsForDay:T,styles:m,onDaySlotClick:s,height:t,calendarRef:g,strings:null==d?void 0:d.calendarControl});case Yt.Week:return c.jsx(mn,{events:e,currentDay:x,height:t,strings:null==d?void 0:d.weekView});case Yt.Day:return c.jsx(fn,{events:e,currentDay:x,height:t,strings:null==d?void 0:d.dayView});default:return c.jsx(hn,{events:e,currentDate:x,rowHeight:y,getCalendarDays:P,getEventsForDay:T,styles:m,onDaySlotClick:s,height:t,calendarRef:g,strings:null==d?void 0:d.calendarControl})}},[w,e,x,y,P,T,m,s,t]);return c.jsx(p.IdPrefixProvider,{value:"calendarControl-",children:c.jsx(p.FluentProvider,{theme:n??p.webLightTheme,style:{width:"100%"},children:c.jsxs(st,{height:"100%",verticalAlign:"start",children:[c.jsx(cn,{selectedView:w,onSelectedView:_,currentDate:x,setCurrentDate:C,onWeekChange:I,onMonthChange:E,onDayChange:A,strings:null==d?void 0:d.toolbar}),c.jsx(M,{})]})})})},exports.CalendarMonth=tn,exports.Card=tt,exports.Carousel=e=>{const{className:t,items:n,title:r}=e,o=L.useRef(null),[i,a]=L.useState(0),[s,l]=L.useState(0),{carouselStyles:u}=ht(e),[d,h]=y(),m=mt(),{enableControls:g,embla__slide:b,embla__container:x,embla__viewport:C,embla__buttons:w}=pt(0,i),{prevBtnDisabled:S,nextBtnDisabled:k,onPrevButtonClick:P,onNextButtonClick:E}=dt(h);return L.useEffect(()=>{let e;return o.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;a(e),l(n)}}),a(o.current.clientWidth),l(o.current.clientHeight),e.observe(o.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsxs("div",{id:"-carousel",className:p.mergeClasses(t,"embla"),style:{...u(i,s)},ref:o,children:[c.jsxs("div",{className:g,children:[c.jsx(p.Subtitle2,{className:m.titleStyles,children:r}),c.jsxs("div",{className:w,children:[c.jsx(p.Button,{onClick:P,disabled:S,appearance:"subtle",icon:c.jsx(v.ChevronLeftRegular,{})}),c.jsx(p.Button,{onClick:E,disabled:k,appearance:"subtle",icon:c.jsx(v.ChevronRightRegular,{})})]})]}),c.jsx("div",{className:C,ref:d,children:c.jsx("div",{className:x,children:n.map((e,t)=>c.jsx("div",{className:b,children:e},t))})})]})})},exports.Center=ct,exports.ChatInput=oc,exports.ChatInputWithMensions=lc,exports.ChatInputWithMensionsV1=({context:e,onChange:t,value:n,placeholder:r,onSend:o,theme:i=p.webLightTheme,isRunning:a,onAbort:s})=>{const[l,d]=u.useState(n||""),[h,m]=u.useState(!1),f=u.useRef(null),[g,y]=u.useState({top:0,left:0}),[v,b]=u.useState([]),x=u.useRef({}),C=sc();u.useEffect(()=>{var e;null==(e=f.current)||e.focus(),d(n||"")},[n]);const w=u.useCallback(Ke(async t=>{const n=await(async t=>{var n,r;if(x.current[t])return x.current[t];if(!(null==e?void 0:e.graphClient))return console.warn("Graph client not available"),[];try{const o=t&&t.length>0?`/users?$filter=startswith(displayName,'${t}')`:"/users?$orderby=displayName&$top=10",i=await e.graphClient.get(o),a=(null==i?void 0:i.value)||[],s=(null==(r=null==(n=e.pageContext)?void 0:n.web)?void 0:r.absoluteUrl)||"";return a.forEach(e=>{e.avatar=s?`${s}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail}`:`https://graph.microsoft.com/v1.0/users/${e.id}/photo/$value`}),x.current[t]=a,a}catch(o){return console.error("Error fetching users from Graph:",o),[]}})(t);n.sort((e,t)=>e.displayName.localeCompare(t.displayName)),b(n),m(!0),setTimeout(()=>{var e;null==(e=f.current)||e.focus()},0)},300),[e]),S=e=>{var n;const r=l.replace(/@(\w*)$/,`@${e} `);d(r),t&&t(r),m(!1),b([]),null==(n=f.current)||n.focus()},k=u.useCallback(({users:e})=>c.jsxs("div",{className:C.listContainer,children:[0===e.length&&c.jsx(p.Caption1,{children:"No users found"}),e.map(e=>c.jsx(p.Card,{size:"small",appearance:"subtle",onMouseDown:e=>e.preventDefault(),onClick:()=>S(e.mail),children:c.jsx(p.Persona,{name:e.displayName,role:"gridcell",secondaryText:e.mail,avatar:{image:{src:e.avatar}}})},e.id))]}),[C.listContainer,S]);return c.jsxs(st,{horizontal:!0,width:"100%",className:C.inputContainer,children:[c.jsx(oc,{ref:f,onSend:o,value:l,onChange:async e=>{var n;d(e),t&&t(e),null==(n=f.current)||n.focus();const r=e.lastIndexOf("@");if(-1===r||0!==r&&" "!==e[r-1])m(!1);else{const t=e.slice(r+1);await w(t);const n=f.current;if(n){const e=V(n,r),t=n.getBoundingClientRect(),o=t.top+e.top+22,i=t.left+e.left+16;y({top:o,left:i})}}},theme:i,placeholder:r,isRunning:a,onAbort:s}),c.jsxs(ft,{theme:i,anchorPoint:g,isOpen:h,onClose:()=>m(!1),excludeRefs:[f],children:[c.jsx(p.CardHeader,{header:c.jsx(p.Body1Strong,{className:C.sugestionsHeader,children:"Sugestions"})}),c.jsx(p.Divider,{}),c.jsx(k,{users:v})]})]})},exports.Container=e=>{const{className:t,children:n,style:r,alignItems:o="center",justifyContent:i="center",flexDirection:a="row",centerContent:s=!0}=e,l=L.useRef(null),[u,d]=L.useState(0),[p,h]=L.useState(0),{containerStyles:g}=ut(e),y=L.useMemo(()=>m.debounce(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;d(e),h(n)}},200),[]);return L.useEffect(()=>{const e=new f.ResizeObserver(e=>{y(e)});return l.current&&e.observe(l.current),()=>{e.disconnect(),y.cancel()}},[y]),c.jsx("div",{id:"container",className:t,style:{...g(u,p),display:"flex",justifyContent:i,alignItems:o,flexDirection:a,...r},ref:l,children:s?c.jsx(ct,{children:n}):n})},exports.CustomControlBar=({items:e,selectedItemId:t,onSelectedItem:n,renderControl:r,theme:o})=>{const i={container:g.css({display:"flex",flexWrap:"nowrap",minWidth:0,overflow:"hidden",gap:10,marginBottom:20,width:"100%"}),text1LineStyle:g.css({display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word"}),button:g.css({cursor:"pointer",minWidth:107})},a=L.useCallback(e=>{n&&n(e)},[n]);return c.jsx(p.Overflow,{children:c.jsxs(p.FluentProvider,{theme:o,children:[" ",c.jsxs("div",{className:p.mergeClasses(i.container),children:[e.map(e=>{const n=e.id===t;return c.jsx(p.OverflowItem,{id:e.id,priority:n?2:1,children:r(e,n,()=>a(e.id))},e.id)}),c.jsx(In,{items:e,onSelectedItem:a,theme:o})," "]})]})})},exports.DataGrid=e=>{const{items:t,columns:n,defaultSelectedItems:r=[],enableSorting:o=!1,selectionMode:i="none",onSelectionChange:a,onSortChange:s,defaultSortState:l,columnSizingOptions:u,enableResizing:d=!1,noItemsMessage:h,isLoadingData:m,isLoadingDataMessage:f,dataGridBodyClassName:g,dataGridBodyStyles:y,refreshData:v}=e,b=e=>t.findIndex(t=>t===e),[x,C]=L.useState(new Set(r.map(e=>b(e)))),w=L.useRef(null),{styles:S}=vn();L.useEffect(()=>{r.length>0&&C(new Set(r.map(e=>b(e))))},[r,t]),L.useEffect(()=>{v&&C(new Set)},[v]);const k=n.map(e=>p.createTableColumn({columnId:e.column,renderHeaderCell:()=>c.jsx(p.Body1Strong,{children:e.header}),renderCell:t=>c.jsx(p.TableCellLayout,{media:e.media?e.media(t):void 0,className:null==e?void 0:e.className,style:null==e?void 0:e.style,children:e.onRender?e.onRender(t):String(t[null==e?void 0:e.column]??"")}),compare:e.order})),P=L.useCallback((e,t)=>{e.stopPropagation(),"row"===i&&a&&a([t])},[i,a]),E=L.useMemo(()=>"row"===i?S.rowSelection:"",[i,S.rowSelection]),A=L.useCallback(()=>c.jsx(p.DataGridBody,{style:y??{},className:g??"",children:({item:e,rowId:t})=>c.jsx(p.DataGridRow,{className:E,onClick:t=>P(t,e),children:({renderCell:t})=>c.jsx(p.DataGridCell,{children:t(e)})},t)}),[P,E,y,g]),I=L.useMemo(()=>t.length&&!m,[t,m]),_=L.useCallback(()=>m?c.jsx(c.Fragment,{children:f??c.jsx(yn,{direction:"vertical",gap:"s",justifyContent:"center",alignItems:"center",style:{height:"100%",minHeight:200,width:"100%"},children:c.jsx(p.Spinner,{})})}):I?c.jsx(A,{}):m||t.length?c.jsx(c.Fragment,{}):c.jsx("div",{children:h}),[I,m,t,h]);return c.jsx("div",{ref:w,children:c.jsxs(p.DataGrid,{as:"div",items:t,onSelectionChange:(e,n)=>{const r=new Set;if(n.selectedItems.forEach(e=>{const t=Number(e);isNaN(t)||r.add(t)}),C(r),a){const e=Array.from(r).map(e=>t[e]);a(e)}},sortable:o,columns:k,selectionMode:"none"===i||"row"===i?void 0:"multiple"===i?"multiselect":"single"===i?"single":void 0,selectedItems:x,defaultSortState:l,onSortChange:(e,t)=>{s&&s(t)},columnSizingOptions:u,resizableColumns:d,resizableColumnsOptions:{autoFitColumns:!1},children:[c.jsx(p.DataGridHeader,{children:c.jsx(p.DataGridRow,{children:({renderHeaderCell:e})=>c.jsx(p.DataGridHeaderCell,{children:e()})})}),c.jsx(_,{})]})})},exports.DataGridV2=xn,exports.DropdownField=({options:e,onChange:t,renderItem:n,validate:r,label:o,placeholder:i,message:a,messageType:s,required:l,size:d,hint:h})=>{const[m,f]=u.useState(""),[g,y]=u.useState(""),b=L.useMemo(()=>g?"error":"warning"===s?"warning":"info"===s?"success":"none",[g,s]),x=L.useMemo(()=>g||a,[g,a]),C=L.useCallback(()=>{switch(b){case"error":return c.jsx(v.ErrorCircle12Filled,{});case"warning":return c.jsx(v.Warning12Filled,{});case"success":return c.jsx(v.CheckmarkCircle12Filled,{});default:return null}},[b]);return c.jsx(p.Field,{label:o,required:l,validationMessage:x,validationMessageIcon:C(),size:d,hint:h,validationState:b,children:c.jsx(p.Dropdown,{placeholder:i,onChange:(e,n)=>{const o=(null==n?void 0:n.value)||"";f(o);const i=r?r(o):"";y(i),!i&&t&&t(o)},value:m,children:e.map(e=>c.jsxs(p.Option,{value:e.value,disabled:e.disabled,checkIcon:e.checkIcon,as:e.as,text:e.text||"",children:[n&&n(e)," "]},e.value))})})},exports.EBreakPoints=$,exports.ECalendarViews=Yt,exports.EMessageType=U,exports.GenericOverFlowMenu=({items:e,renderItem:t,keyExtractor:n})=>{const{ref:r,overflowCount:o,isOverflowing:i}=p.useOverflowMenu();return i?c.jsxs(p.Menu,{children:[c.jsx(p.MenuTrigger,{disableButtonEnhancement:!0,children:c.jsxs(p.MenuButton,{ref:r,children:["+",o," items"]})}),c.jsx(p.MenuPopover,{children:c.jsx(p.MenuList,{children:e.map(e=>c.jsx(_n,{id:n(e),children:t(e)},n(e)))})})]}):null},exports.Grid=e=>{const{children:t,className:n}=e,{gridStyles:r}=nt(e),o=L.useRef(null),[i,a]=L.useState(0),[s,l]=L.useState(0);return L.useEffect(()=>{let e;return o.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;a(e),l(n)}}),e.observe(o.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsx("div",{className:n,style:r(i,s),ref:o,children:t})})},exports.Layout=e=>{const{className:t,children:n,layoutConfig:r=ot}=e,o=L.useRef(null),[i,a]=L.useState(0),[s,l]=L.useState(0),{rootStyles:u,layoutGridStyles:d}=rt({...e,layoutConfig:r}),h=((e,t)=>{let n;return L.useCallback((...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)},[e,t])})((e,t)=>{a(e),l(t)},200);return L.useEffect(()=>{if(!o.current)return;const e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;h(e,n)}});return e.observe(o.current),()=>e.disconnect()},[h]),c.jsx("div",{id:"-Layout",className:p.mergeClasses(t,d),style:{...u(i,s),gridTemplateAreas:r.areas.join(" "),gridTemplateColumns:r.columns,gridTemplateRows:r.rows},ref:o,children:L.Children.map(n,(e,t)=>{var n;if(L.isValidElement(e)){const r=e;return c.jsx("div",{style:{gridArea:(null==(n=r.props)?void 0:n.area)??`area-${t}`},children:e},t)}return e})})},exports.LayoutItem=e=>{const{area:t,children:n}=e;return c.jsx(c.Fragment,{children:c.jsx("div",{style:{gridArea:t},children:n})})},exports.ListItemActivityMessage=({siteId:e,listId:t,itemId:n,currentUserEmail:r,strings:o,context:i})=>{var a,s,l,d,p,h,m,f,g,y,b;const{getItemActivities:x}=(e=>{const t=G(),n=e||t,r=null==n?void 0:n.graphClient;return{getItemActivities:u.useCallback(async(e,t,n)=>{if(!r)return console.warn("Graph client not available for SharePoint activities"),{activities:[]};try{const o=await r.get(`/sites/${e}/lists/${t}/items/${n}/getActivitiesByInterval(startDateTime='',endDateTime='',interval='')`);return o&&o.value?{activities:o.value.map(e=>({action:e.action||{},actor:e.actor||{},times:e.times||{}}))}:{activities:[]}}catch(o){throw console.error("Error fetching SharePoint activities:",o),o}},[r])}})(i),C=new Map([["access",{message:(null==o?void 0:o.access)||(null==(a=vc.get("access"))?void 0:a.message)||"",icon:c.jsx(v.OpenRegular,{style:gc})}],["comment",{message:(null==o?void 0:o.comment)||(null==(s=vc.get("comment"))?void 0:s.message)||"",icon:c.jsx(v.CommentRegular,{style:gc})}],["create",{message:(null==o?void 0:o.create)||(null==(l=vc.get("create"))?void 0:l.message)||"",icon:c.jsx(v.AddRegular,{style:gc})}],["delete",{message:(null==o?void 0:o.delete)||(null==(d=vc.get("delete"))?void 0:d.message)||"",icon:c.jsx(v.DeleteRegular,{style:gc})}],["edit",{message:(null==o?void 0:o.edit)||(null==(p=vc.get("edit"))?void 0:p.message)||"",icon:c.jsx(v.EditRegular,{style:gc})}],["mention",{message:(null==o?void 0:o.mention)||(null==(h=vc.get("mention"))?void 0:h.message)||"",icon:c.jsx(v.MentionRegular,{style:gc})}],["move",{message:(null==o?void 0:o.move)||(null==(m=vc.get("move"))?void 0:m.message)||"",icon:c.jsx(v.ArrowMoveRegular,{style:gc})}],["rename",{message:(null==o?void 0:o.rename)||(null==(f=vc.get("rename"))?void 0:f.message)||"",icon:c.jsx(v.RenameRegular,{style:gc})}],["restore",{message:(null==o?void 0:o.restore)||(null==(g=vc.get("restore"))?void 0:g.message)||"",icon:c.jsx(v.ArrowSyncRegular,{style:gc})}],["share",{message:(null==o?void 0:o.share)||(null==(y=vc.get("share"))?void 0:y.message)||"",icon:c.jsx(v.PeopleRegular,{style:gc})}],["version",{message:(null==o?void 0:o.version)||(null==(b=vc.get("version"))?void 0:b.message)||"",icon:c.jsx(v.HistoryRegular,{style:gc})}]]),[w,S]=L.useState({message:"",icon:c.jsx(c.Fragment,{})}),[k,P]=L.useState(!0),E=L.useRef(void 0),A=L.useRef(void 0),[I]=L.useState(30),_=L.useCallback(e=>e.user.email===r,[r]),T=L.useCallback(e=>{if(!e)return{message:"",icon:c.jsx(c.Fragment,{})};const{action:t,actor:n}=e,{displayName:r}=(null==n?void 0:n.user)||{displayName:""},o=yc.find(e=>t[e]);if(o){const e=C.get(o);if(e){return{message:`${_(n)?"You":r} ${e.message}`,icon:e.icon}}}return{message:"",icon:c.jsx(c.Fragment,{})}},[C,_]);return L.useEffect(()=>{var e;null==(e=A.current)||e.setPlaybackRate(I/100)},[I,k]),L.useEffect(()=>{let r=!1;const o=async(i=1e3)=>{var a;if(e&&t&&n)try{const o=await x(e,t,n);if(r)return;const i=o.activities[0];E.current&&JSON.stringify(E.current)===JSON.stringify(i)||(E.current=i,S(T(i)))}catch(s){if(429===s.status){const e=null==(a=s.headers)?void 0:a.get("Retry-After"),t=e?1e3*parseInt(e,10):i;return console.warn(`Throttled. Retrying after ${t}ms`),void setTimeout(()=>o(2*t),t)}console.error("Activity Error",s)}finally{r||P(!1)}},i=setTimeout(()=>{o()},1e3);return()=>{clearTimeout(i),r=!0}},[e,t,n,x,T]),c.jsx(B.Fade,{imperativeRef:A,visible:!k,children:c.jsx("div",{children:c.jsxs(st,{horizontal:!0,verticalAlign:"center",horizontalAlign:"center",RowGap:4,columnGap:4,children:[w.icon," ",w.message]})})})},exports.LivePersona=pc,exports.Mensions=ac,exports.MensionsExample=({context:e})=>{const[t,n]=u.useState(""),[r,o]=u.useState(""),i=u.useRef(null),a=u.useRef(null);return c.jsxs(st,{RowGap:20,children:[c.jsxs("div",{children:[c.jsx("h3",{children:"Input with @ mentions"}),c.jsx(p.Input,{ref:i,value:t,onChange:(e,t)=>n(t.value),placeholder:"Type @ to mention someone..."}),c.jsx(ac,{context:e,inputValue:t,parentRef:i,mentionChars:["@"],onUserSelect:(e,r)=>{const o=new RegExp(`${r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),a=t.replace(o,`${r}${e.displayName} `);n(a),setTimeout(()=>{var e;null==(e=i.current)||e.focus()},0)},theme:p.webLightTheme,suggestionsHeader:"Mention User",maxSuggestions:8})]}),c.jsxs("div",{children:[c.jsx("h3",{children:"Textarea with @ and # mentions"}),c.jsx(p.Textarea,{ref:a,value:r,onChange:(e,t)=>o(t.value),placeholder:"Type @ to mention someone or # for tags...",rows:4}),c.jsx(ac,{context:e,inputValue:r,parentRef:a,mentionChars:["@","#"],onUserSelect:(e,t)=>{const n=new RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),i=r.replace(n,`${t}${e.displayName} `);o(i),setTimeout(()=>{var e;null==(e=a.current)||e.focus()},0)},theme:p.webLightTheme,suggestionsHeader:"Select User or Tag",maxSuggestions:10,userFilter:(e,t)=>{var n;return e.displayName.toLowerCase().includes(t.toLowerCase())||((null==(n=e.mail)?void 0:n.toLowerCase().includes(t.toLowerCase()))??!1)}})]})]})},exports.Popup=ft,exports.RenderAdaptiveCard=({card:e,data:t})=>{const n=u.useRef(null);return u.useEffect(()=>{if(!n.current)return;n.current.innerHTML="";const r=new D.Template(e).expand({$root:t}),o=new F.AdaptiveCard;null==o||o.parse(r);const i=o.render();i&&n.current.appendChild(i)},[e,t]),c.jsx("div",{ref:n})},exports.RenderDialog=wn,exports.RenderDrawer=e=>{const{isOpen:t,onOpenChange:n,title:r,headerActions:o,footerActions:i,size:a,separator:s,type:l,style:u,children:d,position:p,classNameHeader:h="",classNameBody:m="",classNameFooter:f=""}=e;return c.jsx(c.Fragment,{children:c.jsxs(P.Drawer,{type:l,separator:s,open:t,onOpenChange:(e,t)=>{n&&n(t.open)},size:a,style:u,position:p,children:[c.jsx(P.DrawerHeader,{className:h,children:c.jsx(P.DrawerHeaderTitle,{style:{width:"100%"},action:o,children:r})}),c.jsx(P.DrawerBody,{className:m,children:d}),c.jsx(P.DrawerFooter,{className:f,children:i})]})})},exports.RenderHeader=e=>{const{onDismiss:t,title:n,description:r,icon:o,showCloseButton:i=!0}=e,a=Sn();return c.jsx(c.Fragment,{children:c.jsxs("div",{id:"RenderHedaermain",className:a.renderHeaderContent,children:[c.jsxs("div",{className:a.renderHeaderHeader,children:[c.jsx(p.Button,{style:{display:i?"block":"none"},appearance:"subtle",className:a.closeButton,onClick:e=>{e.stopPropagation(),e.preventDefault(),t(!1)},icon:c.jsx(v.Dismiss24Regular,{})}),c.jsxs("div",{className:a.renderHeaderTitleContainer,children:[L.isValidElement(o)?o:c.jsx(x.Icon,{icon:o}),c.jsxs("div",{className:a.dialogTitleAndDescriptionContainer,children:[L.isValidElement(n)?n:c.jsx(p.Subtitle1,{className:a.renderHeaderTitle,children:n}),L.isValidElement(r)?r:c.jsx(p.Caption1,{className:a.renderHeaderDescription,children:r})]})]})]}),c.jsx("div",{className:a.divider})]})})},exports.RenderLabel=bt,exports.RenderSpinner=e=>{const{size:t,label:n,labelPosition:r,style:o,className:i}=e,a=xt();return c.jsx("div",{className:a.root,children:c.jsx(p.Spinner,{style:o,className:p.mergeClasses(a.spinner,i),size:t,label:n,labelPosition:r})})},exports.SelectDay=Kt,exports.SelectMonth=nn,exports.SelectView=({onChange:e,defaultKey:t,label:n,options:r=[]})=>{const[o,i]=u.useState(()=>r.map(e=>({...e,selected:e.key===(t??"status")})));u.useEffect(()=>{const t=o.find(e=>e.selected);t&&e(t.key)},[]);const a=u.useCallback(t=>{const n=o.map(e=>({...e,selected:e.key===t.key}));i(n),e(t.key)},[o,e]);return c.jsxs(yt,{gap:"s",alignItems:"center",children:[n&&c.jsx(p.Label,{children:n}),c.jsx(kt,{options:o,onSelected:a,styles:{width:220}})]})},exports.SelectWeek=sn,exports.ShareDialog=({isOpen:e,options:t,onClose:n})=>{const[r,o]=u.useState(void 0);console.log(r);const i=u.useRef(null),[a,s]=u.useState(400),{siteUrl:l,listId:d,itemId:p,name:h}=t,m=u.useCallback(()=>{n()},[n]),f=u.useCallback(e=>{if(e.origin!==window.location.origin)return;console.log("Message from iframe:",e.data);const{name:t,height:n}=JSON.parse(e.data);switch(t){case"share_dismiss":m();break;case"share_resize":s(n)}},[m]);return u.useEffect(()=>(window.addEventListener("message",f),()=>{window.removeEventListener("message",f)}),[f]),u.useEffect(()=>{if(e){const e="sharePoint",t=0,n="",r=(new Date).getTime(),i=!1,a=encodeURIComponent(window.location.origin),s=encodeURIComponent(h),c=`${l}/_layouts/15/sharedialog.aspx?listId=${d}&listItemId=${p}&clientId=${e}&policyTip=${t}&folderColor=${n}&clickTime=${r}&ma=0&fullScreenMode=${i}&itemName= ${s}&channelId=&origin=${a}`;console.log(c),o(c)}else o(void 0)},[e,l,d,p]),c.jsx(wn,{isOpen:e,onDismiss:m,maxHeight:"fit-content",children:c.jsx("iframe",{ref:i,src:r||"",style:{width:"100%",height:a,border:"none"},onLoad:()=>console.log("Iframe loaded")})})},exports.ShowError=({title:e,message:t})=>{const n=kn();return c.jsx(p.Card,{className:n.container,children:c.jsxs(yt,{gap:"l",alignItems:"center",children:[c.jsx(v.ErrorCircleRegular,{className:n.icon}),c.jsxs(yt,{gap:"s",alignItems:"center",children:[c.jsx(p.Title3,{className:n.title,children:e}),c.jsx(p.Body1,{className:n.message,children:t})]})]})})},exports.ShowMessage=En,exports.Space=e=>{const t=L.useRef(null),[n,r]=L.useState(0),{spaceStyles:o}=it(e);return L.useEffect(()=>{let e;return t.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e}=t.contentRect;r(e)}}),e.observe(t.current)),()=>{e&&e.disconnect()}},[]),c.jsx(c.Fragment,{children:c.jsx("div",{id:"-space",style:o(n),ref:t})})},exports.Stack=st,exports.StackItem=e=>{const{children:t,grow:n,disableShrink:r,shrink:o,order:i,alignSelf:a,verticalFill:s}=e,{getBaseStyles:l}=Z(),u=L.useRef(null),[d,p]=L.useState(0),[h,m]=L.useState(0),g=l(e,d,h);L.useEffect(()=>{let e;return u.current&&(e=new f.ResizeObserver(e=>{for(const t of e){const{width:e,height:n}=t.contentRect;p(e),m(n)}}),e.observe(u.current)),()=>{e&&e.disconnect()}},[]);const y={...g,alignSelf:a,order:i,height:s?"100%":"auto",flexGrow:n?"boolean"==typeof n?1:n:void 0,flexShrink:r||!n&&!o?0:1,minWidth:0,minHeight:0,width:"auto"};return c.jsx(c.Fragment,{children:c.jsx("div",{ref:u,style:y,children:t})})},exports.StackV2=yt,exports.StackedUsers=({users:e,maxVisible:t=5,avatarSize:n=32,showHoverCard:r=!0,context:o,className:i,layout:a="stack",overflowText:s})=>{const l={container:g.css({display:"flex",alignItems:"center",gap:"4px"}),stackLayout:g.css({"& > *:not(:first-child)":{marginLeft:"-8px"}}),spreadLayout:g.css({display:"flex",flexDirection:"row",gap:"8px","& > *":{marginLeft:"0"}}),userCardWrapper:g.css({position:"relative",zIndex:1,transition:"transform 0.2s ease, z-index 0.2s ease","&:hover":{transform:"scale(1.1)",zIndex:10}}),overflowButton:g.css({backgroundColor:p.tokens.colorNeutralBackground1,border:`2px solid ${p.tokens.colorNeutralStroke1}`,borderRadius:"50%",color:p.tokens.colorNeutralForeground1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",fontWeight:600,minWidth:"32px",minHeight:"32px",position:"relative",zIndex:1,transition:"all 0.2s ease","&:hover":{backgroundColor:p.tokens.colorNeutralBackground1Hover,zIndex:10}}),popover:g.css({maxWidth:"300px",padding:"12px"}),popoverUserList:g.css({display:"flex",flexDirection:"column",gap:"8px"}),popoverUserCard:g.css({padding:"4px",borderRadius:"4px",transition:"background-color 0.2s ease","&:hover":{backgroundColor:p.tokens.colorNeutralBackground1Hover}})},{visibleUsers:d,overflowUsers:h}=u.useMemo(()=>{if(!e||0===e.length)return{visibleUsers:[],overflowUsers:[]};return{visibleUsers:e.slice(0,t),overflowUsers:e.slice(t)}},[e,t]),m=u.useMemo(()=>s||`+${h.length}`,[s,h.length]);return e&&0!==e.length?o?c.jsxs(yt,{direction:"horizontal",alignItems:"start",gap:"stack"===a?"4px":"12px",className:`${"stack"===a?l.stackLayout:l.spreadLayout} ${i||""}`,children:[d.map((e,t)=>c.jsx("div",{className:l.userCardWrapper,children:c.jsx(fc,{userId:e.id,avatarSize:n,showHoverCard:r??!0,context:o,avatarOnly:!0})},`user-${e.id||t}`)),h.length>0&&c.jsxs(p.Popover,{withArrow:!0,children:[c.jsx(p.PopoverTrigger,{disableButtonEnhancement:!0,children:c.jsx(p.Button,{className:l.overflowButton,style:{width:`${n}px`,height:`${n}px`,fontSize:n>40?"14px":"12px"},appearance:"subtle",children:m})}),c.jsx(p.PopoverSurface,{className:l.popover,children:c.jsx("div",{className:l.popoverUserList,children:h.map((e,t)=>c.jsx("div",{className:l.popoverUserCard,children:c.jsx(fc,{userId:e.id,avatarSize:32,showHoverCard:r??!0,context:o,textPosition:"after",avatarOnly:!1})},`overflow-user-${e.id||t}`))})})]})]}):(console.warn("StackedUsers: context is required to display user cards"),null):null},exports.TypographyControl=e=>{const{fontSize:t,fontWeight:n,numberOfLines:r,as:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:l,paddingRight:u,margin:d,marginTop:h,marginBottom:m,marginLeft:f,marginRight:y,children:v,style:b,className:x,color:C,block:w,truncate:S,wrap:k}=e,P=g.css({color:C,fontSize:t&&Ct[t]?Ct[t]:t,fontWeight:n&&St[n]?St[n]:n,display:r?"-webkit-box":void 0,WebkitBoxOrient:"vertical",overflow:r?"hidden":void 0,WebkitLineClamp:r,padding:i&&wt[i]?wt[i]:i,paddingTop:a&&wt[a]?wt[a]:a,paddingBottom:s&&wt[s]?wt[s]:s,paddingLeft:l&&wt[l]?wt[l]:l,paddingRight:u&&wt[u]?wt[u]:u,margin:d&&wt[d]?wt[d]:d,marginTop:h&&wt[h]?wt[h]:h,marginBottom:m&&wt[m]?wt[m]:m,marginLeft:f&&wt[f]?wt[f]:f,marginRight:y&&wt[y]?wt[y]:y,...b});return c.jsx(p.Text,{as:o,className:p.mergeClasses(x,P),block:w,truncate:S,wrap:k,children:v})},exports.UniversalProvider=({context:e,children:t})=>c.jsx(J.Provider,{value:e,children:t}),exports.UserCard=fc,exports.VideoPlayer=e=>{const{url:t,controls:n=!0,width:r="100%",height:o="100%",loop:i=!1,muted:a=!1}=e,[s,l]=u.useState(!1),d=Tn(e);return c.jsxs("div",{className:d.videoPlayerContainer,children:[c.jsx(E,{url:t,controls:n,width:r,height:o,playing:s,loop:i,muted:a,onPause:()=>l(!1),onPlay:()=>l(!0),className:d.reactPlayer}),!s&&c.jsx(p.Button,{className:p.mergeClasses(d.playButton),onClick:()=>{l(!s)},children:"►"})]})},exports.cloneDeep=function e(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array)return t.map(t=>e(t));if(t instanceof Object){const n={};for(const r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}return t},exports.debounce=Ke,exports.defaultCalendarControlStrings=pn,exports.defaultCalendarMonthStrings=en,exports.defaultSelectWeekStrings=rn,exports.every=function(e,t){return e.every(t)},exports.filter=function(e,t){return e.filter(t)},exports.get=function(e,t,n){const r=Array.isArray(t)?t:t.split(".");let o=e;for(const i of r){if(null==o)return n;o=o[i]}return void 0===o?n:o},exports.groupBy=function(e,t){return e.reduce((e,n)=>{const r=String(t(n));return e[r]||(e[r]=[]),e[r].push(n),e},{})},exports.isEmpty=function(e){return null==e||("string"==typeof e||Array.isArray(e)?0===e.length:"object"==typeof e&&0===Object.keys(e).length)},exports.map=function(e,t){return e.map(t)},exports.set=function(e,t,n){const r=Array.isArray(t)?t:t.split("."),o=r.pop();if(!o)return e;let i=e;for(const a of r)a in i&&"object"==typeof i[a]||(i[a]={}),i=i[a];return i[o]=n,e},exports.some=function(e,t){return e.some(t)},exports.throttle=function(e,t=0){let n=null,r=0;return function(...o){const i=this,a=Date.now();r||(r=a);const s=t-(a-r);s<=0||s>t?(n&&(clearTimeout(n),n=null),r=a,e.apply(i,o)):n||(n=setTimeout(()=>{r=Date.now(),n=null,e.apply(i,o)},s))}},exports.uniq=function(e){return Array.from(new Set(e))},exports.uniqBy=function(e,t){const n=new Set;return e.filter(e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)})},exports.useApplicationContext=G,exports.useAspectRatioStyles=e=>{const{styles:t}=e,{getBaseStyles:n}=Z();return{aspectRatioStyles:L.useCallback((r,o)=>({...n(e,r,o),...t}),[n,e,t])}},exports.useCalendar=Jt,exports.useCalendarStyles=Mt,exports.useCardStyles=et,exports.useCarouselStyles=pt,exports.useCarouselStylesMain=ht,exports.useCenterStyles=lt,exports.useComponentUtils=Z,exports.useContainerStyles=ut,exports.useDataGridStyles=vn,exports.useDateUtils=(e,t,n)=>{const{getFormatRelative:r,formatDate:o}=Ze(t,e);return{formatUtcDate:(e,t="PP")=>{const n=h.differenceInDays(new Date,h.parseISO(e));let i="";return void 0!==e&&(i=n>7?o(e,t):r(e)),i},formatTime:n=>n.toLocaleTimeString(e,{timeZone:t}),convertDateToUTC:n=>{const r="string"==typeof n?new Date(n):n,o=new Intl.DateTimeFormat(e,{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(r);let i,a,s,l,c,u;for(const e of o)switch(e.type){case"year":i=e.value;break;case"month":a=e.value;break;case"day":s=e.value;break;case"hour":l=e.value;break;case"minute":c=e.value;break;case"second":u=e.value}return new Date(`${i}-${a}-${s}T${l}:${c}:${u}Z`)}}},exports.useDayViewStyles=Gt,exports.useGraphAPI=()=>{const e=G(),t=null==e?void 0:e.graphClient;return{getUser:u.useCallback(async e=>{if(!t)return console.warn("Graph client not available"),null;try{return await t.get(`/users/${e}`)}catch(n){return console.error("Error fetching user:",n),null}},[t]),getCurrentUser:u.useCallback(async()=>{if(!t)return console.warn("Graph client not available"),null;try{return await t.get("/me")}catch(e){return console.error("Error fetching current user:",e),null}},[t]),searchUsers:u.useCallback(async(e,n=10)=>{if(!t)return console.warn("Graph client not available"),[];try{return(await t.get(`/users?$search="displayName:${e}" OR "mail:${e}"&$top=${n}`)).value||[]}catch(r){return console.error("Error searching users:",r),[]}},[t]),getUserPhoto:u.useCallback(async e=>{if(!t)return console.warn("Graph client not available"),null;try{const n=await t.get(`/users/${e}/photo/$value`);return URL.createObjectURL(n)}catch(n){return console.error("Error fetching user photo:",n),null}},[t]),graphClient:t}},exports.useGridStyles=nt,exports.useImageUtils=()=>{const e=u.useCallback(async e=>{const t=await fetch(e).then(e=>e.text());return"data:image/svg+xml;base64,"+btoa(t)},[]),t=u.useCallback(async(e,t,n)=>new Promise((r,o)=>{const i=new Image;i.crossOrigin="anonymous",i.addEventListener("load",()=>{var e;const a=document.createElement("canvas");let s;a.width=t??i.width,a.height=n??i.height,null==(e=null==a?void 0:a.getContext("2d"))||e.drawImage(i,0,0,t??i.width,n??i.height);try{s=a.toDataURL("image/png",1),r(s)}catch(l){Qe&&console.error(`[ImageService.getBase64Image]: Err='${l.message}'`),o(l)}}),i.addEventListener("error",e=>{Qe&&console.error(`[ImageService.getBase64Image]: Image load error='${e.message}'`),o(e)}),i.src=e}),[]),n=u.useCallback(e=>!m.isEmpty(e)&&e.indexOf("data:image/")>=0,[]);return{getBase64ImageFromDOMImg:u.useCallback(e=>{try{const t=document.getElementById(e),n=document.createElement("canvas");n.width=t.width,n.height=t.height;const r=n.getContext("2d");null==r||r.drawImage(t,0,0);return n.toDataURL("image/png")}catch(t){return void(Qe&&console.error(`[getBase64ImageFromDOMImg]: Err='${t.message}'`))}},[]),isBase64Image:n,getImageBase64:t,base64FromSVGUrl:e}},exports.useIndexedDBCache=X,exports.useLayoutStyles=rt,exports.useLogging=q,exports.useMensionsStyles=ic,exports.usePolling=Y,exports.usePrevNextButtons=dt,exports.useRenderHeaderStyles=Sn,exports.useShowErrorStyles=kn,exports.useShowMessageStyles=Pn,exports.useSpaceStyles=it,exports.useStackStyles=at,exports.useStyles=()=>({inputContainer:g.css({marginTop:"auto",marginLeft:"auto","::after":{content:'""',position:"absolute",bottom:0,left:0,right:0,borderBottom:"2px solid transparent",pointerEvents:"none",borderRadius:p.tokens.borderRadiusMedium}}),listContainer:g.css({maxHeight:"400px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:p.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:p.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:p.tokens.colorNeutralStroke2}}),sugestionsHeader:g.css({color:p.tokens.colorBrandBackground})}),exports.useTimeZoneHelper=()=>{const e=G(),t=u.useMemo(()=>Intl.DateTimeFormat().resolvedOptions().timeZone,[]);return{timeZone:t,convertToUserTimeZone:(e,n)=>{const r=n||t;return d.toZonedTime(e,r)},convertFromUserTimeZone:(e,n)=>{const r=n||t;return d.fromZonedTime(e,r)},formatInTimeZone:(e,n,r)=>{const o=r||t;return d.format(d.toZonedTime(e,o),n,{timeZone:o})},getUserTimeZone:()=>{var n,r;return null==(r=null==(n=null==e?void 0:e.pageContext)?void 0:n.user)||r.preferUserTimeZone,t}}},exports.useUtils=At,exports.useVideoStyles=Tn,exports.useWeekViewStyles=Ot;
201
201
  //# sourceMappingURL=index.js.map