@retailrocketgroup/retailrocket-edit.multicast-vue-email-template-render 6.0.388781 → 6.0.388803

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.
@@ -12,14 +12,14 @@ rendering chunks...
12
12
 
13
13
  [vite:dts] Start generate declaration files...
14
14
  computing gzip size...
15
- [vite:dts] Declaration files built in 6484ms.
15
+ [vite:dts] Declaration files built in 6279ms.
16
16
 
17
17
  dist/index.html 7.48 kB │ gzip: 2.04 kB
18
18
  dist/assets/index.css 175.28 kB │ gzip: 27.52 kB
19
- dist/assets/index.js 3,949.59 kB │ gzip: 1,033.29 kB
19
+ dist/assets/index.js 3,949.61 kB │ gzip: 1,033.29 kB
20
20
 
21
21
  (!) Some chunks are larger than 500 kB after minification. Consider:
22
22
  - Using dynamic import() to code-split the application
23
23
  - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
24
24
  - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
25
- ✓ built in 18.79s
25
+ ✓ built in 19.23s
@@ -190,7 +190,7 @@ ${h.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
190
190
  `):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const o=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return o!==void 0?o:-1},tokenize(t,e,o){const n=i=>{const s=E9(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:o.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:n},o);return s?[{type:"taskList",raw:s.raw,items:s.items}]:o.blockTokens(i)},r=E9(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:o.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:n},o);if(r)return{type:"taskList",raw:r.raw,items:r.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Wo.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(Z5t.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(X5t.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(tWt.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(sWt.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(lWt.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(uWt.configure(this.options.taskList)),t}});hd.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",xa(this.options.HTMLAttributes,t)]},renderText(){return`
191
191
  `},renderMarkdown:()=>`
192
192
  `,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:o,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=o;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=n.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(m=>a.includes(m.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var Aae={},Nae={},Vae={},Iae;function xG(){return Iae||(Iae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNone=t.isSome=t.None=t.Some=t.OptionType=void 0,t.OptionType={Some:Symbol(":some"),None:Symbol(":none")};function e(s){return typeof s>"u"?n():o(s)}t.Some=e,t.None=n();function o(s){return{type:t.OptionType.Some,isSome(){return!0},isNone(){return!1},match(a){return a.some(s)},map(a){return o(a(s))},andThen(a){return a(s)},or(a){return this},and(a){return a},unwrapOr(a){return s},unwrap(){return s}}}function n(){return{type:t.OptionType.None,isSome(){return!1},isNone(){return!0},match(s){const{none:a}=s;return typeof a=="function"?a():a},map(s){return n()},andThen(s){return n()},or(s){return s},and(s){return n()},unwrapOr(s){if(s==null)throw new Error("Cannot call unwrapOr with a missing value.");return s},unwrap(){throw new ReferenceError("Trying to unwrap None.")}}}function r(s){return s.isSome()}t.isSome=r;function i(s){return s.isNone()}t.isNone=i})(Vae)),Vae}var Pae;function cWt(){return Pae||(Pae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isRight=t.isLeft=t.Right=t.Left=t.EitherType=void 0;const e=xG();t.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function o(s){return{type:t.EitherType.Left,isLeft(){return!0},isRight(){return!1},left(){return(0,e.Some)(s)},leftAndThen(a){return a(s)},right(){return e.None},rightAndThen(a){return o(s)},unwrap(){return s},unwrapLeft(){return s},unwrapLeftOr(a){return s},unwrapLeftOrElse(a){return s},unwrapRight(){throw new ReferenceError("Cannot unwrap Right value of Either.Left")},unwrapRightOr(a){return a},unwrapRightOrElse(a){return a(s)},match(a){return a.left(s)},map(a){return o(a(s))},mapLeft(a){return o(a(s))},mapRight(a){return o(s)}}}t.Left=o;function n(s){return{type:t.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return e.None},leftAndThen(a){return n(s)},right(){return(0,e.Some)(s)},rightAndThen(a){return a(s)},unwrap(){return s},unwrapLeft(){throw new ReferenceError("Cannot unwrap Left value of Either.Right")},unwrapLeftOr(a){return a},unwrapLeftOrElse(a){return a(s)},unwrapRight(){return s},unwrapRightOr(a){return s},unwrapRightOrElse(a){return s},match(a){return a.right(s)},map(a){return n(a(s))},mapLeft(a){return n(s)},mapRight(a){return n(a(s))}}}t.Right=n;function r(s){return s.isLeft()}t.isLeft=r;function i(s){return s.isRight()}t.isRight=i})(Nae)),Nae}var Mae={},Oae;function dWt(){return Oae||(Oae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isErr=t.isOk=t.Err=t.Ok=t.ResultType=void 0;const e=xG();t.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function o(s){return{type:t.ResultType.Ok,isOk(){return!0},isErr(){return!1},ok(){return(0,e.Some)(s)},err(){return e.None},unwrap(){return s},unwrapOr(a){return s},unwrapOrElse(a){return s},unwrapErr(){throw new ReferenceError("Cannot unwrap Err value of Result.Ok")},match(a){return a.ok(s)},map(a){return o(a(s))},mapErr(a){return o(s)},andThen(a){return a(s)},orElse(a){return o(s)}}}t.Ok=o;function n(s){return{type:t.ResultType.Err,isOk(){return!1},isErr(){return!0},ok(){return e.None},err(){return(0,e.Some)(s)},unwrap(){throw new ReferenceError("Cannot unwrap Ok value of Result.Err")},unwrapOr(a){return a},unwrapOrElse(a){return a(s)},unwrapErr(){return s},match(a){return a.err(s)},map(a){return n(s)},mapErr(a){return n(a(s))},andThen(a){return n(s)},orElse(a){return a(s)}}}t.Err=n;function r(s){return s.isOk()}t.isOk=r;function i(s){return s.isErr()}t.isErr=i})(Mae)),Mae}var Wae;function mWt(){return Wae||(Wae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Ok=t.isOk=t.isErr=t.Err=t.Some=t.None=t.isSome=t.isNone=t.Right=t.Left=t.isRight=t.isLeft=void 0;var e=cWt();Object.defineProperty(t,"isLeft",{enumerable:!0,get:function(){return e.isLeft}}),Object.defineProperty(t,"isRight",{enumerable:!0,get:function(){return e.isRight}}),Object.defineProperty(t,"Left",{enumerable:!0,get:function(){return e.Left}}),Object.defineProperty(t,"Right",{enumerable:!0,get:function(){return e.Right}});var o=xG();Object.defineProperty(t,"isNone",{enumerable:!0,get:function(){return o.isNone}}),Object.defineProperty(t,"isSome",{enumerable:!0,get:function(){return o.isSome}}),Object.defineProperty(t,"None",{enumerable:!0,get:function(){return o.None}}),Object.defineProperty(t,"Some",{enumerable:!0,get:function(){return o.Some}});var n=dWt();Object.defineProperty(t,"Err",{enumerable:!0,get:function(){return n.Err}}),Object.defineProperty(t,"isErr",{enumerable:!0,get:function(){return n.isErr}}),Object.defineProperty(t,"isOk",{enumerable:!0,get:function(){return n.isOk}}),Object.defineProperty(t,"Ok",{enumerable:!0,get:function(){return n.Ok}})})(Aae)),Aae}mWt();function ab(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(t==null||t==="")return;const o=Number(t);return isNaN(o)?String(t):isFinite(o)?`${o}${e}`:void 0}function Hae(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function z4(t,e){return e.every(o=>t.hasOwnProperty(o))}function hWt(t,e){const o={};for(const n of e)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}function pWt(t){return t==null?[]:Array.isArray(t)?t:[t]}function zae(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function fWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let n=0;for(;n<t.length;)o.push(t.substr(n,e)),n+=e;return o}function TLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n={};for(const r in t)n[r]=t[r];for(const r in e){const i=t[r],s=e[r];if(Hae(i)&&Hae(s)){n[r]=TLe(i,s,o);continue}if(o&&Array.isArray(i)&&Array.isArray(s)){n[r]=o(i,s);continue}n[r]=s}return n}function EF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(EF.cache.has(t))return EF.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return EF.cache.set(t,e),e}EF.cache=new Map;function gWt(t){const e=Se({});nr(()=>{const n=t();for(const r in n)e[r]=n[r]},{flush:"sync"});const o={};for(const n in e)o[n]=Ye(()=>e[n]);return o}const lb=2.4,jae=.2126729,Kae=.7151522,Uae=.072175,yWt=.55,CWt=.58,bWt=.57,vWt=.62,O2=.03,qae=1.45,SWt=5e-4,wWt=1.25,TWt=1.25,Jae=.078,Gae=12.82051282051282,W2=.06,Yae=.001;function Zae(t,e){const o=(t.r/255)**lb,n=(t.g/255)**lb,r=(t.b/255)**lb,i=(e.r/255)**lb,s=(e.g/255)**lb,a=(e.b/255)**lb;let l=o*jae+n*Kae+r*Uae,u=i*jae+s*Kae+a*Uae;if(l<=O2&&(l+=(O2-l)**qae),u<=O2&&(u+=(O2-u)**qae),Math.abs(u-l)<SWt)return 0;let c;if(u>l){const d=(u**yWt-l**CWt)*wWt;c=d<Yae?0:d<Jae?d-d*Gae*W2:d-W2}else{const d=(u**vWt-l**bWt)*TWt;c=d>-Yae?0:d>-Jae?d-d*Gae*W2:d+W2}return c*100}function M9(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function xWt(t){return M9(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Xae=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,FWt={rgb:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),rgba:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),hsl:(t,e,o,n)=>Qae({h:t,s:e,l:o,a:n}),hsla:(t,e,o,n)=>Qae({h:t,s:e,l:o,a:n}),hsv:(t,e,o,n)=>yL({h:t,s:e,v:o,a:n}),hsva:(t,e,o,n)=>yL({h:t,s:e,v:o,a:n})};function ux(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Xae.test(t)){const{groups:e}=t.match(Xae),{fn:o,values:n}=e,r=n.split(/,\s*|\s*\/\s*|\s+/).map((i,s)=>i.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(i)/100:parseFloat(i));return FWt[o](...r)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length)||void 0,kWt(e)}else if(typeof t=="object"){if(z4(t,["r","g","b"]))return t;if(z4(t,["h","s","l"]))return yL(xLe(t));if(z4(t,["h","s","v"]))return yL(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
193
- Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function yL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function Qae(t){return yL(xLe(t))}function xLe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function kWt(t){t=LWt(t);let[e,o,n,r]=fWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function LWt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=zae(zae(t,6),8,"F")),t}function EWt(t){const e=Math.abs(Zae(ux(0),ux(t)));return Math.abs(Zae(ux(16777215),ux(t)))>Math.min(e,50)?"#fff":"#000"}function HE(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function UP(t,e){const o=zs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function _Wt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:UP("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const O9=Symbol.for("vuetify:defaults");function FLe(){const t=xo(O9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function BWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[EF(e)]<"u")}function DWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:FLe();const n=UP("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=Q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(h=>h!=null);if(BWt(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=Yo();nr(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=_Wt(O9,n);or(O9,Q(()=>s.value?TLe(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function $Wt(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=HE(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return hWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=FLe();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=DWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function RWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?$Wt:X)(e)}function AWt(t){const e=UP("useRender");e.render=t}function NWt(t){return gWt(()=>{const{class:e,style:o}=IWt(t);return{colorClasses:e,colorStyles:o}})}function VWt(t){const{colorClasses:e,colorStyles:o}=NWt(()=>({background:xr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function IWt(t){const e=xr(t),o=[],n={};if(e.background)if(M9(e.background)){if(n.backgroundColor=e.background,!e.text&&xWt(e.background)){const r=ux(e.background);if(r.a==null||r.a===1){const i=EWt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(M9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const PWt=HE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function MWt(t){return{dimensionStyles:Q(()=>{const e={},o=ab(t.height),n=ab(t.maxHeight),r=ab(t.maxWidth),i=ab(t.minHeight),s=ab(t.minWidth),a=ab(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const OWt=HE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function WWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const HWt=Symbol.for("vuetify:locale");function zWt(){const t=xo(HWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const ele=Symbol.for("vuetify:theme"),jWt=HE({theme:String},"theme");function KWt(t){UP("provideTheme");const e=xo(ele,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Ye(()=>t.theme??e.name.value),n=Ye(()=>e.themes.value[o.value]),r=Ye(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return or(ele,i),i}const UWt={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function qWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:U(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function tle(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>qP(e))}function qP(t){let e=[];if(!t)return e;const o=UWt[t];if(t!==o){if(t.includes(","))return ole(t);if(t.includes("@"))return tle(t);o.includes(",")?e=ole(o):o.includes("@")?e=tle(o):o&&e.push(qP(o))}return[qWt(t,e)]}function ole(t){return t.replace(/\s/g,"").split(",").map(qP)}const JWt=HE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...PWt(),...OWt(),...jWt()},"VSkeletonLoader");RWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:JWt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=VWt(()=>t.color),{dimensionStyles:s}=MWt(t),{elevationClasses:a}=WWt(t),{themeClasses:l}=KWt(t),{t:u}=zWt(),c=Q(()=>qP(pWt(t.type).join(",")));return AWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",pn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var zi="top",Fa="bottom",ka="right",ji="left",JP="auto",GS=[zi,Fa,ka,ji],MC="start",Mv="end",kLe="clippingParents",FG="viewport",Zb="popper",LLe="reference",W9=GS.reduce(function(t,e){return t.concat([e+"-"+MC,e+"-"+Mv])},[]),kG=[].concat(GS,[JP]).reduce(function(t,e){return t.concat([e,e+"-"+MC,e+"-"+Mv])},[]),ELe="beforeRead",_Le="read",BLe="afterRead",DLe="beforeMain",$Le="main",RLe="afterMain",ALe="beforeWrite",NLe="write",VLe="afterWrite",ILe=[ELe,_Le,BLe,DLe,$Le,RLe,ALe,NLe,VLe];function ed(t){return t?(t.nodeName||"").toLowerCase():null}function La(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function OC(t){var e=La(t).Element;return t instanceof e||t instanceof Element}function _l(t){var e=La(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function LG(t){if(typeof ShadowRoot>"u")return!1;var e=La(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function GWt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!_l(i)||!ed(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function YWt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!_l(r)||!ed(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const EG={name:"applyStyles",enabled:!0,phase:"write",fn:GWt,effect:YWt,requires:["computeStyles"]};function Ic(t){return t.split("-")[0]}var Ky=Math.max,u3=Math.min,Ov=Math.round;function H9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function PLe(){return!/^((?!chrome|android).)*safari/i.test(H9())}function Wv(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&_l(t)&&(r=t.offsetWidth>0&&Ov(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ov(n.height)/t.offsetHeight||1);var s=OC(t)?La(t):window,a=s.visualViewport,l=!PLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function _G(t){var e=Wv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function MLe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&LG(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function qm(t){return La(t).getComputedStyle(t)}function ZWt(t){return["table","td","th"].indexOf(ed(t))>=0}function Gf(t){return((OC(t)?t.ownerDocument:t.document)||window.document).documentElement}function GP(t){return ed(t)==="html"?t:t.assignedSlot||t.parentNode||(LG(t)?t.host:null)||Gf(t)}function nle(t){return!_l(t)||qm(t).position==="fixed"?null:t.offsetParent}function XWt(t){var e=/firefox/i.test(H9()),o=/Trident/i.test(H9());if(o&&_l(t)){var n=qm(t);if(n.position==="fixed")return null}var r=GP(t);for(LG(r)&&(r=r.host);_l(r)&&["html","body"].indexOf(ed(r))<0;){var i=qm(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function zE(t){for(var e=La(t),o=nle(t);o&&ZWt(o)&&qm(o).position==="static";)o=nle(o);return o&&(ed(o)==="html"||ed(o)==="body"&&qm(o).position==="static")?e:o||XWt(t)||e}function BG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function _F(t,e,o){return Ky(t,u3(e,o))}function QWt(t,e,o){var n=_F(t,e,o);return n>o?o:n}function OLe(){return{top:0,right:0,bottom:0,left:0}}function WLe(t){return Object.assign({},OLe(),t)}function HLe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var eHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,WLe(typeof t!="number"?t:HLe(t,GS))};function tHt(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=Ic(o.placement),l=BG(a),u=[ji,ka].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=eHt(r.padding,o),m=_G(i),h=l==="y"?zi:ji,p=l==="y"?Fa:ka,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=zE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,w=d[h],x=v-m[c]-d[p],F=v/2-m[c]/2+S,D=_F(w,F,x),N=l;o.modifiersData[n]=(e={},e[N]=D,e.centerOffset=D-F,e)}}function oHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||MLe(e.elements.popper,r)&&(e.elements.arrow=r))}const zLe={name:"arrow",enabled:!0,phase:"main",fn:tHt,effect:oHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hv(t){return t.split("-")[1]}var nHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Ov(o*r)/r||0,y:Ov(n*r)/r||0}}function rle(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,h=m===void 0?0:m,p=s.y,f=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:f}):{x:h,y:f};h=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=ji,w=zi,x=window;if(u){var F=zE(o),D="clientHeight",N="clientWidth";if(F===La(o)&&(F=Gf(o),qm(F).position!=="static"&&a==="absolute"&&(D="scrollHeight",N="scrollWidth")),F=F,r===zi||(r===ji||r===ka)&&i===Mv){w=Fa;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[D];f-=R-n.height,f*=l?1:-1}if(r===ji||(r===zi||r===Fa)&&i===Mv){S=ka;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];h-=P-n.width,h*=l?1:-1}}var E=Object.assign({position:a},u&&nHt),L=c===!0?rHt({x:h,y:f},La(o)):{x:h,y:f};if(h=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[w]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[w]=v?f+"px":"",e[S]=b?h+"px":"",e.transform="",e))}function iHt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:Ic(e.placement),variation:Hv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,rle(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,rle(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const DG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iHt,data:{}};var H2={passive:!0};function sHt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=La(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,H2)}),a&&l.addEventListener("resize",o.update,H2),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,H2)}),a&&l.removeEventListener("resize",o.update,H2)}}const $G={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sHt,data:{}};var aHt={left:"right",right:"left",bottom:"top",top:"bottom"};function r$(t){return t.replace(/left|right|bottom|top/g,function(e){return aHt[e]})}var lHt={start:"end",end:"start"};function ile(t){return t.replace(/start|end/g,function(e){return lHt[e]})}function RG(t){var e=La(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function AG(t){return Wv(Gf(t)).left+RG(t).scrollLeft}function uHt(t,e){var o=La(t),n=Gf(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=PLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+AG(t),y:l}}function cHt(t){var e,o=Gf(t),n=RG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Ky(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Ky(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+AG(t),l=-n.scrollTop;return qm(r||o).direction==="rtl"&&(a+=Ky(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function NG(t){var e=qm(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function jLe(t){return["html","body","#document"].indexOf(ed(t))>=0?t.ownerDocument.body:_l(t)&&NG(t)?t:jLe(GP(t))}function BF(t,e){var o;e===void 0&&(e=[]);var n=jLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=La(n),s=r?[i].concat(i.visualViewport||[],NG(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(BF(GP(s)))}function z9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function dHt(t,e){var o=Wv(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function sle(t,e,o){return e===FG?z9(uHt(t,o)):OC(e)?dHt(e,o):z9(cHt(Gf(t)))}function mHt(t){var e=BF(GP(t)),o=["absolute","fixed"].indexOf(qm(t).position)>=0,n=o&&_l(t)?zE(t):t;return OC(n)?e.filter(function(r){return OC(r)&&MLe(r,n)&&ed(r)!=="body"}):[]}function hHt(t,e,o,n){var r=e==="clippingParents"?mHt(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=sle(t,u,n);return l.top=Ky(c.top,l.top),l.right=u3(c.right,l.right),l.bottom=u3(c.bottom,l.bottom),l.left=Ky(c.left,l.left),l},sle(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function KLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Ic(n):null,i=n?Hv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case zi:l={x:s,y:e.y-o.height};break;case Fa:l={x:s,y:e.y+e.height};break;case ka:l={x:e.x+e.width,y:a};break;case ji:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?BG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case MC:l[u]=l[u]-(e[c]/2-o[c]/2);break;case Mv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function zv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?kLe:a,u=o.rootBoundary,c=u===void 0?FG:u,d=o.elementContext,m=d===void 0?Zb:d,h=o.altBoundary,p=h===void 0?!1:h,f=o.padding,g=f===void 0?0:f,b=WLe(typeof g!="number"?g:HLe(g,GS)),v=m===Zb?LLe:Zb,S=t.rects.popper,w=t.elements[p?v:m],x=hHt(OC(w)?w:w.contextElement||Gf(t.elements.popper),l,c,s),F=Wv(t.elements.reference),D=KLe({reference:F,element:S,placement:r}),N=z9(Object.assign({},S,D)),R=m===Zb?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===Zb&&E){var L=E[r];Object.keys(P).forEach(function(A){var V=[ka,Fa].indexOf(A)>=0?1:-1,W=[zi,Fa].indexOf(A)>=0?"y":"x";P[A]+=L[W]*V})}return P}function pHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?kG:l,c=Hv(n),d=c?a?W9:W9.filter(function(p){return Hv(p)===c}):GS,m=d.filter(function(p){return u.indexOf(p)>=0});m.length===0&&(m=d);var h=m.reduce(function(p,f){return p[f]=zv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Ic(f)],p},{});return Object.keys(h).sort(function(p,f){return h[p]-h[f]})}function fHt(t){if(Ic(t)===JP)return[];var e=r$(t);return[ile(t),e,ile(e)]}function gHt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,h=o.flipVariations,p=h===void 0?!0:h,f=o.allowedAutoPlacements,g=e.options.placement,b=Ic(g),v=b===g,S=l||(v||!p?[r$(g)]:fHt(g)),w=[g].concat(S).reduce(function(me,H){return me.concat(Ic(H)===JP?pHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,D=new Map,N=!0,R=w[0],P=0;P<w.length;P++){var E=w[P],L=Ic(E),A=Hv(E)===MC,V=[zi,Fa].indexOf(L)>=0,W=V?"width":"height",O=zv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=V?A?ka:ji:A?Fa:zi;x[W]>F[W]&&(K=r$(K));var fe=r$(K),Ne=[];if(i&&Ne.push(O[L]<=0),a&&Ne.push(O[K]<=0,O[fe]<=0),Ne.every(function(me){return me})){R=E,N=!1;break}D.set(E,Ne)}if(N)for(var ve=p?3:1,G=function(me){var H=w.find(function(be){var le=D.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Re=ve;Re>0;Re--){var q=G(Re);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const ULe={name:"flip",enabled:!0,phase:"main",fn:gHt,requiresIfExists:["offset"],data:{_skip:!1}};function ale(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function lle(t){return[zi,ka,Fa,ji].some(function(e){return t[e]>=0})}function yHt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=zv(e,{elementContext:"reference"}),a=zv(e,{altBoundary:!0}),l=ale(s,n),u=ale(a,r,i),c=lle(l),d=lle(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const qLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yHt};function CHt(t,e,o){var n=Ic(t),r=[ji,zi].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[ji,ka].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function bHt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=kG.reduce(function(c,d){return c[d]=CHt(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const JLe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bHt};function vHt(t){var e=t.state,o=t.name;e.modifiersData[o]=KLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const VG={name:"popperOffsets",enabled:!0,phase:"read",fn:vHt,data:{}};function SHt(t){return t==="x"?"y":"x"}function wHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,h=m===void 0?!0:m,p=o.tetherOffset,f=p===void 0?0:p,g=zv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Ic(e.placement),v=Hv(e.placement),S=!v,w=BG(b),x=SHt(w),F=e.modifiersData.popperOffsets,D=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,V=w==="y"?zi:ji,W=w==="y"?Fa:ka,O=w==="y"?"height":"width",K=F[w],fe=K+g[V],Ne=K-g[W],ve=h?-N[O]/2:0,G=v===MC?D[O]:N[O],Re=v===MC?-N[O]:-D[O],q=e.elements.arrow,me=h&&q?_G(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:OLe(),be=H[V],le=H[W],ue=_F(0,D[O],me[O]),At=S?D[O]/2-ve-ue-be-P.mainAxis:G-ue-be-P.mainAxis,Nt=S?-D[O]/2+ve+ue+le+P.mainAxis:Re+ue+le+P.mainAxis,Et=e.elements.arrow&&zE(e.elements.arrow),z=Et?w==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[w])!=null?A:0,ee=K+At-j-z,oe=K+Nt-j,re=_F(h?u3(fe,ee):fe,K,h?Ky(Ne,oe):Ne);F[w]=re,L[w]=re-K}if(a){var ie,de=w==="x"?zi:ji,pe=w==="x"?Fa:ka,te=F[x],ne=x==="y"?"height":"width",Ge=te+g[de],Te=te-g[pe],we=[zi,ji].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ae=we?Ge:te-D[ne]-N[ne]-xe+P.altAxis,Ce=we?te+D[ne]+N[ne]-xe-P.altAxis:Te,Qe=h&&we?QWt(Ae,te,Ce):_F(h?Ae:Ge,te,h?Ce:Te);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const GLe={name:"preventOverflow",enabled:!0,phase:"main",fn:wHt,requiresIfExists:["offset"]};function THt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xHt(t){return t===La(t)||!_l(t)?RG(t):THt(t)}function FHt(t){var e=t.getBoundingClientRect(),o=Ov(e.width)/t.offsetWidth||1,n=Ov(e.height)/t.offsetHeight||1;return o!==1||n!==1}function kHt(t,e,o){o===void 0&&(o=!1);var n=_l(e),r=_l(e)&&FHt(e),i=Gf(e),s=Wv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ed(e)!=="body"||NG(i))&&(a=xHt(e)),_l(e)?(l=Wv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=AG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function LHt(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function EHt(t){var e=LHt(t);return ILe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function _Ht(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function BHt(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var ule={placement:"bottom",modifiers:[],strategy:"absolute"};function cle(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function YP(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?ule:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ule,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:OC(s)?BF(s):s.contextElement?BF(s.contextElement):[],popper:BF(a)};var b=EHt(BHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),h(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(cle(g,b)){u.rects={reference:kHt(g,zE(b),u.options.strategy==="fixed"),popper:_G(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],w=S.fn,x=S.options,F=x===void 0?{}:x,D=S.name;typeof w=="function"&&(u=w({state:u,options:F,name:D,instance:m})||u)}}}},update:_Ht(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){p(),d=!0}};if(!cle(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function h(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var w=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(w||x)}})}function p(){c.forEach(function(f){return f()}),c=[]}return m}}var DHt=YP(),$Ht=[$G,VG,DG,EG],RHt=YP({defaultModifiers:$Ht}),AHt=[$G,VG,DG,EG,JLe,ULe,GLe,zLe,qLe],IG=YP({defaultModifiers:AHt});const YLe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:RLe,afterRead:BLe,afterWrite:VLe,applyStyles:EG,arrow:zLe,auto:JP,basePlacements:GS,beforeMain:DLe,beforeRead:ELe,beforeWrite:ALe,bottom:Fa,clippingParents:kLe,computeStyles:DG,createPopper:IG,createPopperBase:DHt,createPopperLite:RHt,detectOverflow:zv,end:Mv,eventListeners:$G,flip:ULe,hide:qLe,left:ji,main:$Le,modifierPhases:ILe,offset:JLe,placements:kG,popper:Zb,popperGenerator:YP,popperOffsets:VG,preventOverflow:GLe,read:_Le,reference:LLe,right:ka,start:MC,top:zi,variationPlacements:W9,viewport:FG,write:NLe},Symbol.toStringTag,{value:"Module"})),Oh=new Map,j4={set(t,e,o){Oh.has(t)||Oh.set(t,new Map);const n=Oh.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Oh.has(t)&&Oh.get(t).get(e)||null},remove(t,e){if(!Oh.has(t))return;const o=Oh.get(t);o.delete(e),o.size===0&&Oh.delete(t)}},NHt=1e6,VHt=1e3,j9="transitionend",ZLe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),IHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),PHt=t=>{do t+=Math.floor(Math.random()*NHt);while(document.getElementById(t));return t},MHt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*VHt)},XLe=t=>{t.dispatchEvent(new Event(j9))},wm=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Sf=t=>wm(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(ZLe(t)):null,YS=t=>{if(!wm(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},wf=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",QLe=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?QLe(t.parentNode):null},c3=()=>{},jE=t=>{t.offsetHeight},eEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,K4=[],OHt=t=>{document.readyState==="loading"?(K4.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of K4)e()}),K4.push(t)):t()},Ol=()=>document.documentElement.dir==="rtl",ou=t=>{OHt(()=>{const e=eEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},ks=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,tEe=(t,e,o=!0)=>{if(!o){ks(t);return}const n=MHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(j9,i),ks(t))};e.addEventListener(j9,i),setTimeout(()=>{r||XLe(e)},n)},PG=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},WHt=/[^.]*(?=\..*)\.|.*/,HHt=/\..*/,zHt=/::\d+$/,U4={};let dle=1;const oEe={mouseenter:"mouseover",mouseleave:"mouseout"},jHt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function nEe(t,e){return e&&`${e}::${dle++}`||t.uidEvent||dle++}function rEe(t){const e=nEe(t);return t.uidEvent=e,U4[e]=U4[e]||{},U4[e]}function KHt(t,e){return function o(n){return MG(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function UHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return MG(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function iEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function sEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=aEe(t);return jHt.has(i)||(i=t),[n,r,i]}function mle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=sEe(e,o,n);e in oEe&&(s=(h=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return h.call(this,p)})(s));const l=rEe(t),u=l[a]||(l[a]={}),c=iEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=nEe(s,e.replace(WHt,"")),m=i?UHt(t,o,s):KHt(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function K9(t,e,o,n,r){const i=iEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function qHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&K9(t,e,o,s.callable,s.delegationSelector)}function aEe(t){return t=t.replace(HHt,""),oEe[t]||t}const Ee={on(t,e,o,n){mle(t,e,o,n,!1)},one(t,e,o,n){mle(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=sEe(e,o,n),a=s!==e,l=rEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;K9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))qHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const h=d.replace(zHt,"");(!a||e.includes(h))&&K9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=eEe(),r=aEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=MG(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function MG(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function hle(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function q4(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Tm={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${q4(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${q4(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=hle(t.dataset[n])}return e},getDataAttribute(t,e){return hle(t.getAttribute(`data-bs-${q4(e)}`))}};let KE=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=wm(o)?Tm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...wm(o)?Tm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=wm(i)?"element":IHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const JHt="5.3.8";let qu=class extends KE{constructor(e,o){super(),e=Sf(e),e&&(this._element=e,this._config=this._getConfig(o),j4.set(this._element,this.constructor.DATA_KEY,this))}dispose(){j4.remove(this._element,this.constructor.DATA_KEY),Ee.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){tEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return j4.get(Sf(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return JHt}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}};const J4=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>ZLe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!wf(o)&&YS(o))},getSelectorFromElement(t){const e=J4(t);return e&&vt.findOne(e)?e:null},getElementFromSelector(t){const e=J4(t);return e?vt.findOne(e):null},getMultipleElementsFromSelector(t){const e=J4(t);return e?vt.find(e):[]}},ZP=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ee.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),wf(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},GHt="alert",YHt="bs.alert",lEe=`.${YHt}`,ZHt=`close${lEe}`,XHt=`closed${lEe}`,QHt="fade",e7t="show";let uEe=class cEe extends qu{static get NAME(){return GHt}close(){if(Ee.trigger(this._element,ZHt).defaultPrevented)return;this._element.classList.remove(e7t);const e=this._element.classList.contains(QHt);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,XHt),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=cEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(uEe,"close");ou(uEe);const t7t="button",o7t="bs.button",n7t=`.${o7t}`,r7t=".data-api",i7t="active",ple='[data-bs-toggle="button"]',s7t=`click${n7t}${r7t}`;let dEe=class mEe extends qu{static get NAME(){return t7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(i7t))}static jQueryInterface(e){return this.each(function(){const o=mEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,s7t,ple,t=>{t.preventDefault();const e=t.target.closest(ple);dEe.getOrCreateInstance(e).toggle()});ou(dEe);const a7t="swipe",ZS=".bs.swipe",l7t=`touchstart${ZS}`,u7t=`touchmove${ZS}`,c7t=`touchend${ZS}`,d7t=`pointerdown${ZS}`,m7t=`pointerup${ZS}`,h7t="touch",p7t="pen",f7t="pointer-event",g7t=40,y7t={endCallback:null,leftCallback:null,rightCallback:null},C7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let fle=class hEe extends KE{constructor(e,o){super(),this._element=e,!(!e||!hEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return y7t}static get DefaultType(){return C7t}static get NAME(){return a7t}dispose(){Ee.off(this._element,ZS)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),ks(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=g7t)return;const o=e/this._deltaX;this._deltaX=0,o&&ks(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,d7t,e=>this._start(e)),Ee.on(this._element,m7t,e=>this._end(e)),this._element.classList.add(f7t)):(Ee.on(this._element,l7t,e=>this._start(e)),Ee.on(this._element,u7t,e=>this._move(e)),Ee.on(this._element,c7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===p7t||e.pointerType===h7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const b7t="carousel",v7t="bs.carousel",Yf=`.${v7t}`,pEe=".data-api",S7t="ArrowLeft",w7t="ArrowRight",T7t=500,iT="next",ub="prev",Xb="left",i$="right",x7t=`slide${Yf}`,G4=`slid${Yf}`,F7t=`keydown${Yf}`,k7t=`mouseenter${Yf}`,L7t=`mouseleave${Yf}`,E7t=`dragstart${Yf}`,_7t=`load${Yf}${pEe}`,B7t=`click${Yf}${pEe}`,fEe="carousel",z2="active",D7t="slide",$7t="carousel-item-end",R7t="carousel-item-start",A7t="carousel-item-next",N7t="carousel-item-prev",gEe=".active",yEe=".carousel-item",V7t=gEe+yEe,I7t=".carousel-item img",P7t=".carousel-indicators",M7t="[data-bs-slide], [data-bs-slide-to]",O7t='[data-bs-ride="carousel"]',W7t={[S7t]:i$,[w7t]:Xb},H7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},z7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let OG=class CEe extends qu{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vt.findOne(P7t,this._element),this._addEventListeners(),this._config.ride===fEe&&this.cycle()}static get Default(){return H7t}static get DefaultType(){return z7t}static get NAME(){return b7t}next(){this._slide(iT)}nextWhenVisible(){!document.hidden&&YS(this._element)&&this.next()}prev(){this._slide(ub)}pause(){this._isSliding&&XLe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,G4,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ee.one(this._element,G4,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?iT:ub;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ee.on(this._element,F7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,k7t,()=>this.pause()),Ee.on(this._element,L7t,()=>this._maybeEnableCycle())),this._config.touch&&fle.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(I7t,this._element))Ee.on(o,E7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Xb)),rightCallback:()=>this._slide(this._directionToOrder(i$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),T7t+this._config.interval))}};this._swipeHelper=new fle(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=W7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(gEe,this._indicatorsElement);o.classList.remove(z2),o.removeAttribute("aria-current");const n=vt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(z2),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===iT,i=o||PG(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ee.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(x7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?R7t:$7t,c=r?A7t:N7t;i.classList.add(c),jE(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(z2),n.classList.remove(z2,c,u),this._isSliding=!1,a(G4)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(D7t)}_getActive(){return vt.findOne(V7t,this._element)}_getItems(){return vt.find(yEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ol()?e===Xb?ub:iT:e===Xb?iT:ub}_orderToDirection(e){return Ol()?e===ub?Xb:i$:e===ub?i$:Xb}static jQueryInterface(e){return this.each(function(){const o=CEe.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,B7t,M7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(fEe))return;t.preventDefault();const o=OG.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Tm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,_7t,()=>{const t=vt.find(O7t);for(const e of t)OG.getOrCreateInstance(e)});ou(OG);const j7t="collapse",K7t="bs.collapse",UE=`.${K7t}`,U7t=".data-api",q7t=`show${UE}`,J7t=`shown${UE}`,G7t=`hide${UE}`,Y7t=`hidden${UE}`,Z7t=`click${UE}${U7t}`,Y4="show",I1="collapse",j2="collapsing",X7t="collapsed",Q7t=`:scope .${I1} .${I1}`,e8t="collapse-horizontal",t8t="width",o8t="height",n8t=".collapse.show, .collapse.collapsing",U9='[data-bs-toggle="collapse"]',r8t={parent:null,toggle:!0},i8t={parent:"(null|element)",toggle:"boolean"};let bEe=class q9 extends qu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(U9);for(const r of n){const i=vt.getSelectorFromElement(r),s=vt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return r8t}static get DefaultType(){return i8t}static get NAME(){return j7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(n8t).filter(i=>i!==this._element).map(i=>q9.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,q7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(I1),this._element.classList.add(j2),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(j2),this._element.classList.add(I1,Y4),this._element.style[o]="",Ee.trigger(this._element,J7t)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ee.trigger(this._element,G7t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,jE(this._element),this._element.classList.add(j2),this._element.classList.remove(I1,Y4);for(const n of this._triggerArray){const r=vt.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(j2),this._element.classList.add(I1),Ee.trigger(this._element,Y7t)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Y4)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Sf(e.parent),e}_getDimension(){return this._element.classList.contains(e8t)?t8t:o8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(U9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(Q7t,this._config.parent);return vt.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(X7t,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=q9.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,Z7t,U9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))bEe.getOrCreateInstance(e,{toggle:!1}).toggle()});ou(bEe);const gle="dropdown",s8t="bs.dropdown",g0=`.${s8t}`,WG=".data-api",a8t="Escape",yle="Tab",l8t="ArrowUp",Cle="ArrowDown",u8t=2,c8t=`hide${g0}`,d8t=`hidden${g0}`,m8t=`show${g0}`,h8t=`shown${g0}`,vEe=`click${g0}${WG}`,SEe=`keydown${g0}${WG}`,p8t=`keyup${g0}${WG}`,Qb="show",f8t="dropup",g8t="dropend",y8t="dropstart",C8t="dropup-center",b8t="dropdown-center",ly='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',v8t=`${ly}.${Qb}`,s$=".dropdown-menu",S8t=".navbar",w8t=".navbar-nav",T8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",x8t=Ol()?"top-end":"top-start",F8t=Ol()?"top-start":"top-end",k8t=Ol()?"bottom-end":"bottom-start",L8t=Ol()?"bottom-start":"bottom-end",E8t=Ol()?"left-start":"right-start",_8t=Ol()?"right-start":"left-start",B8t="top",D8t="bottom",$8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},R8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let XS=class a$ extends qu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,s$)[0]||vt.prev(this._element,s$)[0]||vt.findOne(s$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $8t}static get DefaultType(){return R8t}static get NAME(){return gle}toggle(){return this._isShown()?this.hide():this.show()}show(){if(wf(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,m8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(w8t))for(const o of[].concat(...document.body.children))Ee.on(o,"mouseover",c3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Qb),this._element.classList.add(Qb),Ee.trigger(this._element,h8t,e)}}hide(){if(wf(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ee.trigger(this._element,c8t,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",c3);this._popper&&this._popper.destroy(),this._menu.classList.remove(Qb),this._element.classList.remove(Qb),this._element.setAttribute("aria-expanded","false"),Tm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,d8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!wm(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${gle.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof YLe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:wm(this._config.reference)?e=Sf(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=IG(e,this._menu,o)}_isShown(){return this._menu.classList.contains(Qb)}_getPlacement(){const e=this._parent;if(e.classList.contains(g8t))return E8t;if(e.classList.contains(y8t))return _8t;if(e.classList.contains(C8t))return B8t;if(e.classList.contains(b8t))return D8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(f8t)?o?F8t:x8t:o?L8t:k8t}_detectNavbar(){return this._element.closest(S8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Tm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...ks(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(T8t,this._menu).filter(r=>YS(r));n.length&&PG(n,o,e===Cle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=a$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===u8t||e.type==="keyup"&&e.key!==yle)return;const o=vt.find(v8t);for(const n of o){const r=a$.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===yle||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===a8t,r=[l8t,Cle].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(ly)?this:vt.prev(this,ly)[0]||vt.next(this,ly)[0]||vt.findOne(ly,e.delegateTarget.parentNode),s=a$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,SEe,ly,XS.dataApiKeydownHandler);Ee.on(document,SEe,s$,XS.dataApiKeydownHandler);Ee.on(document,vEe,XS.clearMenus);Ee.on(document,p8t,XS.clearMenus);Ee.on(document,vEe,ly,function(t){t.preventDefault(),XS.getOrCreateInstance(this).toggle()});ou(XS);const wEe="backdrop",A8t="fade",ble="show",vle=`mousedown.bs.${wEe}`,N8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},V8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let TEe=class extends KE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return N8t}static get DefaultType(){return V8t}static get NAME(){return wEe}show(e){if(!this._config.isVisible){ks(e);return}this._append();const o=this._getElement();this._config.isAnimated&&jE(o),o.classList.add(ble),this._emulateAnimation(()=>{ks(e)})}hide(e){if(!this._config.isVisible){ks(e);return}this._getElement().classList.remove(ble),this._emulateAnimation(()=>{this.dispose(),ks(e)})}dispose(){this._isAppended&&(Ee.off(this._element,vle),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(A8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Sf(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,vle,()=>{ks(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){tEe(e,this._getElement(),this._config.isAnimated)}};const I8t="focustrap",P8t="bs.focustrap",d3=`.${P8t}`,M8t=`focusin${d3}`,O8t=`keydown.tab${d3}`,W8t="Tab",H8t="forward",Sle="backward",z8t={autofocus:!0,trapElement:null},j8t={autofocus:"boolean",trapElement:"element"};let xEe=class extends KE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return z8t}static get DefaultType(){return j8t}static get NAME(){return I8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,d3),Ee.on(document,M8t,e=>this._handleFocusin(e)),Ee.on(document,O8t,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ee.off(document,d3))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=vt.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===Sle?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===W8t&&(this._lastTabNavDirection=e.shiftKey?Sle:H8t)}};const wle=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Tle=".sticky-top",K2="padding-right",xle="margin-right";let J9=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,K2,o=>o+e),this._setElementAttributes(wle,K2,o=>o+e),this._setElementAttributes(Tle,xle,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,K2),this._resetElementAttributes(wle,K2),this._resetElementAttributes(Tle,xle)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&Tm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Tm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Tm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(wm(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const K8t="modal",U8t="bs.modal",Wl=`.${U8t}`,q8t=".data-api",J8t="Escape",G8t=`hide${Wl}`,Y8t=`hidePrevented${Wl}`,FEe=`hidden${Wl}`,kEe=`show${Wl}`,Z8t=`shown${Wl}`,X8t=`resize${Wl}`,Q8t=`click.dismiss${Wl}`,e9t=`mousedown.dismiss${Wl}`,t9t=`keydown.dismiss${Wl}`,o9t=`click${Wl}${q8t}`,Fle="modal-open",n9t="fade",kle="show",Z4="modal-static",r9t=".modal.show",i9t=".modal-dialog",s9t=".modal-body",a9t='[data-bs-toggle="modal"]',l9t={backdrop:!0,focus:!0,keyboard:!0},u9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let m3=class LEe extends qu{constructor(e,o){super(e,o),this._dialog=vt.findOne(i9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new J9,this._addEventListeners()}static get Default(){return l9t}static get DefaultType(){return u9t}static get NAME(){return K8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,kEe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Fle),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,G8t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(kle),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Wl),Ee.off(this._dialog,Wl),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new TEe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new xEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(s9t,this._dialog);o&&(o.scrollTop=0),jE(this._element),this._element.classList.add(kle);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,Z8t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,t9t,e=>{if(e.key===J8t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,X8t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,e9t,e=>{Ee.one(this._element,Q8t,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Fle),this._resetAdjustments(),this._scrollBar.reset(),Ee.trigger(this._element,FEe)})}_isAnimated(){return this._element.classList.contains(n9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,Y8t).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Z4)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Z4),this._queueCallback(()=>{this._element.classList.remove(Z4),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=Ol()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=Ol()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=LEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,o9t,a9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,kEe,n=>{n.defaultPrevented||Ee.one(e,FEe,()=>{YS(this)&&this.focus()})});const o=vt.findOne(r9t);o&&m3.getInstance(o).hide(),m3.getOrCreateInstance(e).toggle(this)});ZP(m3);ou(m3);const c9t="offcanvas",d9t="bs.offcanvas",ph=`.${d9t}`,EEe=".data-api",m9t=`load${ph}${EEe}`,h9t="Escape",Lle="show",Ele="showing",_le="hiding",p9t="offcanvas-backdrop",_Ee=".offcanvas.show",f9t=`show${ph}`,g9t=`shown${ph}`,y9t=`hide${ph}`,Ble=`hidePrevented${ph}`,BEe=`hidden${ph}`,C9t=`resize${ph}`,b9t=`click${ph}${EEe}`,v9t=`keydown.dismiss${ph}`,S9t='[data-bs-toggle="offcanvas"]',w9t={backdrop:!0,keyboard:!0,scroll:!1},T9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let jv=class DEe extends qu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return w9t}static get DefaultType(){return T9t}static get NAME(){return c9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,f9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new J9().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ele);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Lle),this._element.classList.remove(Ele),Ee.trigger(this._element,g9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,y9t).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(_le),this._backdrop.hide();const e=()=>{this._element.classList.remove(Lle,_le),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new J9().reset(),Ee.trigger(this._element,BEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Ble);return}this.hide()},o=!!this._config.backdrop;return new TEe({className:p9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new xEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,v9t,e=>{if(e.key===h9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Ble)}})}static jQueryInterface(e){return this.each(function(){const o=DEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,b9t,S9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),wf(this))return;Ee.one(e,BEe,()=>{YS(this)&&this.focus()});const o=vt.findOne(_Ee);o&&o!==e&&jv.getInstance(o).hide(),jv.getOrCreateInstance(e).toggle(this)});Ee.on(window,m9t,()=>{for(const t of vt.find(_Ee))jv.getOrCreateInstance(t).show()});Ee.on(window,C9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&jv.getOrCreateInstance(t).hide()});ZP(jv);ou(jv);const x9t=/^aria-[\w-]*$/i,$Ee={"*":["class","dir","id","lang","role",x9t],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},F9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),k9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,L9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?F9t.has(o)?!!k9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function E9t(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)L9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const _9t="TemplateFactory",B9t={allowList:$Ee,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},D9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},$9t={entry:"(string|element|function|null)",selector:"(string|element)"};let R9t=class extends KE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return B9t}static get DefaultType(){return D9t}static get NAME(){return _9t}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},$9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(wm(o)){this._putElementInTemplate(Sf(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?E9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return ks(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const A9t="tooltip",N9t=new Set(["sanitize","allowList","sanitizeFn"]),X4="fade",V9t="modal",U2="show",I9t=".tooltip-inner",Dle=`.${V9t}`,$le="hide.bs.modal",sT="hover",Q4="focus",e5="click",P9t="manual",M9t="hide",O9t="hidden",W9t="show",H9t="shown",z9t="inserted",j9t="click",K9t="focusin",U9t="focusout",q9t="mouseenter",J9t="mouseleave",G9t={AUTO:"auto",TOP:"top",RIGHT:Ol()?"left":"right",BOTTOM:"bottom",LEFT:Ol()?"right":"left"},Y9t={allowList:$Ee,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Z9t={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let XP=class REe extends qu{constructor(e,o){if(typeof YLe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Y9t}static get DefaultType(){return Z9t}static get NAME(){return A9t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ee.off(this._element.closest(Dle),$le,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ee.trigger(this._element,this.constructor.eventName(W9t)),o=(QLe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(z9t))),this._popper=this._createPopper(n),n.classList.add(U2),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ee.on(s,"mouseover",c3);const i=()=>{Ee.trigger(this._element,this.constructor.eventName(H9t)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ee.trigger(this._element,this.constructor.eventName(M9t)).defaultPrevented)return;if(this._getTipElement().classList.remove(U2),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",c3);this._activeTrigger[e5]=!1,this._activeTrigger[Q4]=!1,this._activeTrigger[sT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(O9t)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(X4,U2),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=PHt(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(X4),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new R9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[I9t]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(X4)}_isShown(){return this.tip&&this.tip.classList.contains(U2)}_createPopper(e){const o=ks(this._config.placement,[this,e,this._element]),n=G9t[o.toUpperCase()];return IG(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return ks(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...ks(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ee.on(this._element,this.constructor.eventName(j9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[e5]=!(r._isShown()&&r._activeTrigger[e5]),r.toggle()});else if(o!==P9t){const n=o===sT?this.constructor.eventName(q9t):this.constructor.eventName(K9t),r=o===sT?this.constructor.eventName(J9t):this.constructor.eventName(U9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Q4:sT]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Q4:sT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ee.on(this._element.closest(Dle),$le,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=Tm.getDataAttributes(this._element);for(const n of Object.keys(o))N9t.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Sf(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=REe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};ou(XP);const X9t="popover",Q9t=".popover-header",ezt=".popover-body",tzt={...XP.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ozt={...XP.DefaultType,content:"(null|string|element|function)"};let nzt=class AEe extends XP{static get Default(){return tzt}static get DefaultType(){return ozt}static get NAME(){return X9t}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Q9t]:this._getTitle(),[ezt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=AEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};ou(nzt);const rzt="scrollspy",izt="bs.scrollspy",HG=`.${izt}`,szt=".data-api",azt=`activate${HG}`,Rle=`click${HG}`,lzt=`load${HG}${szt}`,uzt="dropdown-item",cb="active",czt='[data-bs-spy="scroll"]',t5="[href]",dzt=".nav, .list-group",Ale=".nav-link",mzt=".nav-item",hzt=".list-group-item",pzt=`${Ale}, ${mzt} > ${Ale}, ${hzt}`,fzt=".dropdown",gzt=".dropdown-toggle",yzt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Czt={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let NEe=class VEe extends qu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return yzt}static get DefaultType(){return Czt}static get NAME(){return rzt}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Sf(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ee.off(this._config.target,Rle),Ee.on(this._config.target,Rle,t5,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vt.find(t5,this._config.target);for(const o of e){if(!o.hash||wf(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);YS(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(cb),this._activateParents(e),Ee.trigger(this._element,azt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(uzt)){vt.findOne(gzt,e.closest(fzt)).classList.add(cb);return}for(const o of vt.parents(e,dzt))for(const n of vt.prev(o,pzt))n.classList.add(cb)}_clearActiveClass(e){e.classList.remove(cb);const o=vt.find(`${t5}.${cb}`,e);for(const n of o)n.classList.remove(cb)}static jQueryInterface(e){return this.each(function(){const o=VEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,lzt,()=>{for(const t of vt.find(czt))NEe.getOrCreateInstance(t)});ou(NEe);const bzt="tab",vzt="bs.tab",y0=`.${vzt}`,Szt=`hide${y0}`,wzt=`hidden${y0}`,Tzt=`show${y0}`,xzt=`shown${y0}`,Fzt=`click${y0}`,kzt=`keydown${y0}`,Lzt=`load${y0}`,Ezt="ArrowLeft",Nle="ArrowRight",_zt="ArrowUp",Vle="ArrowDown",o5="Home",Ile="End",uy="active",Ple="fade",n5="show",Bzt="dropdown",IEe=".dropdown-toggle",Dzt=".dropdown-menu",r5=`:not(${IEe})`,$zt='.list-group, .nav, [role="tablist"]',Rzt=".nav-item, .list-group-item",Azt=`.nav-link${r5}, .list-group-item${r5}, [role="tab"]${r5}`,PEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',i5=`${Azt}, ${PEe}`,Nzt=`.${uy}[data-bs-toggle="tab"], .${uy}[data-bs-toggle="pill"], .${uy}[data-bs-toggle="list"]`;let zG=class G9 extends qu{constructor(e){super(e),this._parent=this._element.closest($zt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,kzt,o=>this._keydown(o)))}static get NAME(){return bzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,Szt,{relatedTarget:e}):null;Ee.trigger(e,Tzt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(uy),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(n5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,xzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Ple))}_deactivate(e,o){if(!e)return;e.classList.remove(uy),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(n5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,wzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Ple))}_keydown(e){if(![Ezt,Nle,_zt,Vle,o5,Ile].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!wf(r));let n;if([o5,Ile].includes(e.key))n=o[e.key===o5?0:o.length-1];else{const r=[Nle,Vle].includes(e.key);n=PG(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),G9.getOrCreateInstance(n).show())}_getChildren(){return vt.find(i5,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=vt.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(Bzt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(IEe,uy),r(Dzt,n5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(uy)}_getInnerElement(e){return e.matches(i5)?e:vt.findOne(i5,e)}_getOuterElement(e){return e.closest(Rzt)||e}static jQueryInterface(e){return this.each(function(){const o=G9.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,Fzt,PEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!wf(this)&&zG.getOrCreateInstance(this).show()});Ee.on(window,Lzt,()=>{for(const t of vt.find(Nzt))zG.getOrCreateInstance(t)});ou(zG);const Vzt="toast",Izt="bs.toast",Zf=`.${Izt}`,Pzt=`mouseover${Zf}`,Mzt=`mouseout${Zf}`,Ozt=`focusin${Zf}`,Wzt=`focusout${Zf}`,Hzt=`hide${Zf}`,zzt=`hidden${Zf}`,jzt=`show${Zf}`,Kzt=`shown${Zf}`,Uzt="fade",Mle="hide",q2="show",J2="showing",qzt={animation:"boolean",autohide:"boolean",delay:"number"},Jzt={animation:!0,autohide:!0,delay:5e3};let MEe=class OEe extends qu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Jzt}static get DefaultType(){return qzt}static get NAME(){return Vzt}show(){if(Ee.trigger(this._element,jzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Uzt);const e=()=>{this._element.classList.remove(J2),Ee.trigger(this._element,Kzt),this._maybeScheduleHide()};this._element.classList.remove(Mle),jE(this._element),this._element.classList.add(q2,J2),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ee.trigger(this._element,Hzt).defaultPrevented)return;const e=()=>{this._element.classList.add(Mle),this._element.classList.remove(J2,q2),Ee.trigger(this._element,zzt)};this._element.classList.add(J2),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(q2),super.dispose()}isShown(){return this._element.classList.contains(q2)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ee.on(this._element,Pzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Mzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,Ozt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Wzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(MEe);ou(MEe);const QP=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),Gzt=t=>{throw new Error("Didn't expect to get here"+t)},Yzt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];hh.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});hh.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});hh.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});hh.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});hh.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});hh.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});hh.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return Yzt.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const Zzt=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});hd.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",xa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[z4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new Hn({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&Zzt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const WEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),Xzt=t=>QP(t),Qzt=t=>QP(t),ejt=t=>QP(t),tjt=t=>QP(t),ojt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n===r),njt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n<r),rjt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n>r),ijt=t=>{const e=ojt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=rjt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=njt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>tjt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},sjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Right,context:o})]).then(([n,r])=>n===r),ajt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:o})]).then(([n,r])=>n.includes(r)),ljt=t=>{const e=sjt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=ajt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>ejt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},ujt=t=>{const e=ijt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=ljt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>Qzt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},cjt=t=>{const e=ujt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>Xzt(n).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await o({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return o},djt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),mjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),hjt=t=>{const e="https://cdn.retailrocket.net/api/1.0/partner";return async({context:o,expression:n})=>t.numberExpressionEvaluator({numberExpression:n.ProductId,context:o}).then(r=>t.productImageResizerUrl?t.productImageResizerUrl:e+"/"+t.partnerId+"/item/"+r+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both")},pjt=t=>({localeKey:t.localeKey}),fjt=t=>({localeKey:t.localeKey}),gjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:fjt({localeKey:t.localeKey})}),yjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:pjt({localeKey:t.localeKey}),saveTemplateButtonDeps:gjt({localeKey:t.localeKey})}),Cjt=t=>({localeKey:t.localeKey}),bjt=t=>({localeKey:t.localeKey}),vjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:bjt({localeKey:t.localeKey})}),Sjt=t=>({exportMenuDeps:yjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:Cjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:vjt({localeKey:t.localeKey})}),wjt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),Tjt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>wjt(e))}),xjt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>Tjt(e)),Fjt=t=>async e=>(await t.postCreateThemeLibrarySectionItem({body:{partnerId:t.partnerId,parentSectionId:e.parentSectionId,sectionItemName:e.sectionItemName,theme:{json:JSON.stringify(e.theme)}}})).status===200?"Success":"Fail",kjt=t=>({sectionId:t.sectionId,sectionName:t.sectionName}),HEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>kjt(e)),Ljt=t=>({localeKey:t.localeKey,addThemeSectionItem:Fjt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:HEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Ejt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},_jt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:Ejt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),Bjt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Djt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Bjt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:HEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),$jt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:_jt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Djt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Rjt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Ajt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Rjt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Njt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Ajt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Vjt=t=>({localeKey:t.localeKey,themeSectionItemDeps:$jt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Njt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Ijt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},Pjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:Ijt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),Mjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),zEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:Mjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:Ljt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Vjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:Pjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),Ojt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:zEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),Wjt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Hjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:Wjt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),zjt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},jEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),jjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:zjt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:jEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Kjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:Hjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:jjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Ujt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",qjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Ujt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),Jjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:qjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Gjt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Kjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:Jjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Yjt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},Zjt=t=>({localeKey:t.localeKey,createComponentLibrarySection:Yjt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),Xjt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:Zjt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:Gjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Qjt=t=>({emailComponentDeps:t.emailComponentDeps}),eKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Qjt({emailComponentDeps:t.emailComponentDeps})}),tKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:eKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),oKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:Xjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:tKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),nKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:zEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:Ojt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),componentLibraryDeps:oKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),rKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},iKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:rKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:jEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),sKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),aKt=t=>({localeKey:t.localeKey}),lKt=t=>({movementMenuDeps:sKt({localeKey:t.localeKey}),draggingMenuDeps:aKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:iKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),uKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:lKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),cKt=t=>({localeKey:t.localeKey}),dKt=t=>({localeKey:t.localeKey}),mKt=t=>({localeKey:t.localeKey}),hKt=t=>({localeKey:t.localeKey}),pKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:hKt({localeKey:t.localeKey})}),jG=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:mKt({localeKey:t.localeKey}),customFontSettingsDeps:pKt({localeKey:t.localeKey})}),fKt=t=>({removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey}),truncateSpanEditorDeps:dKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:jG({localeKey:t.localeKey})}),gKt=t=>({localeKey:t.localeKey}),KEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:gKt({localeKey:t.localeKey})}),yKt=t=>({localeKey:t.localeKey,borderEditorDeps:KEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),KG=t=>({localeKey:t.localeKey}),CKt=t=>({localeKey:t.localeKey,borderEditorDeps:KEe({localeKey:t.localeKey}),colorEditorDeps:KG({localeKey:t.localeKey}),fontStyleEditorDeps:jG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),bKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey}),fontStyleEditorDeps:jG({localeKey:t.localeKey})}),vKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),SKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey}),colorEditorDeps:KG({localeKey:t.localeKey})}),wKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),TKt=t=>({spanEditorDeps:fKt({localeKey:t.localeKey}),imageEditorDeps:yKt({localeKey:t.localeKey}),buttonEditorDeps:CKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:bKt({localeKey:t.localeKey}),backgroundImageEditorDeps:vKt({localeKey:t.localeKey}),spacerEditorDeps:SKt({localeKey:t.localeKey}),richTextEditorDeps:wKt({localeKey:t.localeKey})}),xKt=t=>({localeKey:t.localeKey,colorEditorDeps:KG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),FKt=t=>{const e=cjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=qIt({localeKey:t.localeKey,elementsDeps:yPt({localeKey:t.localeKey,richTextToolbarPlugins:t.richTextToolbarPlugins,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin,expressionEvaluator:t.expressionEvaluator,listExpressionEvaluator:t.listExpressionEvaluator,numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator,boolExpressionEvaluator:e,dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),listExpressionEvaluator:t.listExpressionEvaluator,dataStructExpressionEvaluator:t.dataStructExpressionEvaluator,boolExpressionEvaluator:e});return{topMenuDeps:Sjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:xjt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:nKt({localeKey:t.localeKey,partnerId:t.partnerId,exitLink:t.exitLink,emailComponentDeps:o,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary,defaultComponentLibrary:t.defaultComponentLibrary}),emailTemplateDeps:uKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,emailComponentDeps:o,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient}),emptyEditorDeps:cKt({localeKey:t.localeKey}),elementsEditorDeps:TKt({localeKey:t.localeKey}),emailComponentEditorDeps:xKt({localeKey:t.localeKey}),template:t.template}},Xf=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,kKt=t=>({localeKey:t.localeKey,getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),LKt=t=>({localeKey:t.localeKey,getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),EKt=t=>({localeKey:t.localeKey,getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),_Kt=t=>({localeKey:t.localeKey,getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),UEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),UG=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:Gzt(t.stockSource)}},BKt=t=>async(e,o)=>{const n=UG({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>UEe(r))},DKt=t=>({localeKey:t.localeKey}),$Kt=t=>({selectedProductListItemDeps:DKt({localeKey:t.localeKey})}),RKt=t=>({localeKey:t.localeKey}),AKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:$Kt({localeKey:t.localeKey}),emptyProductListDeps:RKt({localeKey:t.localeKey})}),NKt=t=>({localeKey:t.localeKey}),VKt=t=>({localeKey:t.localeKey}),IKt=t=>({localeKey:t.localeKey}),PKt=t=>({searchedProductListItemDeps:VKt({localeKey:t.localeKey}),emptySearchProductListDeps:IKt({localeKey:t.localeKey})}),MKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:NKt({localeKey:t.localeKey}),searchedProductListDeps:PKt({localeKey:t.localeKey})}),OKt=t=>async(e,o)=>{const n=UG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>UEe(r))},WKt=t=>{const e=OKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=BKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:AKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:MKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},HKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),zKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},qEe=t=>async e=>(await zKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>HKt(o)),jKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),KKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},UKt=t=>async e=>(await KKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>jKt(o)),qKt=t=>({localeKey:t.localeKey}),JKt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:qKt({localeKey:t.localeKey})}),GKt=t=>({localeKey:t.localeKey}),YKt=t=>({localeKey:t.localeKey}),ZKt=t=>({emptySearchCategoryListDeps:YKt({localeKey:t.localeKey})}),XKt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:GKt({localeKey:t.localeKey}),searchedCategoryListDeps:ZKt({localeKey:t.localeKey})}),JEe=t=>{const e={},o=qEe({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=UKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:JKt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:XKt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},QKt=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),qG=t=>async(e,o)=>{const n=UG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>QKt(r))},eUt=t=>({localeKey:t.localeKey,getProductsByIDs:qG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),tUt=t=>({localeKey:t.localeKey,getProductsByIDs:qG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),oUt=t=>({localeKey:t.localeKey,getProductsByIDs:qG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),nUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:qEe({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:JEe({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),GEe=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),C0=t=>WEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:GEe(t.parameters),DiscountPercentage:t.discountPercentage}),rUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>C0(e));var iUt=typeof global=="object"&&global&&global.Object===Object&&global,sUt=typeof self=="object"&&self&&self.Object===Object&&self,aUt=iUt||sUt||Function("return this")(),h3=aUt.Symbol;h3&&h3.toStringTag;h3&&h3.toStringTag;const{entries:YEe,setPrototypeOf:Ole,isFrozen:lUt,getPrototypeOf:uUt,getOwnPropertyDescriptor:cUt}=Object;let{freeze:as,seal:Hl,create:Y9}=Object,{apply:Z9,construct:X9}=typeof Reflect<"u"&&Reflect;as||(as=function(t){return t});Hl||(Hl=function(t){return t});Z9||(Z9=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return t.apply(e,n)});X9||(X9=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});const G2=ls(Array.prototype.forEach),dUt=ls(Array.prototype.lastIndexOf),Wle=ls(Array.prototype.pop),aT=ls(Array.prototype.push),mUt=ls(Array.prototype.splice),l$=ls(String.prototype.toLowerCase),s5=ls(String.prototype.toString),a5=ls(String.prototype.match),lT=ls(String.prototype.replace),hUt=ls(String.prototype.indexOf),pUt=ls(String.prototype.trim),bu=ls(Object.prototype.hasOwnProperty),wi=ls(RegExp.prototype.test),uT=fUt(TypeError);function ls(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return Z9(t,e,n)}}function fUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return X9(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l$;Ole&&Ole(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(lUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function gUt(t){for(let e=0;e<t.length;e++)bu(t,e)||(t[e]=null);return t}function lc(t){const e=Y9(null);for(const[o,n]of YEe(t))bu(t,o)&&(Array.isArray(n)?e[o]=gUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=lc(n):e[o]=n);return e}function cT(t,e){for(;t!==null;){const n=cUt(t,e);if(n){if(n.get)return ls(n.get);if(typeof n.value=="function")return ls(n.value)}t=uUt(t)}function o(){return null}return o}const Hle=as(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),l5=as(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),u5=as(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yUt=as(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),c5=as(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),CUt=as(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zle=as(["#text"]),jle=as(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),d5=as(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Kle=as(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y2=as(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bUt=Hl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vUt=Hl(/<%[\w\W]*|[\w\W]*%>/gm),SUt=Hl(/\$\{[\w\W]*/gm),wUt=Hl(/^data-[\-\w.\u00B7-\uFFFF]+$/),TUt=Hl(/^aria-[\-\w]+$/),ZEe=Hl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xUt=Hl(/^(?:\w+script|data):/i),FUt=Hl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),XEe=Hl(/^html$/i),kUt=Hl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ule=Object.freeze({__proto__:null,ARIA_ATTR:TUt,ATTR_WHITESPACE:FUt,CUSTOM_ELEMENT:kUt,DATA_ATTR:wUt,DOCTYPE_NAME:XEe,ERB_EXPR:vUt,IS_ALLOWED_URI:ZEe,IS_SCRIPT_OR_DATA:xUt,MUSTACHE_EXPR:bUt,TMPLIT_EXPR:SUt});const dT={element:1,text:3,progressingInstruction:7,comment:8,document:9},LUt=function(){return typeof window>"u"?null:window},EUt=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},qle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function QEe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LUt();const e=C=>QEe(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==dT.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:h}=t,p=l.prototype,f=cT(p,"cloneNode"),g=cT(p,"remove"),b=cT(p,"nextSibling"),v=cT(p,"childNodes"),S=cT(p,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let w,x="";const{implementation:F,createNodeIterator:D,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=qle();e.isSupported=typeof YEe=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:V,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ne}=Ule;let{IS_ALLOWED_URI:ve}=Ule,G=null;const Re=oo({},[...Hle,...l5,...u5,...c5,...zle]);let q=null;const me=oo({},[...jle,...d5,...Kle,...Y2]);let H=Object.seal(Y9(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,le=null;const ue=Object.seal(Y9(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let At=!0,Nt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,pe=!1,te=!1,ne=!0,Ge=!1;const Te="user-content-";let we=!0,xe=!1,Ae={},Ce=null;const Qe=oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const ko=oo({},["audio","video","img","source","image","track"]);let Co=null;const No=oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),go="http://www.w3.org/1998/Math/MathML",Lo="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let kt=tt,Uo=!1,qo=null;const au=oo({},[go,Lo,tt],s5);let $o=oo({},["mi","mo","mn","ms","mtext"]),Ro=oo({},["annotation-xml"]);const lu=oo({},["title","style","font","a","script"]);let yo=null;const uu=["application/xhtml+xml","text/html"],cu="text/html";let ge=null,jt=null;const du=o.createElement("form"),Rr=function(C){return C instanceof RegExp||C instanceof Function},yn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===C)){if((!C||typeof C!="object")&&(C={}),C=lc(C),yo=uu.indexOf(C.PARSER_MEDIA_TYPE)===-1?cu:C.PARSER_MEDIA_TYPE,ge=yo==="application/xhtml+xml"?s5:l$,G=bu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Re,q=bu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=bu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,s5):au,Co=bu(C,"ADD_URI_SAFE_ATTR")?oo(lc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=bu(C,"ADD_DATA_URI_TAGS")?oo(lc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=bu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=bu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):lc({}),le=bu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):lc({}),Ae=bu(C,"USE_PROFILES")?C.USE_PROFILES:!1,At=C.ALLOW_ARIA_ATTR!==!1,Nt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,pe=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Ge=C.SANITIZE_NAMED_PROPS||!1,we=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,ve=C.ALLOWED_URI_REGEXP||ZEe,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Rr(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Rr(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(Nt=!1),pe&&(de=!0),Ae&&(G=oo({},zle),q=[],Ae.html===!0&&(oo(G,Hle),oo(q,jle)),Ae.svg===!0&&(oo(G,l5),oo(q,d5),oo(q,Y2)),Ae.svgFilters===!0&&(oo(G,u5),oo(q,d5),oo(q,Y2)),Ae.mathMl===!0&&(oo(G,c5),oo(q,Kle),oo(q,Y2))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ue.tagCheck=C.ADD_TAGS:(G===Re&&(G=lc(G)),oo(G,C.ADD_TAGS,ge))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ue.attributeCheck=C.ADD_ATTR:(q===me&&(q=lc(q)),oo(q,C.ADD_ATTR,ge))),C.ADD_URI_SAFE_ATTR&&oo(Co,C.ADD_URI_SAFE_ATTR,ge),C.FORBID_CONTENTS&&(Ce===Qe&&(Ce=lc(Ce)),oo(Ce,C.FORBID_CONTENTS,ge)),C.ADD_FORBID_CONTENTS&&(Ce===Qe&&(Ce=lc(Ce)),oo(Ce,C.ADD_FORBID_CONTENTS,ge)),we&&(G["#text"]=!0),oe&&oo(G,["html","head","body"]),G.table&&(oo(G,["tbody"]),delete be.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw uT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw uT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=C.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=EUt(h,r)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));as&&as(C),jt=C}},Ar=oo({},[...l5,...u5,...yUt]),Nr=oo({},[...c5,...CUt]),mu=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const _=l$(C.tagName),J=l$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?_==="svg":k.namespaceURI===go?_==="svg"&&(J==="annotation-xml"||$o[J]):!!Ar[_]:C.namespaceURI===go?k.namespaceURI===tt?_==="math":k.namespaceURI===Lo?_==="math"&&Ro[J]:!!Nr[_]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[J]||k.namespaceURI===go&&!$o[J]?!1:!Nr[_]&&(lu[_]||!Ar[_]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){aT(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Pt=function(C,k){try{aT(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{aT(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||pe)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Vr=function(C){let k=null,_=null;if(ie)C="<remove></remove>"+C;else{const ae=a5(C,/^[\r\n\t ]+/);_=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const J=w?w.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(J,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:J}catch{}}const ye=k.body||k.documentElement;return C&&_&&ye.insertBefore(o.createTextNode(_),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Ir=function(C){return D.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Pr=function(C){return typeof a=="function"&&C instanceof a};function ht(C,k,_){G2(C,J=>{J.call(e,k,_,jt)})}const Mr=function(C){let k=null;if(ht(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const _=ge(C.nodeName);if(ht(E.uponSanitizeElement,C,{tagName:_,allowedTags:G}),ee&&C.hasChildNodes()&&!Pr(C.firstElementChild)&&wi(/<[/\w!]/g,C.innerHTML)&&wi(/<[/\w!]/g,C.textContent)||C.nodeType===dT.progressingInstruction||ee&&C.nodeType===dT.comment&&wi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(_))&&(!G[_]||be[_])){if(!be[_]&&Wr(_)&&(H.tagNameCheck instanceof RegExp&&wi(H.tagNameCheck,_)||H.tagNameCheck instanceof Function&&H.tagNameCheck(_)))return!1;if(we&&!Ce[_]){const J=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&J){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,J.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!mu(C)||(_==="noscript"||_==="noembed"||_==="noframes")&&wi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===dT.text&&(k=C.textContent,G2([L,A,V],J=>{k=lT(k,J," ")}),C.textContent!==k&&(aT(e.removed,{element:C.cloneNode()}),C.textContent=k)),ht(E.afterSanitizeElements,C,null),!1)},Or=function(C,k,_){if(ne&&(k==="id"||k==="name")&&(_ in o||_ in du))return!1;if(!(Nt&&!le[k]&&wi(W,k))&&!(At&&wi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Wr(C)&&(H.tagNameCheck instanceof RegExp&&wi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&wi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&wi(H.tagNameCheck,_)||H.tagNameCheck instanceof Function&&H.tagNameCheck(_))))return!1}else if(!Co[k]&&!wi(ve,lT(_,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&hUt(_,"data:")===0&&Fo[C])&&!(Et&&!wi(K,lT(_,fe,"")))&&_)return!1}return!0},Wr=function(C){return C!=="annotation-xml"&&a5(C,Ne)},Hr=function(C){ht(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const _={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let J=k.length;for(;J--;){const ye=k[J],{name:ae,namespaceURI:nt,value:et}=ye,at=ge(ae),Jo=et;let He=ae==="value"?Jo:pUt(Jo);if(_.attrName=at,_.attrValue=He,_.keepAttr=!0,_.forceKeepAttr=void 0,ht(E.uponSanitizeAttribute,C,_),He=_.attrValue,Ge&&(at==="id"||at==="name")&&(Pt(ae,C),He=Te+He),ee&&wi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Pt(ae,C);continue}if(at==="attributename"&&a5(He,"href")){Pt(ae,C);continue}if(_.forceKeepAttr)continue;if(!_.keepAttr){Pt(ae,C);continue}if(!z&&wi(/\/>/i,He)){Pt(ae,C);continue}j&&G2([L,A,V],Za=>{He=lT(He,Za," ")});const Eo=ge(C.nodeName);if(!Or(Eo,at,He)){Pt(ae,C);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!nt)switch(h.getAttributeType(Eo,at)){case"TrustedHTML":{He=w.createHTML(He);break}case"TrustedScriptURL":{He=w.createScriptURL(He);break}}if(He!==Jo)try{nt?C.setAttributeNS(nt,ae,He):C.setAttribute(ae,He),Cn(C)?_t(C):Wle(e.removed)}catch{Pt(ae,C)}}ht(E.afterSanitizeAttributes,C,null)},hu=function C(k){let _=null;const J=Ir(k);for(ht(E.beforeSanitizeShadowDOM,k,null);_=J.nextNode();)ht(E.uponSanitizeShadowNode,_,null),Mr(_),Hr(_),_.content instanceof i&&C(_.content);ht(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,J=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Pr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw uT("dirty is not a string, aborting")}else throw uT("toString is not a function");if(!e.isSupported)return C;if(re||yn(k),e.removed=[],typeof C=="string"&&(xe=!1),xe){if(C.nodeName){const at=ge(C.nodeName);if(!G[at]||be[at])throw uT("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)_=Vr("<!---->"),J=_.ownerDocument.importNode(C,!0),J.nodeType===dT.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?_=J:_.appendChild(J);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return w&&te?w.createHTML(C):C;if(_=Vr(C),!_)return de?null:te?x:""}_&&ie&&_t(_.firstChild);const nt=Ir(xe?C:_);for(;ye=nt.nextNode();)Mr(ye),Hr(ye),ye.content instanceof i&&hu(ye.content);if(xe)return C;if(de){if(pe)for(ae=N.call(_.ownerDocument);_.firstChild;)ae.appendChild(_.firstChild);else ae=_;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?_.outerHTML:_.innerHTML;return oe&&G["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&wi(XEe,_.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+_.ownerDocument.doctype.name+`>
193
+ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function yL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function Qae(t){return yL(xLe(t))}function xLe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function kWt(t){t=LWt(t);let[e,o,n,r]=fWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function LWt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=zae(zae(t,6),8,"F")),t}function EWt(t){const e=Math.abs(Zae(ux(0),ux(t)));return Math.abs(Zae(ux(16777215),ux(t)))>Math.min(e,50)?"#fff":"#000"}function HE(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function UP(t,e){const o=zs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function _Wt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:UP("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const O9=Symbol.for("vuetify:defaults");function FLe(){const t=xo(O9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function BWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[EF(e)]<"u")}function DWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:FLe();const n=UP("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=Q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(h=>h!=null);if(BWt(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=Yo();nr(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=_Wt(O9,n);or(O9,Q(()=>s.value?TLe(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function $Wt(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=HE(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return hWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=FLe();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=DWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function RWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?$Wt:X)(e)}function AWt(t){const e=UP("useRender");e.render=t}function NWt(t){return gWt(()=>{const{class:e,style:o}=IWt(t);return{colorClasses:e,colorStyles:o}})}function VWt(t){const{colorClasses:e,colorStyles:o}=NWt(()=>({background:xr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function IWt(t){const e=xr(t),o=[],n={};if(e.background)if(M9(e.background)){if(n.backgroundColor=e.background,!e.text&&xWt(e.background)){const r=ux(e.background);if(r.a==null||r.a===1){const i=EWt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(M9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const PWt=HE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function MWt(t){return{dimensionStyles:Q(()=>{const e={},o=ab(t.height),n=ab(t.maxHeight),r=ab(t.maxWidth),i=ab(t.minHeight),s=ab(t.minWidth),a=ab(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const OWt=HE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function WWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const HWt=Symbol.for("vuetify:locale");function zWt(){const t=xo(HWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const ele=Symbol.for("vuetify:theme"),jWt=HE({theme:String},"theme");function KWt(t){UP("provideTheme");const e=xo(ele,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Ye(()=>t.theme??e.name.value),n=Ye(()=>e.themes.value[o.value]),r=Ye(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return or(ele,i),i}const UWt={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function qWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:U(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function tle(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>qP(e))}function qP(t){let e=[];if(!t)return e;const o=UWt[t];if(t!==o){if(t.includes(","))return ole(t);if(t.includes("@"))return tle(t);o.includes(",")?e=ole(o):o.includes("@")?e=tle(o):o&&e.push(qP(o))}return[qWt(t,e)]}function ole(t){return t.replace(/\s/g,"").split(",").map(qP)}const JWt=HE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...PWt(),...OWt(),...jWt()},"VSkeletonLoader");RWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:JWt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=VWt(()=>t.color),{dimensionStyles:s}=MWt(t),{elevationClasses:a}=WWt(t),{themeClasses:l}=KWt(t),{t:u}=zWt(),c=Q(()=>qP(pWt(t.type).join(",")));return AWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",pn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var zi="top",Fa="bottom",ka="right",ji="left",JP="auto",GS=[zi,Fa,ka,ji],MC="start",Mv="end",kLe="clippingParents",FG="viewport",Zb="popper",LLe="reference",W9=GS.reduce(function(t,e){return t.concat([e+"-"+MC,e+"-"+Mv])},[]),kG=[].concat(GS,[JP]).reduce(function(t,e){return t.concat([e,e+"-"+MC,e+"-"+Mv])},[]),ELe="beforeRead",_Le="read",BLe="afterRead",DLe="beforeMain",$Le="main",RLe="afterMain",ALe="beforeWrite",NLe="write",VLe="afterWrite",ILe=[ELe,_Le,BLe,DLe,$Le,RLe,ALe,NLe,VLe];function ed(t){return t?(t.nodeName||"").toLowerCase():null}function La(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function OC(t){var e=La(t).Element;return t instanceof e||t instanceof Element}function _l(t){var e=La(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function LG(t){if(typeof ShadowRoot>"u")return!1;var e=La(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function GWt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!_l(i)||!ed(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function YWt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!_l(r)||!ed(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const EG={name:"applyStyles",enabled:!0,phase:"write",fn:GWt,effect:YWt,requires:["computeStyles"]};function Ic(t){return t.split("-")[0]}var Ky=Math.max,u3=Math.min,Ov=Math.round;function H9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function PLe(){return!/^((?!chrome|android).)*safari/i.test(H9())}function Wv(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&_l(t)&&(r=t.offsetWidth>0&&Ov(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ov(n.height)/t.offsetHeight||1);var s=OC(t)?La(t):window,a=s.visualViewport,l=!PLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function _G(t){var e=Wv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function MLe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&LG(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function qm(t){return La(t).getComputedStyle(t)}function ZWt(t){return["table","td","th"].indexOf(ed(t))>=0}function Gf(t){return((OC(t)?t.ownerDocument:t.document)||window.document).documentElement}function GP(t){return ed(t)==="html"?t:t.assignedSlot||t.parentNode||(LG(t)?t.host:null)||Gf(t)}function nle(t){return!_l(t)||qm(t).position==="fixed"?null:t.offsetParent}function XWt(t){var e=/firefox/i.test(H9()),o=/Trident/i.test(H9());if(o&&_l(t)){var n=qm(t);if(n.position==="fixed")return null}var r=GP(t);for(LG(r)&&(r=r.host);_l(r)&&["html","body"].indexOf(ed(r))<0;){var i=qm(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function zE(t){for(var e=La(t),o=nle(t);o&&ZWt(o)&&qm(o).position==="static";)o=nle(o);return o&&(ed(o)==="html"||ed(o)==="body"&&qm(o).position==="static")?e:o||XWt(t)||e}function BG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function _F(t,e,o){return Ky(t,u3(e,o))}function QWt(t,e,o){var n=_F(t,e,o);return n>o?o:n}function OLe(){return{top:0,right:0,bottom:0,left:0}}function WLe(t){return Object.assign({},OLe(),t)}function HLe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var eHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,WLe(typeof t!="number"?t:HLe(t,GS))};function tHt(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=Ic(o.placement),l=BG(a),u=[ji,ka].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=eHt(r.padding,o),m=_G(i),h=l==="y"?zi:ji,p=l==="y"?Fa:ka,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=zE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,w=d[h],x=v-m[c]-d[p],F=v/2-m[c]/2+S,D=_F(w,F,x),N=l;o.modifiersData[n]=(e={},e[N]=D,e.centerOffset=D-F,e)}}function oHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||MLe(e.elements.popper,r)&&(e.elements.arrow=r))}const zLe={name:"arrow",enabled:!0,phase:"main",fn:tHt,effect:oHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hv(t){return t.split("-")[1]}var nHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Ov(o*r)/r||0,y:Ov(n*r)/r||0}}function rle(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,h=m===void 0?0:m,p=s.y,f=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:f}):{x:h,y:f};h=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=ji,w=zi,x=window;if(u){var F=zE(o),D="clientHeight",N="clientWidth";if(F===La(o)&&(F=Gf(o),qm(F).position!=="static"&&a==="absolute"&&(D="scrollHeight",N="scrollWidth")),F=F,r===zi||(r===ji||r===ka)&&i===Mv){w=Fa;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[D];f-=R-n.height,f*=l?1:-1}if(r===ji||(r===zi||r===Fa)&&i===Mv){S=ka;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];h-=P-n.width,h*=l?1:-1}}var E=Object.assign({position:a},u&&nHt),L=c===!0?rHt({x:h,y:f},La(o)):{x:h,y:f};if(h=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[w]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[w]=v?f+"px":"",e[S]=b?h+"px":"",e.transform="",e))}function iHt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:Ic(e.placement),variation:Hv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,rle(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,rle(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const DG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iHt,data:{}};var H2={passive:!0};function sHt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=La(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,H2)}),a&&l.addEventListener("resize",o.update,H2),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,H2)}),a&&l.removeEventListener("resize",o.update,H2)}}const $G={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sHt,data:{}};var aHt={left:"right",right:"left",bottom:"top",top:"bottom"};function r$(t){return t.replace(/left|right|bottom|top/g,function(e){return aHt[e]})}var lHt={start:"end",end:"start"};function ile(t){return t.replace(/start|end/g,function(e){return lHt[e]})}function RG(t){var e=La(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function AG(t){return Wv(Gf(t)).left+RG(t).scrollLeft}function uHt(t,e){var o=La(t),n=Gf(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=PLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+AG(t),y:l}}function cHt(t){var e,o=Gf(t),n=RG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Ky(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Ky(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+AG(t),l=-n.scrollTop;return qm(r||o).direction==="rtl"&&(a+=Ky(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function NG(t){var e=qm(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function jLe(t){return["html","body","#document"].indexOf(ed(t))>=0?t.ownerDocument.body:_l(t)&&NG(t)?t:jLe(GP(t))}function BF(t,e){var o;e===void 0&&(e=[]);var n=jLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=La(n),s=r?[i].concat(i.visualViewport||[],NG(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(BF(GP(s)))}function z9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function dHt(t,e){var o=Wv(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function sle(t,e,o){return e===FG?z9(uHt(t,o)):OC(e)?dHt(e,o):z9(cHt(Gf(t)))}function mHt(t){var e=BF(GP(t)),o=["absolute","fixed"].indexOf(qm(t).position)>=0,n=o&&_l(t)?zE(t):t;return OC(n)?e.filter(function(r){return OC(r)&&MLe(r,n)&&ed(r)!=="body"}):[]}function hHt(t,e,o,n){var r=e==="clippingParents"?mHt(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=sle(t,u,n);return l.top=Ky(c.top,l.top),l.right=u3(c.right,l.right),l.bottom=u3(c.bottom,l.bottom),l.left=Ky(c.left,l.left),l},sle(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function KLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Ic(n):null,i=n?Hv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case zi:l={x:s,y:e.y-o.height};break;case Fa:l={x:s,y:e.y+e.height};break;case ka:l={x:e.x+e.width,y:a};break;case ji:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?BG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case MC:l[u]=l[u]-(e[c]/2-o[c]/2);break;case Mv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function zv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?kLe:a,u=o.rootBoundary,c=u===void 0?FG:u,d=o.elementContext,m=d===void 0?Zb:d,h=o.altBoundary,p=h===void 0?!1:h,f=o.padding,g=f===void 0?0:f,b=WLe(typeof g!="number"?g:HLe(g,GS)),v=m===Zb?LLe:Zb,S=t.rects.popper,w=t.elements[p?v:m],x=hHt(OC(w)?w:w.contextElement||Gf(t.elements.popper),l,c,s),F=Wv(t.elements.reference),D=KLe({reference:F,element:S,placement:r}),N=z9(Object.assign({},S,D)),R=m===Zb?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===Zb&&E){var L=E[r];Object.keys(P).forEach(function(A){var V=[ka,Fa].indexOf(A)>=0?1:-1,W=[zi,Fa].indexOf(A)>=0?"y":"x";P[A]+=L[W]*V})}return P}function pHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?kG:l,c=Hv(n),d=c?a?W9:W9.filter(function(p){return Hv(p)===c}):GS,m=d.filter(function(p){return u.indexOf(p)>=0});m.length===0&&(m=d);var h=m.reduce(function(p,f){return p[f]=zv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Ic(f)],p},{});return Object.keys(h).sort(function(p,f){return h[p]-h[f]})}function fHt(t){if(Ic(t)===JP)return[];var e=r$(t);return[ile(t),e,ile(e)]}function gHt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,h=o.flipVariations,p=h===void 0?!0:h,f=o.allowedAutoPlacements,g=e.options.placement,b=Ic(g),v=b===g,S=l||(v||!p?[r$(g)]:fHt(g)),w=[g].concat(S).reduce(function(me,H){return me.concat(Ic(H)===JP?pHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,D=new Map,N=!0,R=w[0],P=0;P<w.length;P++){var E=w[P],L=Ic(E),A=Hv(E)===MC,V=[zi,Fa].indexOf(L)>=0,W=V?"width":"height",O=zv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=V?A?ka:ji:A?Fa:zi;x[W]>F[W]&&(K=r$(K));var fe=r$(K),Ne=[];if(i&&Ne.push(O[L]<=0),a&&Ne.push(O[K]<=0,O[fe]<=0),Ne.every(function(me){return me})){R=E,N=!1;break}D.set(E,Ne)}if(N)for(var ve=p?3:1,G=function(me){var H=w.find(function(be){var le=D.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Re=ve;Re>0;Re--){var q=G(Re);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const ULe={name:"flip",enabled:!0,phase:"main",fn:gHt,requiresIfExists:["offset"],data:{_skip:!1}};function ale(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function lle(t){return[zi,ka,Fa,ji].some(function(e){return t[e]>=0})}function yHt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=zv(e,{elementContext:"reference"}),a=zv(e,{altBoundary:!0}),l=ale(s,n),u=ale(a,r,i),c=lle(l),d=lle(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const qLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yHt};function CHt(t,e,o){var n=Ic(t),r=[ji,zi].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[ji,ka].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function bHt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=kG.reduce(function(c,d){return c[d]=CHt(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const JLe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bHt};function vHt(t){var e=t.state,o=t.name;e.modifiersData[o]=KLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const VG={name:"popperOffsets",enabled:!0,phase:"read",fn:vHt,data:{}};function SHt(t){return t==="x"?"y":"x"}function wHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,h=m===void 0?!0:m,p=o.tetherOffset,f=p===void 0?0:p,g=zv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Ic(e.placement),v=Hv(e.placement),S=!v,w=BG(b),x=SHt(w),F=e.modifiersData.popperOffsets,D=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,V=w==="y"?zi:ji,W=w==="y"?Fa:ka,O=w==="y"?"height":"width",K=F[w],fe=K+g[V],Ne=K-g[W],ve=h?-N[O]/2:0,G=v===MC?D[O]:N[O],Re=v===MC?-N[O]:-D[O],q=e.elements.arrow,me=h&&q?_G(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:OLe(),be=H[V],le=H[W],ue=_F(0,D[O],me[O]),At=S?D[O]/2-ve-ue-be-P.mainAxis:G-ue-be-P.mainAxis,Nt=S?-D[O]/2+ve+ue+le+P.mainAxis:Re+ue+le+P.mainAxis,Et=e.elements.arrow&&zE(e.elements.arrow),z=Et?w==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[w])!=null?A:0,ee=K+At-j-z,oe=K+Nt-j,re=_F(h?u3(fe,ee):fe,K,h?Ky(Ne,oe):Ne);F[w]=re,L[w]=re-K}if(a){var ie,de=w==="x"?zi:ji,pe=w==="x"?Fa:ka,te=F[x],ne=x==="y"?"height":"width",Ge=te+g[de],Te=te-g[pe],we=[zi,ji].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ae=we?Ge:te-D[ne]-N[ne]-xe+P.altAxis,Ce=we?te+D[ne]+N[ne]-xe-P.altAxis:Te,Qe=h&&we?QWt(Ae,te,Ce):_F(h?Ae:Ge,te,h?Ce:Te);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const GLe={name:"preventOverflow",enabled:!0,phase:"main",fn:wHt,requiresIfExists:["offset"]};function THt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xHt(t){return t===La(t)||!_l(t)?RG(t):THt(t)}function FHt(t){var e=t.getBoundingClientRect(),o=Ov(e.width)/t.offsetWidth||1,n=Ov(e.height)/t.offsetHeight||1;return o!==1||n!==1}function kHt(t,e,o){o===void 0&&(o=!1);var n=_l(e),r=_l(e)&&FHt(e),i=Gf(e),s=Wv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ed(e)!=="body"||NG(i))&&(a=xHt(e)),_l(e)?(l=Wv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=AG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function LHt(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function EHt(t){var e=LHt(t);return ILe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function _Ht(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function BHt(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var ule={placement:"bottom",modifiers:[],strategy:"absolute"};function cle(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function YP(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?ule:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ule,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:OC(s)?BF(s):s.contextElement?BF(s.contextElement):[],popper:BF(a)};var b=EHt(BHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),h(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(cle(g,b)){u.rects={reference:kHt(g,zE(b),u.options.strategy==="fixed"),popper:_G(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],w=S.fn,x=S.options,F=x===void 0?{}:x,D=S.name;typeof w=="function"&&(u=w({state:u,options:F,name:D,instance:m})||u)}}}},update:_Ht(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){p(),d=!0}};if(!cle(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function h(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var w=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(w||x)}})}function p(){c.forEach(function(f){return f()}),c=[]}return m}}var DHt=YP(),$Ht=[$G,VG,DG,EG],RHt=YP({defaultModifiers:$Ht}),AHt=[$G,VG,DG,EG,JLe,ULe,GLe,zLe,qLe],IG=YP({defaultModifiers:AHt});const YLe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:RLe,afterRead:BLe,afterWrite:VLe,applyStyles:EG,arrow:zLe,auto:JP,basePlacements:GS,beforeMain:DLe,beforeRead:ELe,beforeWrite:ALe,bottom:Fa,clippingParents:kLe,computeStyles:DG,createPopper:IG,createPopperBase:DHt,createPopperLite:RHt,detectOverflow:zv,end:Mv,eventListeners:$G,flip:ULe,hide:qLe,left:ji,main:$Le,modifierPhases:ILe,offset:JLe,placements:kG,popper:Zb,popperGenerator:YP,popperOffsets:VG,preventOverflow:GLe,read:_Le,reference:LLe,right:ka,start:MC,top:zi,variationPlacements:W9,viewport:FG,write:NLe},Symbol.toStringTag,{value:"Module"})),Oh=new Map,j4={set(t,e,o){Oh.has(t)||Oh.set(t,new Map);const n=Oh.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Oh.has(t)&&Oh.get(t).get(e)||null},remove(t,e){if(!Oh.has(t))return;const o=Oh.get(t);o.delete(e),o.size===0&&Oh.delete(t)}},NHt=1e6,VHt=1e3,j9="transitionend",ZLe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),IHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),PHt=t=>{do t+=Math.floor(Math.random()*NHt);while(document.getElementById(t));return t},MHt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*VHt)},XLe=t=>{t.dispatchEvent(new Event(j9))},wm=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Sf=t=>wm(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(ZLe(t)):null,YS=t=>{if(!wm(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},wf=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",QLe=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?QLe(t.parentNode):null},c3=()=>{},jE=t=>{t.offsetHeight},eEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,K4=[],OHt=t=>{document.readyState==="loading"?(K4.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of K4)e()}),K4.push(t)):t()},Ol=()=>document.documentElement.dir==="rtl",ou=t=>{OHt(()=>{const e=eEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},ks=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,tEe=(t,e,o=!0)=>{if(!o){ks(t);return}const n=MHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(j9,i),ks(t))};e.addEventListener(j9,i),setTimeout(()=>{r||XLe(e)},n)},PG=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},WHt=/[^.]*(?=\..*)\.|.*/,HHt=/\..*/,zHt=/::\d+$/,U4={};let dle=1;const oEe={mouseenter:"mouseover",mouseleave:"mouseout"},jHt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function nEe(t,e){return e&&`${e}::${dle++}`||t.uidEvent||dle++}function rEe(t){const e=nEe(t);return t.uidEvent=e,U4[e]=U4[e]||{},U4[e]}function KHt(t,e){return function o(n){return MG(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function UHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return MG(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function iEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function sEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=aEe(t);return jHt.has(i)||(i=t),[n,r,i]}function mle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=sEe(e,o,n);e in oEe&&(s=(h=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return h.call(this,p)})(s));const l=rEe(t),u=l[a]||(l[a]={}),c=iEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=nEe(s,e.replace(WHt,"")),m=i?UHt(t,o,s):KHt(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function K9(t,e,o,n,r){const i=iEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function qHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&K9(t,e,o,s.callable,s.delegationSelector)}function aEe(t){return t=t.replace(HHt,""),oEe[t]||t}const Ee={on(t,e,o,n){mle(t,e,o,n,!1)},one(t,e,o,n){mle(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=sEe(e,o,n),a=s!==e,l=rEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;K9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))qHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const h=d.replace(zHt,"");(!a||e.includes(h))&&K9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=eEe(),r=aEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=MG(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function MG(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function hle(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function q4(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Tm={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${q4(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${q4(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=hle(t.dataset[n])}return e},getDataAttribute(t,e){return hle(t.getAttribute(`data-bs-${q4(e)}`))}};let KE=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=wm(o)?Tm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...wm(o)?Tm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=wm(i)?"element":IHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const JHt="5.3.8";let qu=class extends KE{constructor(e,o){super(),e=Sf(e),e&&(this._element=e,this._config=this._getConfig(o),j4.set(this._element,this.constructor.DATA_KEY,this))}dispose(){j4.remove(this._element,this.constructor.DATA_KEY),Ee.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){tEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return j4.get(Sf(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return JHt}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}};const J4=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>ZLe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!wf(o)&&YS(o))},getSelectorFromElement(t){const e=J4(t);return e&&vt.findOne(e)?e:null},getElementFromSelector(t){const e=J4(t);return e?vt.findOne(e):null},getMultipleElementsFromSelector(t){const e=J4(t);return e?vt.find(e):[]}},ZP=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ee.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),wf(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},GHt="alert",YHt="bs.alert",lEe=`.${YHt}`,ZHt=`close${lEe}`,XHt=`closed${lEe}`,QHt="fade",e7t="show";let uEe=class cEe extends qu{static get NAME(){return GHt}close(){if(Ee.trigger(this._element,ZHt).defaultPrevented)return;this._element.classList.remove(e7t);const e=this._element.classList.contains(QHt);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,XHt),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=cEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(uEe,"close");ou(uEe);const t7t="button",o7t="bs.button",n7t=`.${o7t}`,r7t=".data-api",i7t="active",ple='[data-bs-toggle="button"]',s7t=`click${n7t}${r7t}`;let dEe=class mEe extends qu{static get NAME(){return t7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(i7t))}static jQueryInterface(e){return this.each(function(){const o=mEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,s7t,ple,t=>{t.preventDefault();const e=t.target.closest(ple);dEe.getOrCreateInstance(e).toggle()});ou(dEe);const a7t="swipe",ZS=".bs.swipe",l7t=`touchstart${ZS}`,u7t=`touchmove${ZS}`,c7t=`touchend${ZS}`,d7t=`pointerdown${ZS}`,m7t=`pointerup${ZS}`,h7t="touch",p7t="pen",f7t="pointer-event",g7t=40,y7t={endCallback:null,leftCallback:null,rightCallback:null},C7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let fle=class hEe extends KE{constructor(e,o){super(),this._element=e,!(!e||!hEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return y7t}static get DefaultType(){return C7t}static get NAME(){return a7t}dispose(){Ee.off(this._element,ZS)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),ks(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=g7t)return;const o=e/this._deltaX;this._deltaX=0,o&&ks(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,d7t,e=>this._start(e)),Ee.on(this._element,m7t,e=>this._end(e)),this._element.classList.add(f7t)):(Ee.on(this._element,l7t,e=>this._start(e)),Ee.on(this._element,u7t,e=>this._move(e)),Ee.on(this._element,c7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===p7t||e.pointerType===h7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const b7t="carousel",v7t="bs.carousel",Yf=`.${v7t}`,pEe=".data-api",S7t="ArrowLeft",w7t="ArrowRight",T7t=500,iT="next",ub="prev",Xb="left",i$="right",x7t=`slide${Yf}`,G4=`slid${Yf}`,F7t=`keydown${Yf}`,k7t=`mouseenter${Yf}`,L7t=`mouseleave${Yf}`,E7t=`dragstart${Yf}`,_7t=`load${Yf}${pEe}`,B7t=`click${Yf}${pEe}`,fEe="carousel",z2="active",D7t="slide",$7t="carousel-item-end",R7t="carousel-item-start",A7t="carousel-item-next",N7t="carousel-item-prev",gEe=".active",yEe=".carousel-item",V7t=gEe+yEe,I7t=".carousel-item img",P7t=".carousel-indicators",M7t="[data-bs-slide], [data-bs-slide-to]",O7t='[data-bs-ride="carousel"]',W7t={[S7t]:i$,[w7t]:Xb},H7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},z7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let OG=class CEe extends qu{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vt.findOne(P7t,this._element),this._addEventListeners(),this._config.ride===fEe&&this.cycle()}static get Default(){return H7t}static get DefaultType(){return z7t}static get NAME(){return b7t}next(){this._slide(iT)}nextWhenVisible(){!document.hidden&&YS(this._element)&&this.next()}prev(){this._slide(ub)}pause(){this._isSliding&&XLe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,G4,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ee.one(this._element,G4,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?iT:ub;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ee.on(this._element,F7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,k7t,()=>this.pause()),Ee.on(this._element,L7t,()=>this._maybeEnableCycle())),this._config.touch&&fle.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(I7t,this._element))Ee.on(o,E7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Xb)),rightCallback:()=>this._slide(this._directionToOrder(i$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),T7t+this._config.interval))}};this._swipeHelper=new fle(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=W7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(gEe,this._indicatorsElement);o.classList.remove(z2),o.removeAttribute("aria-current");const n=vt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(z2),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===iT,i=o||PG(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ee.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(x7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?R7t:$7t,c=r?A7t:N7t;i.classList.add(c),jE(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(z2),n.classList.remove(z2,c,u),this._isSliding=!1,a(G4)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(D7t)}_getActive(){return vt.findOne(V7t,this._element)}_getItems(){return vt.find(yEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ol()?e===Xb?ub:iT:e===Xb?iT:ub}_orderToDirection(e){return Ol()?e===ub?Xb:i$:e===ub?i$:Xb}static jQueryInterface(e){return this.each(function(){const o=CEe.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,B7t,M7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(fEe))return;t.preventDefault();const o=OG.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Tm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,_7t,()=>{const t=vt.find(O7t);for(const e of t)OG.getOrCreateInstance(e)});ou(OG);const j7t="collapse",K7t="bs.collapse",UE=`.${K7t}`,U7t=".data-api",q7t=`show${UE}`,J7t=`shown${UE}`,G7t=`hide${UE}`,Y7t=`hidden${UE}`,Z7t=`click${UE}${U7t}`,Y4="show",I1="collapse",j2="collapsing",X7t="collapsed",Q7t=`:scope .${I1} .${I1}`,e8t="collapse-horizontal",t8t="width",o8t="height",n8t=".collapse.show, .collapse.collapsing",U9='[data-bs-toggle="collapse"]',r8t={parent:null,toggle:!0},i8t={parent:"(null|element)",toggle:"boolean"};let bEe=class q9 extends qu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(U9);for(const r of n){const i=vt.getSelectorFromElement(r),s=vt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return r8t}static get DefaultType(){return i8t}static get NAME(){return j7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(n8t).filter(i=>i!==this._element).map(i=>q9.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,q7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(I1),this._element.classList.add(j2),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(j2),this._element.classList.add(I1,Y4),this._element.style[o]="",Ee.trigger(this._element,J7t)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ee.trigger(this._element,G7t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,jE(this._element),this._element.classList.add(j2),this._element.classList.remove(I1,Y4);for(const n of this._triggerArray){const r=vt.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(j2),this._element.classList.add(I1),Ee.trigger(this._element,Y7t)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Y4)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Sf(e.parent),e}_getDimension(){return this._element.classList.contains(e8t)?t8t:o8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(U9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(Q7t,this._config.parent);return vt.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(X7t,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=q9.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,Z7t,U9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))bEe.getOrCreateInstance(e,{toggle:!1}).toggle()});ou(bEe);const gle="dropdown",s8t="bs.dropdown",g0=`.${s8t}`,WG=".data-api",a8t="Escape",yle="Tab",l8t="ArrowUp",Cle="ArrowDown",u8t=2,c8t=`hide${g0}`,d8t=`hidden${g0}`,m8t=`show${g0}`,h8t=`shown${g0}`,vEe=`click${g0}${WG}`,SEe=`keydown${g0}${WG}`,p8t=`keyup${g0}${WG}`,Qb="show",f8t="dropup",g8t="dropend",y8t="dropstart",C8t="dropup-center",b8t="dropdown-center",ly='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',v8t=`${ly}.${Qb}`,s$=".dropdown-menu",S8t=".navbar",w8t=".navbar-nav",T8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",x8t=Ol()?"top-end":"top-start",F8t=Ol()?"top-start":"top-end",k8t=Ol()?"bottom-end":"bottom-start",L8t=Ol()?"bottom-start":"bottom-end",E8t=Ol()?"left-start":"right-start",_8t=Ol()?"right-start":"left-start",B8t="top",D8t="bottom",$8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},R8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let XS=class a$ extends qu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,s$)[0]||vt.prev(this._element,s$)[0]||vt.findOne(s$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $8t}static get DefaultType(){return R8t}static get NAME(){return gle}toggle(){return this._isShown()?this.hide():this.show()}show(){if(wf(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,m8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(w8t))for(const o of[].concat(...document.body.children))Ee.on(o,"mouseover",c3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Qb),this._element.classList.add(Qb),Ee.trigger(this._element,h8t,e)}}hide(){if(wf(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ee.trigger(this._element,c8t,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",c3);this._popper&&this._popper.destroy(),this._menu.classList.remove(Qb),this._element.classList.remove(Qb),this._element.setAttribute("aria-expanded","false"),Tm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,d8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!wm(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${gle.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof YLe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:wm(this._config.reference)?e=Sf(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=IG(e,this._menu,o)}_isShown(){return this._menu.classList.contains(Qb)}_getPlacement(){const e=this._parent;if(e.classList.contains(g8t))return E8t;if(e.classList.contains(y8t))return _8t;if(e.classList.contains(C8t))return B8t;if(e.classList.contains(b8t))return D8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(f8t)?o?F8t:x8t:o?L8t:k8t}_detectNavbar(){return this._element.closest(S8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Tm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...ks(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(T8t,this._menu).filter(r=>YS(r));n.length&&PG(n,o,e===Cle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=a$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===u8t||e.type==="keyup"&&e.key!==yle)return;const o=vt.find(v8t);for(const n of o){const r=a$.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===yle||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===a8t,r=[l8t,Cle].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(ly)?this:vt.prev(this,ly)[0]||vt.next(this,ly)[0]||vt.findOne(ly,e.delegateTarget.parentNode),s=a$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,SEe,ly,XS.dataApiKeydownHandler);Ee.on(document,SEe,s$,XS.dataApiKeydownHandler);Ee.on(document,vEe,XS.clearMenus);Ee.on(document,p8t,XS.clearMenus);Ee.on(document,vEe,ly,function(t){t.preventDefault(),XS.getOrCreateInstance(this).toggle()});ou(XS);const wEe="backdrop",A8t="fade",ble="show",vle=`mousedown.bs.${wEe}`,N8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},V8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let TEe=class extends KE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return N8t}static get DefaultType(){return V8t}static get NAME(){return wEe}show(e){if(!this._config.isVisible){ks(e);return}this._append();const o=this._getElement();this._config.isAnimated&&jE(o),o.classList.add(ble),this._emulateAnimation(()=>{ks(e)})}hide(e){if(!this._config.isVisible){ks(e);return}this._getElement().classList.remove(ble),this._emulateAnimation(()=>{this.dispose(),ks(e)})}dispose(){this._isAppended&&(Ee.off(this._element,vle),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(A8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Sf(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,vle,()=>{ks(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){tEe(e,this._getElement(),this._config.isAnimated)}};const I8t="focustrap",P8t="bs.focustrap",d3=`.${P8t}`,M8t=`focusin${d3}`,O8t=`keydown.tab${d3}`,W8t="Tab",H8t="forward",Sle="backward",z8t={autofocus:!0,trapElement:null},j8t={autofocus:"boolean",trapElement:"element"};let xEe=class extends KE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return z8t}static get DefaultType(){return j8t}static get NAME(){return I8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,d3),Ee.on(document,M8t,e=>this._handleFocusin(e)),Ee.on(document,O8t,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ee.off(document,d3))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=vt.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===Sle?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===W8t&&(this._lastTabNavDirection=e.shiftKey?Sle:H8t)}};const wle=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Tle=".sticky-top",K2="padding-right",xle="margin-right";let J9=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,K2,o=>o+e),this._setElementAttributes(wle,K2,o=>o+e),this._setElementAttributes(Tle,xle,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,K2),this._resetElementAttributes(wle,K2),this._resetElementAttributes(Tle,xle)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&Tm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Tm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Tm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(wm(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const K8t="modal",U8t="bs.modal",Wl=`.${U8t}`,q8t=".data-api",J8t="Escape",G8t=`hide${Wl}`,Y8t=`hidePrevented${Wl}`,FEe=`hidden${Wl}`,kEe=`show${Wl}`,Z8t=`shown${Wl}`,X8t=`resize${Wl}`,Q8t=`click.dismiss${Wl}`,e9t=`mousedown.dismiss${Wl}`,t9t=`keydown.dismiss${Wl}`,o9t=`click${Wl}${q8t}`,Fle="modal-open",n9t="fade",kle="show",Z4="modal-static",r9t=".modal.show",i9t=".modal-dialog",s9t=".modal-body",a9t='[data-bs-toggle="modal"]',l9t={backdrop:!0,focus:!0,keyboard:!0},u9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let m3=class LEe extends qu{constructor(e,o){super(e,o),this._dialog=vt.findOne(i9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new J9,this._addEventListeners()}static get Default(){return l9t}static get DefaultType(){return u9t}static get NAME(){return K8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,kEe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Fle),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,G8t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(kle),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Wl),Ee.off(this._dialog,Wl),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new TEe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new xEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(s9t,this._dialog);o&&(o.scrollTop=0),jE(this._element),this._element.classList.add(kle);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,Z8t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,t9t,e=>{if(e.key===J8t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,X8t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,e9t,e=>{Ee.one(this._element,Q8t,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Fle),this._resetAdjustments(),this._scrollBar.reset(),Ee.trigger(this._element,FEe)})}_isAnimated(){return this._element.classList.contains(n9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,Y8t).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Z4)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Z4),this._queueCallback(()=>{this._element.classList.remove(Z4),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=Ol()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=Ol()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=LEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,o9t,a9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,kEe,n=>{n.defaultPrevented||Ee.one(e,FEe,()=>{YS(this)&&this.focus()})});const o=vt.findOne(r9t);o&&m3.getInstance(o).hide(),m3.getOrCreateInstance(e).toggle(this)});ZP(m3);ou(m3);const c9t="offcanvas",d9t="bs.offcanvas",ph=`.${d9t}`,EEe=".data-api",m9t=`load${ph}${EEe}`,h9t="Escape",Lle="show",Ele="showing",_le="hiding",p9t="offcanvas-backdrop",_Ee=".offcanvas.show",f9t=`show${ph}`,g9t=`shown${ph}`,y9t=`hide${ph}`,Ble=`hidePrevented${ph}`,BEe=`hidden${ph}`,C9t=`resize${ph}`,b9t=`click${ph}${EEe}`,v9t=`keydown.dismiss${ph}`,S9t='[data-bs-toggle="offcanvas"]',w9t={backdrop:!0,keyboard:!0,scroll:!1},T9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let jv=class DEe extends qu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return w9t}static get DefaultType(){return T9t}static get NAME(){return c9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,f9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new J9().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ele);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Lle),this._element.classList.remove(Ele),Ee.trigger(this._element,g9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,y9t).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(_le),this._backdrop.hide();const e=()=>{this._element.classList.remove(Lle,_le),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new J9().reset(),Ee.trigger(this._element,BEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Ble);return}this.hide()},o=!!this._config.backdrop;return new TEe({className:p9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new xEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,v9t,e=>{if(e.key===h9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Ble)}})}static jQueryInterface(e){return this.each(function(){const o=DEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,b9t,S9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),wf(this))return;Ee.one(e,BEe,()=>{YS(this)&&this.focus()});const o=vt.findOne(_Ee);o&&o!==e&&jv.getInstance(o).hide(),jv.getOrCreateInstance(e).toggle(this)});Ee.on(window,m9t,()=>{for(const t of vt.find(_Ee))jv.getOrCreateInstance(t).show()});Ee.on(window,C9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&jv.getOrCreateInstance(t).hide()});ZP(jv);ou(jv);const x9t=/^aria-[\w-]*$/i,$Ee={"*":["class","dir","id","lang","role",x9t],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},F9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),k9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,L9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?F9t.has(o)?!!k9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function E9t(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)L9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const _9t="TemplateFactory",B9t={allowList:$Ee,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},D9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},$9t={entry:"(string|element|function|null)",selector:"(string|element)"};let R9t=class extends KE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return B9t}static get DefaultType(){return D9t}static get NAME(){return _9t}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},$9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(wm(o)){this._putElementInTemplate(Sf(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?E9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return ks(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const A9t="tooltip",N9t=new Set(["sanitize","allowList","sanitizeFn"]),X4="fade",V9t="modal",U2="show",I9t=".tooltip-inner",Dle=`.${V9t}`,$le="hide.bs.modal",sT="hover",Q4="focus",e5="click",P9t="manual",M9t="hide",O9t="hidden",W9t="show",H9t="shown",z9t="inserted",j9t="click",K9t="focusin",U9t="focusout",q9t="mouseenter",J9t="mouseleave",G9t={AUTO:"auto",TOP:"top",RIGHT:Ol()?"left":"right",BOTTOM:"bottom",LEFT:Ol()?"right":"left"},Y9t={allowList:$Ee,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Z9t={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let XP=class REe extends qu{constructor(e,o){if(typeof YLe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Y9t}static get DefaultType(){return Z9t}static get NAME(){return A9t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ee.off(this._element.closest(Dle),$le,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ee.trigger(this._element,this.constructor.eventName(W9t)),o=(QLe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(z9t))),this._popper=this._createPopper(n),n.classList.add(U2),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ee.on(s,"mouseover",c3);const i=()=>{Ee.trigger(this._element,this.constructor.eventName(H9t)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ee.trigger(this._element,this.constructor.eventName(M9t)).defaultPrevented)return;if(this._getTipElement().classList.remove(U2),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",c3);this._activeTrigger[e5]=!1,this._activeTrigger[Q4]=!1,this._activeTrigger[sT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(O9t)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(X4,U2),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=PHt(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(X4),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new R9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[I9t]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(X4)}_isShown(){return this.tip&&this.tip.classList.contains(U2)}_createPopper(e){const o=ks(this._config.placement,[this,e,this._element]),n=G9t[o.toUpperCase()];return IG(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return ks(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...ks(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ee.on(this._element,this.constructor.eventName(j9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[e5]=!(r._isShown()&&r._activeTrigger[e5]),r.toggle()});else if(o!==P9t){const n=o===sT?this.constructor.eventName(q9t):this.constructor.eventName(K9t),r=o===sT?this.constructor.eventName(J9t):this.constructor.eventName(U9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Q4:sT]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Q4:sT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ee.on(this._element.closest(Dle),$le,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=Tm.getDataAttributes(this._element);for(const n of Object.keys(o))N9t.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Sf(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=REe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};ou(XP);const X9t="popover",Q9t=".popover-header",ezt=".popover-body",tzt={...XP.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ozt={...XP.DefaultType,content:"(null|string|element|function)"};let nzt=class AEe extends XP{static get Default(){return tzt}static get DefaultType(){return ozt}static get NAME(){return X9t}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Q9t]:this._getTitle(),[ezt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=AEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};ou(nzt);const rzt="scrollspy",izt="bs.scrollspy",HG=`.${izt}`,szt=".data-api",azt=`activate${HG}`,Rle=`click${HG}`,lzt=`load${HG}${szt}`,uzt="dropdown-item",cb="active",czt='[data-bs-spy="scroll"]',t5="[href]",dzt=".nav, .list-group",Ale=".nav-link",mzt=".nav-item",hzt=".list-group-item",pzt=`${Ale}, ${mzt} > ${Ale}, ${hzt}`,fzt=".dropdown",gzt=".dropdown-toggle",yzt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Czt={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let NEe=class VEe extends qu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return yzt}static get DefaultType(){return Czt}static get NAME(){return rzt}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Sf(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ee.off(this._config.target,Rle),Ee.on(this._config.target,Rle,t5,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vt.find(t5,this._config.target);for(const o of e){if(!o.hash||wf(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);YS(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(cb),this._activateParents(e),Ee.trigger(this._element,azt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(uzt)){vt.findOne(gzt,e.closest(fzt)).classList.add(cb);return}for(const o of vt.parents(e,dzt))for(const n of vt.prev(o,pzt))n.classList.add(cb)}_clearActiveClass(e){e.classList.remove(cb);const o=vt.find(`${t5}.${cb}`,e);for(const n of o)n.classList.remove(cb)}static jQueryInterface(e){return this.each(function(){const o=VEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,lzt,()=>{for(const t of vt.find(czt))NEe.getOrCreateInstance(t)});ou(NEe);const bzt="tab",vzt="bs.tab",y0=`.${vzt}`,Szt=`hide${y0}`,wzt=`hidden${y0}`,Tzt=`show${y0}`,xzt=`shown${y0}`,Fzt=`click${y0}`,kzt=`keydown${y0}`,Lzt=`load${y0}`,Ezt="ArrowLeft",Nle="ArrowRight",_zt="ArrowUp",Vle="ArrowDown",o5="Home",Ile="End",uy="active",Ple="fade",n5="show",Bzt="dropdown",IEe=".dropdown-toggle",Dzt=".dropdown-menu",r5=`:not(${IEe})`,$zt='.list-group, .nav, [role="tablist"]',Rzt=".nav-item, .list-group-item",Azt=`.nav-link${r5}, .list-group-item${r5}, [role="tab"]${r5}`,PEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',i5=`${Azt}, ${PEe}`,Nzt=`.${uy}[data-bs-toggle="tab"], .${uy}[data-bs-toggle="pill"], .${uy}[data-bs-toggle="list"]`;let zG=class G9 extends qu{constructor(e){super(e),this._parent=this._element.closest($zt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,kzt,o=>this._keydown(o)))}static get NAME(){return bzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,Szt,{relatedTarget:e}):null;Ee.trigger(e,Tzt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(uy),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(n5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,xzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Ple))}_deactivate(e,o){if(!e)return;e.classList.remove(uy),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(n5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,wzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Ple))}_keydown(e){if(![Ezt,Nle,_zt,Vle,o5,Ile].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!wf(r));let n;if([o5,Ile].includes(e.key))n=o[e.key===o5?0:o.length-1];else{const r=[Nle,Vle].includes(e.key);n=PG(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),G9.getOrCreateInstance(n).show())}_getChildren(){return vt.find(i5,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=vt.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(Bzt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(IEe,uy),r(Dzt,n5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(uy)}_getInnerElement(e){return e.matches(i5)?e:vt.findOne(i5,e)}_getOuterElement(e){return e.closest(Rzt)||e}static jQueryInterface(e){return this.each(function(){const o=G9.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,Fzt,PEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!wf(this)&&zG.getOrCreateInstance(this).show()});Ee.on(window,Lzt,()=>{for(const t of vt.find(Nzt))zG.getOrCreateInstance(t)});ou(zG);const Vzt="toast",Izt="bs.toast",Zf=`.${Izt}`,Pzt=`mouseover${Zf}`,Mzt=`mouseout${Zf}`,Ozt=`focusin${Zf}`,Wzt=`focusout${Zf}`,Hzt=`hide${Zf}`,zzt=`hidden${Zf}`,jzt=`show${Zf}`,Kzt=`shown${Zf}`,Uzt="fade",Mle="hide",q2="show",J2="showing",qzt={animation:"boolean",autohide:"boolean",delay:"number"},Jzt={animation:!0,autohide:!0,delay:5e3};let MEe=class OEe extends qu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Jzt}static get DefaultType(){return qzt}static get NAME(){return Vzt}show(){if(Ee.trigger(this._element,jzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Uzt);const e=()=>{this._element.classList.remove(J2),Ee.trigger(this._element,Kzt),this._maybeScheduleHide()};this._element.classList.remove(Mle),jE(this._element),this._element.classList.add(q2,J2),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ee.trigger(this._element,Hzt).defaultPrevented)return;const e=()=>{this._element.classList.add(Mle),this._element.classList.remove(J2,q2),Ee.trigger(this._element,zzt)};this._element.classList.add(J2),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(q2),super.dispose()}isShown(){return this._element.classList.contains(q2)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ee.on(this._element,Pzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Mzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,Ozt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Wzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(MEe);ou(MEe);const QP=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),Gzt=t=>{throw new Error("Didn't expect to get here"+t)},Yzt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];hh.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});hh.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});hh.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});hh.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});hh.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});hh.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});hh.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return Yzt.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const Zzt=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});hd.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",xa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[z4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new Hn({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&Zzt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const WEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),Xzt=t=>QP(t),Qzt=t=>QP(t),ejt=t=>QP(t),tjt=t=>QP(t),ojt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n===r),njt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n<r),rjt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n>r),ijt=t=>{const e=ojt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=rjt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=njt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>tjt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},sjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Right,context:o})]).then(([n,r])=>n===r),ajt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:o})]).then(([n,r])=>n.includes(r)),ljt=t=>{const e=sjt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=ajt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>ejt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},ujt=t=>{const e=ijt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=ljt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>Qzt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},cjt=t=>{const e=ujt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>Xzt(n).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await o({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return o},djt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),mjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),hjt=t=>{const e="https://cdn.retailrocket.net/api/1.0/partner";return async({context:o,expression:n})=>t.numberExpressionEvaluator({numberExpression:n.ProductId,context:o}).then(r=>{const i="/"+t.partnerId+"/item/"+r+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both";return t.productImageResizerUrl?t.productImageResizerUrl+i:e+i})},pjt=t=>({localeKey:t.localeKey}),fjt=t=>({localeKey:t.localeKey}),gjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:fjt({localeKey:t.localeKey})}),yjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:pjt({localeKey:t.localeKey}),saveTemplateButtonDeps:gjt({localeKey:t.localeKey})}),Cjt=t=>({localeKey:t.localeKey}),bjt=t=>({localeKey:t.localeKey}),vjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:bjt({localeKey:t.localeKey})}),Sjt=t=>({exportMenuDeps:yjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:Cjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:vjt({localeKey:t.localeKey})}),wjt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),Tjt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>wjt(e))}),xjt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>Tjt(e)),Fjt=t=>async e=>(await t.postCreateThemeLibrarySectionItem({body:{partnerId:t.partnerId,parentSectionId:e.parentSectionId,sectionItemName:e.sectionItemName,theme:{json:JSON.stringify(e.theme)}}})).status===200?"Success":"Fail",kjt=t=>({sectionId:t.sectionId,sectionName:t.sectionName}),HEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>kjt(e)),Ljt=t=>({localeKey:t.localeKey,addThemeSectionItem:Fjt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:HEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Ejt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},_jt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:Ejt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),Bjt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Djt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Bjt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:HEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),$jt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:_jt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Djt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Rjt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Ajt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Rjt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Njt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Ajt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Vjt=t=>({localeKey:t.localeKey,themeSectionItemDeps:$jt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Njt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Ijt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},Pjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:Ijt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),Mjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),zEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:Mjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:Ljt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Vjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:Pjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),Ojt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:zEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),Wjt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Hjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:Wjt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),zjt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},jEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),jjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:zjt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:jEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Kjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:Hjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:jjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Ujt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",qjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Ujt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),Jjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:qjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Gjt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Kjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:Jjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Yjt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},Zjt=t=>({localeKey:t.localeKey,createComponentLibrarySection:Yjt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),Xjt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:Zjt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:Gjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Qjt=t=>({emailComponentDeps:t.emailComponentDeps}),eKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Qjt({emailComponentDeps:t.emailComponentDeps})}),tKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:eKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),oKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:Xjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:tKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),nKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:zEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:Ojt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),componentLibraryDeps:oKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),rKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},iKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:rKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:jEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),sKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),aKt=t=>({localeKey:t.localeKey}),lKt=t=>({movementMenuDeps:sKt({localeKey:t.localeKey}),draggingMenuDeps:aKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:iKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),uKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:lKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),cKt=t=>({localeKey:t.localeKey}),dKt=t=>({localeKey:t.localeKey}),mKt=t=>({localeKey:t.localeKey}),hKt=t=>({localeKey:t.localeKey}),pKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:hKt({localeKey:t.localeKey})}),jG=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:mKt({localeKey:t.localeKey}),customFontSettingsDeps:pKt({localeKey:t.localeKey})}),fKt=t=>({removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey}),truncateSpanEditorDeps:dKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:jG({localeKey:t.localeKey})}),gKt=t=>({localeKey:t.localeKey}),KEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:gKt({localeKey:t.localeKey})}),yKt=t=>({localeKey:t.localeKey,borderEditorDeps:KEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),KG=t=>({localeKey:t.localeKey}),CKt=t=>({localeKey:t.localeKey,borderEditorDeps:KEe({localeKey:t.localeKey}),colorEditorDeps:KG({localeKey:t.localeKey}),fontStyleEditorDeps:jG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),bKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey}),fontStyleEditorDeps:jG({localeKey:t.localeKey})}),vKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),SKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey}),colorEditorDeps:KG({localeKey:t.localeKey})}),wKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),TKt=t=>({spanEditorDeps:fKt({localeKey:t.localeKey}),imageEditorDeps:yKt({localeKey:t.localeKey}),buttonEditorDeps:CKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:bKt({localeKey:t.localeKey}),backgroundImageEditorDeps:vKt({localeKey:t.localeKey}),spacerEditorDeps:SKt({localeKey:t.localeKey}),richTextEditorDeps:wKt({localeKey:t.localeKey})}),xKt=t=>({localeKey:t.localeKey,colorEditorDeps:KG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ku({localeKey:t.localeKey})}),FKt=t=>{const e=cjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=qIt({localeKey:t.localeKey,elementsDeps:yPt({localeKey:t.localeKey,richTextToolbarPlugins:t.richTextToolbarPlugins,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin,expressionEvaluator:t.expressionEvaluator,listExpressionEvaluator:t.listExpressionEvaluator,numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator,boolExpressionEvaluator:e,dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),listExpressionEvaluator:t.listExpressionEvaluator,dataStructExpressionEvaluator:t.dataStructExpressionEvaluator,boolExpressionEvaluator:e});return{topMenuDeps:Sjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:xjt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:nKt({localeKey:t.localeKey,partnerId:t.partnerId,exitLink:t.exitLink,emailComponentDeps:o,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary,defaultComponentLibrary:t.defaultComponentLibrary}),emailTemplateDeps:uKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,emailComponentDeps:o,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient}),emptyEditorDeps:cKt({localeKey:t.localeKey}),elementsEditorDeps:TKt({localeKey:t.localeKey}),emailComponentEditorDeps:xKt({localeKey:t.localeKey}),template:t.template}},Xf=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,kKt=t=>({localeKey:t.localeKey,getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),LKt=t=>({localeKey:t.localeKey,getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),EKt=t=>({localeKey:t.localeKey,getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),_Kt=t=>({localeKey:t.localeKey,getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),UEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),UG=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:Gzt(t.stockSource)}},BKt=t=>async(e,o)=>{const n=UG({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>UEe(r))},DKt=t=>({localeKey:t.localeKey}),$Kt=t=>({selectedProductListItemDeps:DKt({localeKey:t.localeKey})}),RKt=t=>({localeKey:t.localeKey}),AKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:$Kt({localeKey:t.localeKey}),emptyProductListDeps:RKt({localeKey:t.localeKey})}),NKt=t=>({localeKey:t.localeKey}),VKt=t=>({localeKey:t.localeKey}),IKt=t=>({localeKey:t.localeKey}),PKt=t=>({searchedProductListItemDeps:VKt({localeKey:t.localeKey}),emptySearchProductListDeps:IKt({localeKey:t.localeKey})}),MKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:NKt({localeKey:t.localeKey}),searchedProductListDeps:PKt({localeKey:t.localeKey})}),OKt=t=>async(e,o)=>{const n=UG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>UEe(r))},WKt=t=>{const e=OKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=BKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:AKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:MKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},HKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),zKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},qEe=t=>async e=>(await zKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>HKt(o)),jKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),KKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},UKt=t=>async e=>(await KKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>jKt(o)),qKt=t=>({localeKey:t.localeKey}),JKt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:qKt({localeKey:t.localeKey})}),GKt=t=>({localeKey:t.localeKey}),YKt=t=>({localeKey:t.localeKey}),ZKt=t=>({emptySearchCategoryListDeps:YKt({localeKey:t.localeKey})}),XKt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:GKt({localeKey:t.localeKey}),searchedCategoryListDeps:ZKt({localeKey:t.localeKey})}),JEe=t=>{const e={},o=qEe({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=UKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:JKt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:XKt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},QKt=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),qG=t=>async(e,o)=>{const n=UG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>QKt(r))},eUt=t=>({localeKey:t.localeKey,getProductsByIDs:qG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),tUt=t=>({localeKey:t.localeKey,getProductsByIDs:qG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),oUt=t=>({localeKey:t.localeKey,getProductsByIDs:qG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),nUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:qEe({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Xf({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:JEe({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),GEe=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),C0=t=>WEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:GEe(t.parameters),DiscountPercentage:t.discountPercentage}),rUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>C0(e));var iUt=typeof global=="object"&&global&&global.Object===Object&&global,sUt=typeof self=="object"&&self&&self.Object===Object&&self,aUt=iUt||sUt||Function("return this")(),h3=aUt.Symbol;h3&&h3.toStringTag;h3&&h3.toStringTag;const{entries:YEe,setPrototypeOf:Ole,isFrozen:lUt,getPrototypeOf:uUt,getOwnPropertyDescriptor:cUt}=Object;let{freeze:as,seal:Hl,create:Y9}=Object,{apply:Z9,construct:X9}=typeof Reflect<"u"&&Reflect;as||(as=function(t){return t});Hl||(Hl=function(t){return t});Z9||(Z9=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return t.apply(e,n)});X9||(X9=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});const G2=ls(Array.prototype.forEach),dUt=ls(Array.prototype.lastIndexOf),Wle=ls(Array.prototype.pop),aT=ls(Array.prototype.push),mUt=ls(Array.prototype.splice),l$=ls(String.prototype.toLowerCase),s5=ls(String.prototype.toString),a5=ls(String.prototype.match),lT=ls(String.prototype.replace),hUt=ls(String.prototype.indexOf),pUt=ls(String.prototype.trim),bu=ls(Object.prototype.hasOwnProperty),wi=ls(RegExp.prototype.test),uT=fUt(TypeError);function ls(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return Z9(t,e,n)}}function fUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return X9(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l$;Ole&&Ole(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(lUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function gUt(t){for(let e=0;e<t.length;e++)bu(t,e)||(t[e]=null);return t}function lc(t){const e=Y9(null);for(const[o,n]of YEe(t))bu(t,o)&&(Array.isArray(n)?e[o]=gUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=lc(n):e[o]=n);return e}function cT(t,e){for(;t!==null;){const n=cUt(t,e);if(n){if(n.get)return ls(n.get);if(typeof n.value=="function")return ls(n.value)}t=uUt(t)}function o(){return null}return o}const Hle=as(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),l5=as(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),u5=as(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yUt=as(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),c5=as(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),CUt=as(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zle=as(["#text"]),jle=as(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),d5=as(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Kle=as(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y2=as(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bUt=Hl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vUt=Hl(/<%[\w\W]*|[\w\W]*%>/gm),SUt=Hl(/\$\{[\w\W]*/gm),wUt=Hl(/^data-[\-\w.\u00B7-\uFFFF]+$/),TUt=Hl(/^aria-[\-\w]+$/),ZEe=Hl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xUt=Hl(/^(?:\w+script|data):/i),FUt=Hl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),XEe=Hl(/^html$/i),kUt=Hl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ule=Object.freeze({__proto__:null,ARIA_ATTR:TUt,ATTR_WHITESPACE:FUt,CUSTOM_ELEMENT:kUt,DATA_ATTR:wUt,DOCTYPE_NAME:XEe,ERB_EXPR:vUt,IS_ALLOWED_URI:ZEe,IS_SCRIPT_OR_DATA:xUt,MUSTACHE_EXPR:bUt,TMPLIT_EXPR:SUt});const dT={element:1,text:3,progressingInstruction:7,comment:8,document:9},LUt=function(){return typeof window>"u"?null:window},EUt=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},qle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function QEe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LUt();const e=C=>QEe(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==dT.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:h}=t,p=l.prototype,f=cT(p,"cloneNode"),g=cT(p,"remove"),b=cT(p,"nextSibling"),v=cT(p,"childNodes"),S=cT(p,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let w,x="";const{implementation:F,createNodeIterator:D,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=qle();e.isSupported=typeof YEe=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:V,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ne}=Ule;let{IS_ALLOWED_URI:ve}=Ule,G=null;const Re=oo({},[...Hle,...l5,...u5,...c5,...zle]);let q=null;const me=oo({},[...jle,...d5,...Kle,...Y2]);let H=Object.seal(Y9(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,le=null;const ue=Object.seal(Y9(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let At=!0,Nt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,pe=!1,te=!1,ne=!0,Ge=!1;const Te="user-content-";let we=!0,xe=!1,Ae={},Ce=null;const Qe=oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const ko=oo({},["audio","video","img","source","image","track"]);let Co=null;const No=oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),go="http://www.w3.org/1998/Math/MathML",Lo="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let kt=tt,Uo=!1,qo=null;const au=oo({},[go,Lo,tt],s5);let $o=oo({},["mi","mo","mn","ms","mtext"]),Ro=oo({},["annotation-xml"]);const lu=oo({},["title","style","font","a","script"]);let yo=null;const uu=["application/xhtml+xml","text/html"],cu="text/html";let ge=null,jt=null;const du=o.createElement("form"),Rr=function(C){return C instanceof RegExp||C instanceof Function},yn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===C)){if((!C||typeof C!="object")&&(C={}),C=lc(C),yo=uu.indexOf(C.PARSER_MEDIA_TYPE)===-1?cu:C.PARSER_MEDIA_TYPE,ge=yo==="application/xhtml+xml"?s5:l$,G=bu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Re,q=bu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=bu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,s5):au,Co=bu(C,"ADD_URI_SAFE_ATTR")?oo(lc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=bu(C,"ADD_DATA_URI_TAGS")?oo(lc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=bu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=bu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):lc({}),le=bu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):lc({}),Ae=bu(C,"USE_PROFILES")?C.USE_PROFILES:!1,At=C.ALLOW_ARIA_ATTR!==!1,Nt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,pe=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Ge=C.SANITIZE_NAMED_PROPS||!1,we=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,ve=C.ALLOWED_URI_REGEXP||ZEe,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Rr(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Rr(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(Nt=!1),pe&&(de=!0),Ae&&(G=oo({},zle),q=[],Ae.html===!0&&(oo(G,Hle),oo(q,jle)),Ae.svg===!0&&(oo(G,l5),oo(q,d5),oo(q,Y2)),Ae.svgFilters===!0&&(oo(G,u5),oo(q,d5),oo(q,Y2)),Ae.mathMl===!0&&(oo(G,c5),oo(q,Kle),oo(q,Y2))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ue.tagCheck=C.ADD_TAGS:(G===Re&&(G=lc(G)),oo(G,C.ADD_TAGS,ge))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ue.attributeCheck=C.ADD_ATTR:(q===me&&(q=lc(q)),oo(q,C.ADD_ATTR,ge))),C.ADD_URI_SAFE_ATTR&&oo(Co,C.ADD_URI_SAFE_ATTR,ge),C.FORBID_CONTENTS&&(Ce===Qe&&(Ce=lc(Ce)),oo(Ce,C.FORBID_CONTENTS,ge)),C.ADD_FORBID_CONTENTS&&(Ce===Qe&&(Ce=lc(Ce)),oo(Ce,C.ADD_FORBID_CONTENTS,ge)),we&&(G["#text"]=!0),oe&&oo(G,["html","head","body"]),G.table&&(oo(G,["tbody"]),delete be.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw uT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw uT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=C.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=EUt(h,r)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));as&&as(C),jt=C}},Ar=oo({},[...l5,...u5,...yUt]),Nr=oo({},[...c5,...CUt]),mu=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const _=l$(C.tagName),J=l$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?_==="svg":k.namespaceURI===go?_==="svg"&&(J==="annotation-xml"||$o[J]):!!Ar[_]:C.namespaceURI===go?k.namespaceURI===tt?_==="math":k.namespaceURI===Lo?_==="math"&&Ro[J]:!!Nr[_]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[J]||k.namespaceURI===go&&!$o[J]?!1:!Nr[_]&&(lu[_]||!Ar[_]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){aT(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Pt=function(C,k){try{aT(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{aT(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||pe)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Vr=function(C){let k=null,_=null;if(ie)C="<remove></remove>"+C;else{const ae=a5(C,/^[\r\n\t ]+/);_=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const J=w?w.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(J,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:J}catch{}}const ye=k.body||k.documentElement;return C&&_&&ye.insertBefore(o.createTextNode(_),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Ir=function(C){return D.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Pr=function(C){return typeof a=="function"&&C instanceof a};function ht(C,k,_){G2(C,J=>{J.call(e,k,_,jt)})}const Mr=function(C){let k=null;if(ht(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const _=ge(C.nodeName);if(ht(E.uponSanitizeElement,C,{tagName:_,allowedTags:G}),ee&&C.hasChildNodes()&&!Pr(C.firstElementChild)&&wi(/<[/\w!]/g,C.innerHTML)&&wi(/<[/\w!]/g,C.textContent)||C.nodeType===dT.progressingInstruction||ee&&C.nodeType===dT.comment&&wi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(_))&&(!G[_]||be[_])){if(!be[_]&&Wr(_)&&(H.tagNameCheck instanceof RegExp&&wi(H.tagNameCheck,_)||H.tagNameCheck instanceof Function&&H.tagNameCheck(_)))return!1;if(we&&!Ce[_]){const J=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&J){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,J.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!mu(C)||(_==="noscript"||_==="noembed"||_==="noframes")&&wi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===dT.text&&(k=C.textContent,G2([L,A,V],J=>{k=lT(k,J," ")}),C.textContent!==k&&(aT(e.removed,{element:C.cloneNode()}),C.textContent=k)),ht(E.afterSanitizeElements,C,null),!1)},Or=function(C,k,_){if(ne&&(k==="id"||k==="name")&&(_ in o||_ in du))return!1;if(!(Nt&&!le[k]&&wi(W,k))&&!(At&&wi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Wr(C)&&(H.tagNameCheck instanceof RegExp&&wi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&wi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&wi(H.tagNameCheck,_)||H.tagNameCheck instanceof Function&&H.tagNameCheck(_))))return!1}else if(!Co[k]&&!wi(ve,lT(_,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&hUt(_,"data:")===0&&Fo[C])&&!(Et&&!wi(K,lT(_,fe,"")))&&_)return!1}return!0},Wr=function(C){return C!=="annotation-xml"&&a5(C,Ne)},Hr=function(C){ht(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const _={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let J=k.length;for(;J--;){const ye=k[J],{name:ae,namespaceURI:nt,value:et}=ye,at=ge(ae),Jo=et;let He=ae==="value"?Jo:pUt(Jo);if(_.attrName=at,_.attrValue=He,_.keepAttr=!0,_.forceKeepAttr=void 0,ht(E.uponSanitizeAttribute,C,_),He=_.attrValue,Ge&&(at==="id"||at==="name")&&(Pt(ae,C),He=Te+He),ee&&wi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Pt(ae,C);continue}if(at==="attributename"&&a5(He,"href")){Pt(ae,C);continue}if(_.forceKeepAttr)continue;if(!_.keepAttr){Pt(ae,C);continue}if(!z&&wi(/\/>/i,He)){Pt(ae,C);continue}j&&G2([L,A,V],Za=>{He=lT(He,Za," ")});const Eo=ge(C.nodeName);if(!Or(Eo,at,He)){Pt(ae,C);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!nt)switch(h.getAttributeType(Eo,at)){case"TrustedHTML":{He=w.createHTML(He);break}case"TrustedScriptURL":{He=w.createScriptURL(He);break}}if(He!==Jo)try{nt?C.setAttributeNS(nt,ae,He):C.setAttribute(ae,He),Cn(C)?_t(C):Wle(e.removed)}catch{Pt(ae,C)}}ht(E.afterSanitizeAttributes,C,null)},hu=function C(k){let _=null;const J=Ir(k);for(ht(E.beforeSanitizeShadowDOM,k,null);_=J.nextNode();)ht(E.uponSanitizeShadowNode,_,null),Mr(_),Hr(_),_.content instanceof i&&C(_.content);ht(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,J=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Pr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw uT("dirty is not a string, aborting")}else throw uT("toString is not a function");if(!e.isSupported)return C;if(re||yn(k),e.removed=[],typeof C=="string"&&(xe=!1),xe){if(C.nodeName){const at=ge(C.nodeName);if(!G[at]||be[at])throw uT("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)_=Vr("<!---->"),J=_.ownerDocument.importNode(C,!0),J.nodeType===dT.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?_=J:_.appendChild(J);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return w&&te?w.createHTML(C):C;if(_=Vr(C),!_)return de?null:te?x:""}_&&ie&&_t(_.firstChild);const nt=Ir(xe?C:_);for(;ye=nt.nextNode();)Mr(ye),Hr(ye),ye.content instanceof i&&hu(ye.content);if(xe)return C;if(de){if(pe)for(ae=N.call(_.ownerDocument);_.firstChild;)ae.appendChild(_.firstChild);else ae=_;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?_.outerHTML:_.innerHTML;return oe&&G["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&wi(XEe,_.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+_.ownerDocument.doctype.name+`>
194
194
  `+et),j&&G2([L,A,V],at=>{et=lT(et,at," ")}),w&&te?w.createHTML(et):et},e.setConfig=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yn(C),re=!0},e.clearConfig=function(){jt=null,re=!1},e.isValidAttribute=function(C,k,_){jt||yn({});const J=ge(C),ye=ge(k);return Or(J,ye,_)},e.addHook=function(C,k){typeof k=="function"&&aT(E[C],k)},e.removeHook=function(C,k){if(k!==void 0){const _=dUt(E[C],k);return _===-1?void 0:mUt(E[C],_,1)[0]}return Wle(E[C])},e.removeHooks=function(C){E[C]=[]},e.removeAllHooks=function(){E=qle()},e}QEe();function Gr(t){this.content=t}Gr.prototype={constructor:Gr,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,o){var n=o&&o!=t?this.remove(o):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(o||t,e):(i[r+1]=e,o&&(i[r]=o)),new Gr(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var o=this.content.slice();return o.splice(e,2),new Gr(o)},addToStart:function(t,e){return new Gr([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var o=this.remove(t).content.slice();return o.push(t,e),new Gr(o)},addBefore:function(t,e,o){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,o),new Gr(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Gr.from(t),t.size?new Gr(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Gr.from(t),t.size?new Gr(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Gr.from(t);for(var o=0;o<t.content.length;o+=2)e=e.remove(t.content[o]);return e},toObject:function(){var t={};return this.forEach(function(e,o){t[e]=o}),t},get size(){return this.content.length>>1}};Gr.from=function(t){if(t instanceof Gr)return t;var e=[];if(t)for(var o in t)e.push(o,t[o]);return new Gr(e)};function e_e(t,e,o){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:o;let r=t.child(n),i=e.child(n);if(r==i){o+=r.nodeSize;continue}if(!r.sameMarkup(i))return o;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)o++;return o}if(r.content.size||i.content.size){let s=e_e(r.content,i.content,o+1);if(s!=null)return s}o+=r.nodeSize}}function t_e(t,e,o,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:o,b:n};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){o-=l,n-=l;continue}if(!s.sameMarkup(a))return{a:o,b:n};if(s.isText&&s.text!=a.text){let u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,o--,n--;return{a:o,b:n}}if(s.content.size||a.content.size){let u=t_e(s.content,a.content,o-1,n-1);if(u)return u}o-=l,n-=l}}class Ie{constructor(e,o){if(this.content=e,this.size=o||0,o==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,o,n,r=0,i){for(let s=0,a=0;a<o;s++){let l=this.content[s],u=a+l.nodeSize;if(u>e&&n(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,o-c),n,r+c)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,o,n,r){let i="",s=!0;return this.nodesBetween(e,o,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,o-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let o=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(o.isText&&o.sameMarkup(n)&&(r[r.length-1]=o.withText(o.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Ie(r,this.size+e.size)}cut(e,o=this.size){if(e==0&&o==this.size)return this;let n=[],r=0;if(o>e)for(let i=0,s=0;s<o;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>o)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,o-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,o-s-1))),n.push(a),r+=a.nodeSize),s=l}return new Ie(n,r)}cutByIndex(e,o){return e==o?Ie.empty:e==0&&o==this.content.length?this:new Ie(this.content.slice(e,o))}replaceChild(e,o){let n=this.content[e];if(n==o)return this;let r=this.content.slice(),i=this.size+o.nodeSize-n.nodeSize;return r[e]=o,new Ie(r,i)}addToStart(e){return new Ie([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ie(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let o=0;o<this.content.length;o++)if(!this.content[o].eq(e.content[o]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let o=this.content[e];if(!o)throw new RangeError("Index "+e+" out of range for "+this);return o}maybeChild(e){return this.content[e]||null}forEach(e){for(let o=0,n=0;o<this.content.length;o++){let r=this.content[o];e(r,n,o),n+=r.nodeSize}}findDiffStart(e,o=0){return e_e(this,e,o)}findDiffEnd(e,o=this.size,n=e.size){return t_e(this,e,o,n)}findIndex(e){if(e==0)return Z2(0,e);if(e==this.size)return Z2(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,n=0;;o++){let r=this.child(o),i=n+r.nodeSize;if(i>=e)return i==e?Z2(o+1,i):Z2(o,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,o){if(!o)return Ie.empty;if(!Array.isArray(o))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ie(o.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ie.empty;let o,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(o||(o=e.slice(0,r)),o[o.length-1]=i.withText(o[o.length-1].text+i.text)):o&&o.push(i)}return new Ie(o||e,n)}static from(e){if(!e)return Ie.empty;if(e instanceof Ie)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Ie([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ie.empty=new Ie([],0);const m5={index:0,offset:0};function Z2(t,e){return m5.index=t,m5.offset=e,m5}function p3(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let o=Array.isArray(t);if(Array.isArray(e)!=o)return!1;if(o){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!p3(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!p3(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let cn=class Q9{constructor(e,o){this.type=e,this.attrs=o}addToSet(e){let o,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))o||(o=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(o||(o=e.slice(0,r)),o.push(this),n=!0),o&&o.push(i)}}return o||(o=e.slice()),n||o.push(this),o}removeFromSet(e){for(let o=0;o<e.length;o++)if(this.eq(e[o]))return e.slice(0,o).concat(e.slice(o+1));return e}isInSet(e){for(let o=0;o<e.length;o++)if(this.eq(e[o]))return!0;return!1}eq(e){return this==e||this.type==e.type&&p3(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[o.type];if(!n)throw new RangeError(`There is no mark type ${o.type} in this schema`);let r=n.create(o.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,o){if(e==o)return!0;if(e.length!=o.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(o[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Q9.none;if(e instanceof Q9)return[e];let o=e.slice();return o.sort((n,r)=>n.type.rank-r.type.rank),o}};cn.none=[];let f3=class extends Error{},ct=class e1{constructor(e,o,n){this.content=e,this.openStart=o,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,o){let n=n_e(this.content,e+this.openStart,o);return n&&new e1(n,this.openStart,this.openEnd)}removeBetween(e,o){return new e1(o_e(this.content,e+this.openStart,o+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,o){if(!o)return e1.empty;let n=o.openStart||0,r=o.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new e1(Ie.fromJSON(e,o.content),n,r)}static maxOpen(e,o=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.lastChild)r++;return new e1(e,n,r)}};ct.empty=new ct(Ie.empty,0,0);function o_e(t,e,o){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(o);if(r==e||i.isText){if(a!=o&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(o))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(o_e(i.content,e-r-1,o-r-1)))}function n_e(t,e,o,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,o)?null:t.cut(0,e).append(o).append(t.cut(e));let a=n_e(s.content,e-i-1,o,s);return a&&t.replaceChild(r,s.copy(a))}function _Ut(t,e,o){if(o.openStart>t.depth)throw new f3("Inserted content deeper than insertion position");if(t.depth-o.openStart!=e.depth-o.openEnd)throw new f3("Inconsistent open depths");return r_e(t,e,o,0)}function r_e(t,e,o,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-o.openStart){let s=r_e(t,e,o,n+1);return i.copy(i.content.replaceChild(r,s))}else if(o.content.size)if(!o.openStart&&!o.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return qy(s,a.cut(0,t.parentOffset).append(o.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=BUt(o,t);return qy(i,s_e(t,s,a,e,n))}else return qy(i,g3(t,e,n))}function i_e(t,e){if(!e.type.compatibleContent(t.type))throw new f3("Cannot join "+e.type.name+" onto "+t.type.name)}function ez(t,e,o){let n=t.node(o);return i_e(n,e.node(o)),n}function Uy(t,e){let o=e.length-1;o>=0&&t.isText&&t.sameMarkup(e[o])?e[o]=t.withText(e[o].text+t.text):e.push(t)}function DF(t,e,o,n){let r=(e||t).node(o),i=0,s=e?e.index(o):r.childCount;t&&(i=t.index(o),t.depth>o?i++:t.textOffset&&(Uy(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Uy(r.child(a),n);e&&e.depth==o&&e.textOffset&&Uy(e.nodeBefore,n)}function qy(t,e){return t.type.checkContent(e),t.copy(e)}function s_e(t,e,o,n,r){let i=t.depth>r&&ez(t,e,r+1),s=n.depth>r&&ez(o,n,r+1),a=[];return DF(null,t,r,a),i&&s&&e.index(r)==o.index(r)?(i_e(i,s),Uy(qy(i,s_e(t,e,o,n,r+1)),a)):(i&&Uy(qy(i,g3(t,e,r+1)),a),DF(e,o,r,a),s&&Uy(qy(s,g3(o,n,r+1)),a)),DF(n,null,r,a),new Ie(a)}function g3(t,e,o){let n=[];if(DF(null,t,o,n),t.depth>o){let r=ez(t,e,o+1);Uy(qy(r,g3(t,e,o+1)),n)}return DF(e,null,o,n),new Ie(n)}function BUt(t,e){let o=e.depth-t.openStart,n=e.node(o).copy(t.content);for(let r=o-1;r>=0;r--)n=e.node(r).copy(Ie.from(n));return{start:n.resolveNoCache(t.openStart+o),end:n.resolveNoCache(n.content.size-t.openEnd-o)}}let Jle=class tz{constructor(e,o,n){this.pos=e,this.path=o,this.parentOffset=n,this.depth=o.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,o=this.index(this.depth);if(o==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(o);return n?e.child(o).cut(n):r}get nodeBefore(){let e=this.index(this.depth),o=this.pos-this.path[this.path.length-1];return o?this.parent.child(e).cut(0,o):e==0?null:this.parent.child(e-1)}posAtIndex(e,o){o=this.resolveDepth(o);let n=this.path[o*3],r=o==0?0:this.path[o*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,o=this.index();if(e.content.size==0)return cn.none;if(this.textOffset)return e.child(o).marks;let n=e.maybeChild(o-1),r=e.maybeChild(o);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let o=this.parent.maybeChild(this.index());if(!o||!o.isInline)return null;let n=o.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let o=this.depth;o>0;o--)if(this.start(o)<=e&&this.end(o)>=e)return o;return 0}blockRange(e=this,o){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!o||o(this.node(n))))return new y3(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let o=1;o<=this.depth;o++)e+=(e?"/":"")+this.node(o).type.name+"_"+this.index(o-1);return e+":"+this.parentOffset}static resolve(e,o){if(!(o>=0&&o<=e.content.size))throw new RangeError("Position "+o+" out of range");let n=[],r=0,i=o;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),u=i-l;if(n.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new tz(o,n,i)}static resolveCached(e,o){let n=Gle.get(e);if(n)for(let i=0;i<n.elts.length;i++){let s=n.elts[i];if(s.pos==o)return s}else Gle.set(e,n=new DUt);let r=n.elts[n.i]=tz.resolve(e,o);return n.i=(n.i+1)%$Ut,r}},DUt=class{constructor(){this.elts=[],this.i=0}};const $Ut=12,Gle=new WeakMap;let y3=class{constructor(e,o,n){this.$from=e,this.$to=o,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const RUt=Object.create(null);let Jy=class oz{constructor(e,o,n,r=cn.none){this.type=e,this.attrs=o,this.marks=r,this.content=n||Ie.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,o,n,r=0){this.content.nodesBetween(e,o,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,o,n,r){return this.content.textBetween(e,o,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,o,n){return this.type==e&&p3(this.attrs,o||e.defaultAttrs||RUt)&&cn.sameSet(this.marks,n||cn.none)}copy(e=null){return e==this.content?this:new oz(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new oz(this.type,this.attrs,this.content,e)}cut(e,o=this.content.size){return e==0&&o==this.content.size?this:this.copy(this.content.cut(e,o))}slice(e,o=this.content.size,n=!1){if(e==o)return ct.empty;let r=this.resolve(e),i=this.resolve(o),s=n?0:r.sharedDepth(o),a=r.start(s),l=r.node(s).content.cut(r.pos-a,i.pos-a);return new ct(l,r.depth-s,i.depth-s)}replace(e,o,n){return _Ut(this.resolve(e),this.resolve(o),n)}nodeAt(e){for(let o=this;;){let{index:n,offset:r}=o.content.findIndex(e);if(o=o.maybeChild(n),!o)return null;if(r==e||o.isText)return o;e-=r+1}}childAfter(e){let{index:o,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(o),index:o,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:o,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(o),index:o,offset:n};let r=this.content.child(o-1);return{node:r,index:o-1,offset:n-r.nodeSize}}resolve(e){return Jle.resolveCached(this,e)}resolveNoCache(e){return Jle.resolve(this,e)}rangeHasMark(e,o,n){let r=!1;return o>e&&this.nodesBetween(e,o,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),a_e(this.marks,e)}contentMatchAt(e){let o=this.type.contentMatch.matchFragment(this.content,0,e);if(!o)throw new Error("Called contentMatchAt on a node with invalid content");return o}canReplace(e,o,n=Ie.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,o);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,o,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,o);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=cn.none;for(let o=0;o<this.marks.length;o++){let n=this.marks[o];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!cn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(o=>o.type.name)}`);this.content.forEach(o=>o.check())}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(o=>o.toJSON())),e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Node.fromJSON");let n;if(o.marks){if(!Array.isArray(o.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=o.marks.map(e.markFromJSON)}if(o.type=="text"){if(typeof o.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(o.text,n)}let r=Ie.fromJSON(e,o.content),i=e.nodeType(o.type).create(o.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Jy.prototype.text=void 0;let AUt=class nz extends Jy{constructor(e,o,n,r){if(super(e,o,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):a_e(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,o){return this.text.slice(e,o)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new nz(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new nz(this.type,this.attrs,e,this.marks)}cut(e=0,o=this.text.length){return e==0&&o==this.text.length?this:this.withText(this.text.slice(e,o))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function a_e(t,e){for(let o=t.length-1;o>=0;o--)e=t[o].type.name+"("+e+")";return e}let CL=class l_e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,o){let n=new NUt(e,o);if(n.next==null)return l_e.empty;let r=u_e(n);n.next&&n.err("Unexpected trailing text");let i=HUt(WUt(r));return zUt(i,n),i}matchType(e){for(let o=0;o<this.next.length;o++)if(this.next[o].type==e)return this.next[o].next;return null}matchFragment(e,o=0,n=e.childCount){let r=this;for(let i=o;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:o}=this.next[e];if(!(o.isText||o.hasRequiredAttrs()))return o}return null}compatible(e){for(let o=0;o<this.next.length;o++)for(let n=0;n<e.next.length;n++)if(this.next[o].type==e.next[n].type)return!0;return!1}fillBefore(e,o=!1,n=0){let r=[this];function i(s,a){let l=s.matchFragment(e,n);if(l&&(!o||l.validEnd))return Ie.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(c));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let o=this.computeWrapping(e);return this.wrapCache.push(e,o),o}computeWrapping(e){let o=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in o)&&(!r.type||l.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),o[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function o(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&o(n.next[r].next)}return o(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
195
195
  `)}};CL.empty=new CL(!0);let NUt=class{constructor(e,o){this.string=e,this.nodeTypes=o,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function u_e(t){let e=[];do e.push(VUt(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function VUt(t){let e=[];do e.push(IUt(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function IUt(t){let e=OUt(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=PUt(t,e);else break;return e}function Yle(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function PUt(t,e){let o=Yle(t),n=o;return t.eat(",")&&(t.next!="}"?n=Yle(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:o,max:n,expr:e}}function MUt(t,e){let o=t.nodeTypes,n=o[e];if(n)return[n];let r=[];for(let i in o){let s=o[i];s.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function OUt(t){if(t.eat("(")){let e=u_e(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=MUt(t,t.next).map(o=>(t.inline==null?t.inline=o.isInline:t.inline!=o.isInline&&t.err("Mixing inline and block content"),{type:"name",value:o}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function WUt(t){let e=[[]];return r(i(t,0),o()),e;function o(){return e.push([])-1}function n(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,a=o())}else if(s.type=="star"){let l=o();return n(a,l),r(i(s.expr,l),l),[n(l)]}else if(s.type=="plus"){let l=o();return r(i(s.expr,a),l),r(i(s.expr,l),l),[n(l)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let u=0;u<s.min;u++){let c=o();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=o();n(l,c),r(i(s.expr,l),c),l=c}return[n(l)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function c_e(t,e){return e-t}function Zle(t,e){let o=[];return n(e),o.sort(c_e);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);o.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&o.indexOf(l)==-1&&n(l)}}}function HUt(t){let e=Object.create(null);return o(Zle(t,0));function o(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);Zle(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[n.join(",")]=new CL(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(c_e);i.next.push({type:r[s][0],next:e[a.join(",")]||o(a)})}return i}}function zUt(t,e){for(let o=0,n=[t];o<n.length;o++){let r=n[o],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function d_e(t){let e=Object.create(null);for(let o in t){let n=t[o];if(!n.hasDefault)return null;e[o]=n.default}return e}function m_e(t,e){let o=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}o[n]=r}return o}function h_e(t,e,o,n){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${o} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function p_e(t,e){let o=Object.create(null);if(e)for(let n in e)o[n]=new KUt(t,n,e[n]);return o}let Xle=class f_e{constructor(e,o,n){this.name=e,this.schema=o,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=p_e(e,n.attrs),this.defaultAttrs=d_e(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==CL.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:m_e(this.attrs,e)}create(e=null,o,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Jy(this,this.computeAttrs(e),Ie.from(o),cn.setFrom(n))}createChecked(e=null,o,n){return o=Ie.from(o),this.checkContent(o),new Jy(this,this.computeAttrs(e),o,cn.setFrom(n))}createAndFill(e=null,o,n){if(e=this.computeAttrs(e),o=Ie.from(o),o.size){let s=this.contentMatch.fillBefore(o);if(!s)return null;o=s.append(o)}let r=this.contentMatch.matchFragment(o),i=r&&r.fillBefore(Ie.empty,!0);return i?new Jy(this,e,o.append(i),cn.setFrom(n)):null}validContent(e){let o=this.contentMatch.matchFragment(e);if(!o||!o.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){h_e(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let o=0;o<e.length;o++)if(!this.allowsMarkType(e[o].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let o;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?o&&o.push(e[n]):o||(o=e.slice(0,n));return o?o.length?o:cn.none:e}static compile(e,o){let n=Object.create(null);e.forEach((i,s)=>n[i]=new f_e(i,o,s));let r=o.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function jUt(t,e,o){let n=o.split("|");return r=>{let i=r===null?"null":typeof r;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${t}, got ${i}`)}}let KUt=class{constructor(e,o,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?jUt(e,o,n.validate):n.validate}get isRequired(){return!this.hasDefault}},g_e=class y_e{constructor(e,o,n,r){this.name=e,this.rank=o,this.schema=n,this.spec=r,this.attrs=p_e(e,r.attrs),this.excluded=null;let i=d_e(this.attrs);this.instance=i?new cn(this,i):null}create(e=null){return!e&&this.instance?this.instance:new cn(this,m_e(this.attrs,e))}static compile(e,o){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new y_e(i,r++,o,s)),n}removeFromSet(e){for(var o=0;o<e.length;o++)e[o].type==this&&(e=e.slice(0,o).concat(e.slice(o+1)),o--);return e}isInSet(e){for(let o=0;o<e.length;o++)if(e[o].type==this)return e[o]}checkAttrs(e){h_e(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},UUt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let o=this.spec={};for(let r in e)o[r]=e[r];o.nodes=Gr.from(e.nodes),o.marks=Gr.from(e.marks||{}),this.nodes=Xle.compile(this.spec.nodes,this),this.marks=g_e.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=CL.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Qle(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Qle(this,s.split(" "))}this.nodeFromJSON=r=>Jy.fromJSON(this,r),this.markFromJSON=r=>cn.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,o=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Xle){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(o,n,r)}text(e,o){let n=this.nodes.text;return new AUt(n,n.defaultAttrs,e,cn.setFrom(o))}mark(e,o){return typeof e=="string"&&(e=this.marks[e]),e.create(o)}nodeType(e){let o=this.nodes[e];if(!o)throw new RangeError("Unknown node type: "+e);return o}};function Qle(t,e){let o=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],s=i;if(i)o.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&o.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return o}function qUt(t){return t.tag!=null}function JUt(t){return t.style!=null}let u$=class rz{constructor(e,o){this.schema=e,this.rules=o,this.tags=[],this.styles=[];let n=this.matchedStyles=[];o.forEach(r=>{if(qUt(r))this.tags.push(r);else if(JUt(r)){let i=/[^=]*/.exec(r.style)[0];n.indexOf(i)<0&&n.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,o={}){let n=new tue(this,o,!1);return n.addAll(e,cn.none,o.from,o.to),n.finish()}parseSlice(e,o={}){let n=new tue(this,o,!0);return n.addAll(e,cn.none,o.from,o.to),ct.maxOpen(n.finish())}matchTag(e,o,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(ZUt(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||o.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,o,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!n.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=o))){if(s.getAttrs){let l=s.getAttrs(o);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let o=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<o.length;s++){let a=o[s];if((a.priority==null?50:a.priority)<i)break}o.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=oue(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=oue(s)),s.node||s.ignore||s.mark||(s.node=r)})}return o}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new rz(e,rz.schemaRules(e)))}};const C_e={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},GUt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},b_e={ol:!0,ul:!0},bL=1,iz=2,$F=4;function eue(t,e,o){return e!=null?(e?bL:0)|(e==="full"?iz:0):t&&t.whitespace=="pre"?bL|iz:o&~$F}let X2=class{constructor(e,o,n,r,i,s){this.type=e,this.attrs=o,this.marks=n,this.solid=r,this.options=s,this.content=[],this.activeMarks=cn.none,this.match=i||(s&$F?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let o=this.type.contentMatch.fillBefore(Ie.from(e));if(o)this.match=this.type.contentMatch.matchFragment(o);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&bL)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let o=Ie.from(this.content);return!e&&this.match&&(o=o.append(this.match.fillBefore(Ie.empty,!0))),this.type?this.type.create(this.attrs,o,this.marks):o}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!C_e.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},tue=class{constructor(e,o,n){this.parser=e,this.options=o,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=o.topNode,i,s=eue(null,o.preserveWhitespace,0)|(n?$F:0);r?i=new X2(r.type,r.attrs,cn.none,!0,o.topMatch||r.type.contentMatch,s):n?i=new X2(null,null,cn.none,!0,null,s):i=new X2(e.schema.topNodeType,null,cn.none,!0,null,s),this.nodes=[i],this.find=o.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,o){e.nodeType==3?this.addTextNode(e,o):e.nodeType==1&&this.addElement(e,o)}addTextNode(e,o){let n=e.nodeValue,r=this.top,i=r.options&iz?"full":this.localPreserveWS||(r.options&bL)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i==="full")n=n.replace(/\r\n?/g,`
196
196
  `);else if(s.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=n.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),o,!0),a[l]&&this.insertNode(s.text(a[l]),o,!/\S/.test(a[l]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(n=n.slice(1))}n&&this.insertNode(s.text(n),o,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,o,n){let r=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;b_e.hasOwnProperty(s)&&this.parser.normalizeLists&&YUt(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,n));e:if(l?l.ignore:GUt.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,o);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,c=this.needsBlock;if(C_e.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,o);break e}let d=l&&l.skip?o:this.readStyles(e,o);d&&this.addAll(e,d),u&&this.sync(i),this.needsBlock=c}else{let u=this.readStyles(e,o);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,o){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@retailrocketgroup/retailrocket-edit.multicast-vue-email-template-render",
3
- "version": "6.0.388781",
3
+ "version": "6.0.388803",
4
4
  "private": false
5
5
  }