apprun 3.38.0 → 6.0.0-rc.0

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.
Files changed (113) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/README.md +18 -10
  3. package/apprun.d.ts +67 -23
  4. package/dist/apprun-code.js +1 -1
  5. package/dist/apprun-code.js.map +1 -1
  6. package/dist/apprun-dev-tools.js +1 -1
  7. package/dist/apprun-dev-tools.js.map +1 -1
  8. package/dist/apprun-html.esm.js +7 -7
  9. package/dist/apprun-html.esm.js.map +1 -1
  10. package/dist/apprun-html.js +1 -1
  11. package/dist/apprun-html.js.map +1 -1
  12. package/dist/apprun-play.js +1 -1
  13. package/dist/apprun-play.js.map +1 -1
  14. package/dist/apprun.esm.js +1 -1
  15. package/dist/apprun.esm.js.map +1 -1
  16. package/dist/apprun.js +1 -1
  17. package/dist/apprun.js.map +1 -1
  18. package/esm/add-components.js +7 -7
  19. package/esm/add-components.js.map +1 -1
  20. package/esm/app.js +81 -32
  21. package/esm/app.js.map +1 -1
  22. package/esm/apprun-code.js +8 -2
  23. package/esm/apprun-code.js.map +1 -1
  24. package/esm/apprun-html.js +14 -9
  25. package/esm/apprun-html.js.map +1 -1
  26. package/esm/apprun-play.js +7 -1
  27. package/esm/apprun-play.js.map +1 -1
  28. package/esm/apprun.js +38 -19
  29. package/esm/apprun.js.map +1 -1
  30. package/esm/component.js +90 -37
  31. package/esm/component.js.map +1 -1
  32. package/esm/directive.js +1 -1
  33. package/esm/directive.js.map +1 -1
  34. package/esm/router.js +73 -19
  35. package/esm/router.js.map +1 -1
  36. package/esm/types.js +2 -1
  37. package/esm/types.js.map +1 -1
  38. package/esm/vdom-my.js +52 -52
  39. package/esm/vdom-my.js.map +1 -1
  40. package/esm/vdom-to-html.js +8 -1
  41. package/esm/vdom-to-html.js.map +1 -1
  42. package/esm/vdom.js +3 -3
  43. package/esm/vdom.js.map +1 -1
  44. package/esm/version.js +1 -1
  45. package/esm/version.js.map +1 -1
  46. package/esm/web-component.js +23 -6
  47. package/esm/web-component.js.map +1 -1
  48. package/jsx-runtime.js +1 -1
  49. package/jsx-runtime.js.map +1 -1
  50. package/package.json +62 -2
  51. package/.clinerules +0 -1
  52. package/.travis.yml +0 -10
  53. package/BACKERS.md +0 -8
  54. package/CNAME +0 -1
  55. package/WHATSNEW.md +0 -367
  56. package/ai/apprun-html.prompt.md +0 -290
  57. package/ai/apprun.prompt.md +0 -602
  58. package/apprun-book.jpg +0 -0
  59. package/dist/apprun-dev-tools-tests.js +0 -1
  60. package/dist/apprun-dev-tools.js.LICENSE.txt +0 -1
  61. package/dist/apprun-play-html.esm.js +0 -34
  62. package/dist/apprun-play-html.esm.js.map +0 -1
  63. package/error.log +0 -0
  64. package/esm/apprun-play-html.js +0 -210
  65. package/esm/apprun-play-html.js.map +0 -1
  66. package/esm/shadow.js +0 -8
  67. package/esm/shadow.js.map +0 -1
  68. package/esm/vdom-html.js +0 -22
  69. package/esm/vdom-html.js.map +0 -1
  70. package/esm/vdom-my-new.js +0 -327
  71. package/esm/vdom-my-new.js.map +0 -1
  72. package/esm/vdom-patch.js +0 -103
  73. package/esm/vdom-patch.js.map +0 -1
  74. package/index.html +0 -87
  75. package/jest.config.js +0 -57
  76. package/jest.setup.js +0 -73
  77. package/logo.png +0 -0
  78. package/react.js +0 -13
  79. package/rollup.config.js +0 -62
  80. package/src/add-components.ts +0 -103
  81. package/src/app.ts +0 -173
  82. package/src/apprun-code.tsx +0 -177
  83. package/src/apprun-dev-tools-tests.tsx +0 -101
  84. package/src/apprun-dev-tools.tsx +0 -307
  85. package/src/apprun-html.ts +0 -25
  86. package/src/apprun-play.tsx +0 -249
  87. package/src/apprun.ts +0 -238
  88. package/src/component.ts +0 -388
  89. package/src/createState.ts +0 -11
  90. package/src/decorator.ts +0 -98
  91. package/src/directive.ts +0 -303
  92. package/src/global.d.ts +0 -22
  93. package/src/router.ts +0 -311
  94. package/src/shadow.tsx +0 -8
  95. package/src/tsconfig.json +0 -16
  96. package/src/type-utils.ts +0 -130
  97. package/src/types.ts +0 -151
  98. package/src/vdom-html.ts_ +0 -20
  99. package/src/vdom-lit-html.ts +0 -67
  100. package/src/vdom-my-new.ts +0 -311
  101. package/src/vdom-my-prop-attr.ts +0 -241
  102. package/src/vdom-my.ts +0 -286
  103. package/src/vdom-patch.ts +0 -108
  104. package/src/vdom-to-html.tsx +0 -49
  105. package/src/vdom.ts +0 -28
  106. package/src/version.ts +0 -16
  107. package/src/web-component.ts +0 -154
  108. package/tsconfig.jest.json +0 -49
  109. package/tsconfig.json +0 -16
  110. package/tslint.json +0 -114
  111. package/typescriptreact.json +0 -87
  112. package/viewEngine.js +0 -54
  113. package/webpack.config.cjs +0 -41
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see apprun-html.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apprun=e():t.apprun=e()}(this,(()=>(()=>{"use strict";var t={320:(t,e,n)=>{n.d(e,{Fragment:()=>o.FK,createElement:()=>o.n,render:()=>o.cJ,safeHTML:()=>o.t_});var o=n(593)},593:(t,e,n)=>{n.d(e,{FK:()=>F,n:()=>J,t_:()=>Q,cJ:()=>Y});var o={};n.r(o),n.d(o,{boolean:()=>s,booleanish:()=>a,commaOrSpaceSeparated:()=>p,commaSeparated:()=>d,number:()=>c,overloadedBoolean:()=>u,spaceSeparated:()=>h});var r=n(741);class l{constructor(t,e){this.attribute=e,this.property=t}}l.prototype.attribute="",l.prototype.booleanish=!1,l.prototype.boolean=!1,l.prototype.commaOrSpaceSeparated=!1,l.prototype.commaSeparated=!1,l.prototype.defined=!1,l.prototype.mustUseProperty=!1,l.prototype.number=!1,l.prototype.overloadedBoolean=!1,l.prototype.property="",l.prototype.spaceSeparated=!1,l.prototype.space=void 0;let i=0;const s=f(),a=f(),u=f(),c=f(),h=f(),d=f(),p=f();function f(){return 2**++i}const g=Object.keys(o);class m extends l{constructor(t,e,n,r){let l=-1;if(super(t,e),y(this,"space",r),"number"==typeof n)for(;++l<g.length;){const t=g[l];y(this,g[l],(n&o[t])===o[t])}}}function y(t,e,n){n&&(t[e]=n)}function v(t){return t.toLowerCase()}m.prototype.defined=!0;const _=/[A-Z]/g,b=/-[a-z]/g,A=/^data[-\w.:]+$/i;function $(t){return"-"+t.toLowerCase()}function E(t){return t.charAt(1).toUpperCase()}class S{constructor(t,e,n){this.normal=e,this.property=t,n&&(this.space=n)}}function w(t,e){const n={},o={};for(const e of t)Object.assign(n,e.property),Object.assign(o,e.normal);return new S(n,o,e)}function C(t){const e={},n={};for(const[o,r]of Object.entries(t.properties)){const l=new m(o,t.transform(t.attributes||{},o),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(l.mustUseProperty=!0),e[o]=l,n[v(o)]=o,n[v(l.attribute)]=o}return new S(e,n,t.space)}S.prototype.normal={},S.prototype.property={},S.prototype.space=void 0;const k=C({properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:c,ariaColIndex:c,ariaColSpan:c,ariaControls:h,ariaCurrent:null,ariaDescribedBy:h,ariaDetails:null,ariaDisabled:a,ariaDropEffect:h,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:h,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:h,ariaLevel:c,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:h,ariaPlaceholder:null,ariaPosInSet:c,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:h,ariaRowCount:c,ariaRowIndex:c,ariaRowSpan:c,ariaSelected:a,ariaSetSize:c,ariaSort:null,ariaValueMax:c,ariaValueMin:c,ariaValueNow:c,ariaValueText:null,role:null},transform:(t,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase()});function P(t,e){return e in t?t[e]:e}function x(t,e){return P(t,e.toLowerCase())}const O=C({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:h,accessKey:h,action:null,allow:null,allowFullScreen:s,allowPaymentRequest:s,allowUserMedia:s,alt:null,as:null,async:s,autoCapitalize:null,autoComplete:h,autoFocus:s,autoPlay:s,blocking:h,capture:null,charSet:null,checked:s,cite:null,className:h,cols:c,colSpan:null,content:null,contentEditable:a,controls:s,controlsList:h,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:s,defer:s,dir:null,dirName:null,disabled:s,download:u,draggable:a,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:s,formTarget:null,headers:h,height:c,hidden:u,high:c,href:null,hrefLang:null,htmlFor:h,httpEquiv:h,id:null,imageSizes:null,imageSrcSet:null,inert:s,inputMode:null,integrity:null,is:null,isMap:s,itemId:null,itemProp:h,itemRef:h,itemScope:s,itemType:h,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:s,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:s,muted:s,name:null,nonce:null,noModule:s,noValidate:s,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:s,optimum:c,pattern:null,ping:h,placeholder:null,playsInline:s,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:s,referrerPolicy:null,rel:h,required:s,reversed:s,rows:c,rowSpan:c,sandbox:h,scope:null,scoped:s,seamless:s,selected:s,shadowRootClonable:s,shadowRootDelegatesFocus:s,shadowRootMode:null,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:a,src:null,srcDoc:null,srcLang:null,srcSet:null,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:s,useMap:null,value:a,width:c,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:h,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:s,declare:s,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:s,noHref:s,noShade:s,noWrap:s,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:a,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:s,disableRemotePlayback:s,prefix:null,property:null,results:c,security:null,unselectable:null},space:"html",transform:x}),T=C({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:p,accentHeight:c,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:c,amplitude:c,arabicForm:null,ascent:c,attributeName:null,attributeType:null,azimuth:c,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:c,by:null,calcMode:null,capHeight:c,className:h,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:c,diffuseConstant:c,direction:null,display:null,dur:null,divisor:c,dominantBaseline:null,download:s,dx:null,dy:null,edgeMode:null,editable:null,elevation:c,enableBackground:null,end:null,event:null,exponent:c,externalResourcesRequired:null,fill:null,fillOpacity:c,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:d,g2:d,glyphName:d,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:c,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:c,horizOriginX:c,horizOriginY:c,id:null,ideographic:c,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:c,k:c,k1:c,k2:c,k3:c,k4:c,kernelMatrix:p,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:c,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:c,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:c,overlineThickness:c,paintOrder:null,panose1:null,path:null,pathLength:c,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:h,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:c,pointsAtY:c,pointsAtZ:c,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:p,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:p,rev:p,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:p,requiredFeatures:p,requiredFonts:p,requiredFormats:p,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:c,specularExponent:c,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:c,strikethroughThickness:c,string:null,stroke:null,strokeDashArray:p,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:c,strokeOpacity:c,strokeWidth:null,style:null,surfaceScale:c,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:p,tabIndex:c,tableValues:null,target:null,targetX:c,targetY:c,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:p,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:c,underlineThickness:c,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:c,values:null,vAlphabetic:c,vMathematical:c,vectorEffect:null,vHanging:c,vIdeographic:c,version:null,vertAdvY:c,vertOriginX:c,vertOriginY:c,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:c,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:P}),M=C({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase()}),R=C({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:x}),L=C({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase()}),U=w([k,O,M,R,L],"html"),D=w([k,T,M,R,L],"svg"),N="_props",H=new Map;function j(t,e,n){!function(t){return null!=t&&!1!==t&&""!==t&&(!0===t||("string"==typeof t?"false"!==t.toLowerCase()&&"0"!==t:Boolean(t)))}(n)?t.removeAttribute(e):t.setAttribute(e,e)}function B(t,e,n){try{t[e]=n}catch(o){I(t,e,n,!1)}}function I(t,e,n,o){if(null==n)return void t.removeAttribute(e);const r=String(n);if(o&&e.includes(":")){const[n]=e.split(":");"xlink"===n?t.setAttributeNS("http://www.w3.org/1999/xlink",e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}function W(t,e,n,o){if(r=t,i=e,document.activeElement===r?["selectionStart","selectionEnd","selectionDirection"].includes(i):"scrollTop"===i||"scrollLeft"===i||r instanceof HTMLMediaElement&&["currentTime","paused","playbackRate","volume"].includes(i))return;var r,i;if("style"===e){if(t.style.cssText&&(t.style.cssText=""),"string"==typeof n)t.style.cssText=n;else if(n&&"object"==typeof n)for(const e in n)t.style[e]!==n[e]&&(t.style[e]=n[e]);return}if("key"===e)return void(null!=n&&(t.key=n));if(e.startsWith("data-"))return void function(t,e,n){const o=(r=e.slice(5)).length<=1?r.toLowerCase():r.split("-").map(((t,e)=>0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase())).join("");var r;null==n?delete t.dataset[o]:t.dataset[o]=String(n)}(t,e,n);if(e.startsWith("on"))return void function(t,e,n){e.startsWith("on")&&(n&&"function"!=typeof n?"string"==typeof n&&(n?t.setAttribute(e,n):t.removeAttribute(e)):t[e]=n)}(t,e,n);if(!("INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&"SELECT"!==t.tagName||"value"!==e&&"selected"!==e&&"selectedIndex"!==e))return void B(t,e,n);if("INPUT"===t.tagName&&"checked"===e)return B(t,e,n),void j(t,e,n);const s=function(t,e){const n=`${t}:${e}`;let o=H.get(n);return void 0===o&&(o=function(t,e){const n=v(e);let o=e,r=l;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&A.test(e)){if("-"===e.charAt(4)){const t=e.slice(5).replace(b,E);o="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=e.slice(4);if(!b.test(t)){let n=t.replace(_,$);"-"!==n.charAt(0)&&(n="-"+n),e="data"+n}}r=m}return new r(o,e)}(e?D:U,t)||null,H.set(n,o)),o}(e,o);s?s.boolean||s.overloadedBoolean?j(t,s.attribute,n):s.mustUseProperty&&!o?B(t,s.property,n):I(t,s.attribute,n,o):e.startsWith("aria-")||"role"===e?I(t,e,n,o):e in t||void 0!==t[e]?B(t,e,n):I(t,e,n,o)}function z(t){return/^[a-zA-Z_:][\w\-:.]*$/.test(t)&&!t.includes("<")&&!t.includes(">")&&!t.includes('"')&&!t.includes("'")}function V(t,e,n){const o=function(t,e){if(e&&(e.class=e.class||e.className,delete e.className),!t||0===Object.keys(t).length)return e||{};if(!e||0===Object.keys(e).length){const e={};return Object.keys(t).forEach((t=>e[t]=null)),e}const n={};return Object.keys(t).forEach((t=>{t in e||(n[t]=null)})),Object.keys(e).forEach((t=>n[t]=e[t])),n}(t[N]||{},e);t[N]=e||{},function(t,e,n,o){for(const n in e)z(n)&&W(t,n,e[n],o);e&&"function"==typeof e.ref&&window.requestAnimationFrame((()=>e.ref(t)))}(t,o,0,n)}function F(t,...e){return q(e)}function q(t){const e=[],n=t=>{null!=t&&""!==t&&!1!==t&&e.push("function"==typeof t||"object"==typeof t?t:`${t}`)};return t&&t.forEach((t=>{Array.isArray(t)?t.forEach((t=>n(t))):n(t)})),e}const K={};let X=0;function J(t,e,...n){const o=q(n);if("string"==typeof t)return{tag:t,props:e,children:o};if(Array.isArray(t))return t;if(void 0===t&&n)return o;if(Object.getPrototypeOf(t).__isAppRunComponent)return{tag:t,props:e,children:o};if("function"==typeof t)return t(e,o);throw new Error(`Unknown tag in vdom ${t}`)}const Y=(t,e,n={})=>{null!=e&&!1!==e&&function(t,e,n={}){if(null==e||!1===e)return;if(e=nt(e,n),!t)return;const o="SVG"===t.nodeName;Array.isArray(e)?G(t,e,o):G(t,[e],o)}("string"==typeof t&&t?document.getElementById(t)||document.querySelector(t):t,e=(0,r.A)(e,n),n)};function Z(t,e,n){n=n||"svg"===e.tag,function(t,e){const n=t.nodeName,o=`${e.tag||""}`;return n.toUpperCase()===o.toUpperCase()}(t,e)?(G(t,e.children,n),V(t,e.props,n)):t.parentNode.replaceChild(et(e,n),t)}function G(t,e,n){const o=t.childNodes?.length||0,r=e?.length||0,l=Math.min(o,r);for(let o=0;o<l;o++){const r=e[o],l=t.childNodes[o];if("string"==typeof r)l.textContent!==r&&(3===l.nodeType?l.nodeValue=r:t.replaceChild(tt(r),l));else if(r instanceof HTMLElement||r instanceof SVGElement)t.insertBefore(r,l);else{const e=r.props&&r.props.key;if(e)if(l.key===e)Z(t.childNodes[o],r,n);else{const i=K[e];i?(t.insertBefore(i,l),Z(t.childNodes[o],r,n)):t.replaceChild(et(r,n),l)}else Z(t.childNodes[o],r,n)}}let i=t.childNodes?.length||0;for(;i>l;)t.removeChild(t.lastChild),i--;if(r>l){const o=document.createDocumentFragment();for(let t=l;t<e.length;t++)o.appendChild(et(e[t],n));t.appendChild(o)}}const Q=t=>{const e=document.createElement("section");return e.insertAdjacentHTML("afterbegin",t),Array.from(e.children)};function tt(t){if(0===t?.indexOf("_html:")){const e=document.createElement("div");return e.insertAdjacentHTML("afterbegin",t.substring(6)),e}return document.createTextNode(t??"")}function et(t,e){if(t instanceof HTMLElement||t instanceof SVGElement)return t;if("string"==typeof t)return tt(t);if(!t.tag||"function"==typeof t.tag)return tt(JSON.stringify(t));const n=(e=e||"svg"===t.tag)?document.createElementNS("http://www.w3.org/2000/svg",t.tag):document.createElement(t.tag);return V(n,t.props,e),t.children&&t.children.forEach((t=>n.appendChild(et(t,e)))),t.props&&void 0!==t.props.key&&(n.key=t.props.key,K[t.props.key]=n,++X>=500&&(function(){if(!(Object.keys(K).length<=1e3))for(const[t,e]of Object.entries(K))e.isConnected||delete K[t]}(),X=0)),n}function nt(t,e,n=0){if("string"==typeof t)return t;if(Array.isArray(t))return t.map((t=>nt(t,e,n++)));let o=t;if(t&&"function"==typeof t.tag&&Object.getPrototypeOf(t.tag).__isAppRunComponent&&(o=function(t,e,n){const{tag:o,props:r,children:l}=t;let i=`_${n}`,s=r&&r.id;s?i=s:s=`_${n}${Date.now()}`;let a="section";r&&r.as&&(a=r.as,delete r.as),e.__componentCache||(e.__componentCache={});let u=e.__componentCache[i];if(u&&u instanceof o&&u.element)u.renderState(u.state);else{const t=document.createElement(a);u=e.__componentCache[i]=new o({...r,children:l}).mount(t,{render:!0})}if(u.mounted){const t=u.mounted(r,l,u.state);void 0!==t&&u.setState(t)}return V(u.element,r,!1),u.element}(t,e,n)),o&&Array.isArray(o.children)){const t=o.props?._component;if(t){let e=0;o.children=o.children.map((n=>nt(n,t,e++)))}else o.children=o.children.map((t=>nt(t,e,n++)))}return o}},634:(t,e,n)=>{function o(t){return t?.target instanceof HTMLElement?t.target:null}function r(t,e){"object"==typeof t&&null!==t&&Object.keys(e).forEach((n=>{t[n]=e[n]}))}function l(t,e=document){try{return e.querySelector(t)}catch(e){return console.warn(`Invalid selector: ${t}`,e),null}}function i(t){try{return document.getElementById(t)}catch(e){return console.warn(`Error getting element by id: ${t}`,e),null}}n.d(e,{PB:()=>o,Q0:()=>r,bV:()=>l,oP:()=>i})},672:(t,e,n)=>{n.d(e,{C:()=>r,a:()=>o});const o="3.38.0",r=`AppRun-${o}`},741:(t,e,n)=>{n.d(e,{A:()=>u});var o=n(859),r=n(634);const l=t=>{if(!t)return[];const e=[];let n="",o=!1,r="";for(let l=0;l<t.length;l++){const i=t[l];"["!==i||o?"]"===i&&o?(r?n=n.slice(1,-1):/^\d+$/.test(n)&&(n=parseInt(n,10)),e.push(n),n="",o=!1,r=""):'"'!==i&&"'"!==i||!o?"."!==i||o?n+=i:n&&(e.push(n),n=""):(r?i===r&&(r=""):r=i,n+=i):(n&&(e.push(n),n=""),o=!0)}return n&&e.push(n),e},i=(t,e)=>{if(!e)return t.state||"";const n=l(e),o=((t,e)=>{let n=t;for(const t of e){if(null==n)return;n=n[t]}return n})(t.state,n);return void 0!==o?o:""},s=(t,e,n)=>{if(!e)return void t.setState(n);const o=l(e),r=((t,e,n)=>{if(0===e.length)return n;const o={...t};let r=o;for(let t=0;t<e.length-1;t++){const n=e[t],o=e[t+1];null==r[n]?r[n]="number"==typeof o?[]:{}:Array.isArray(r[n])?r[n]=[...r[n]]:"object"==typeof r[n]&&(r[n]={...r[n]}),r=r[n]}return r[e[e.length-1]]=n,o})(t.state||{},o,n);t.setState(r)},a=(t,e)=>{if(Array.isArray(t))return t.map((t=>a(t,e)));{let{type:n,tag:l,props:u,children:c}=t;return l=l||n,c=c||u?.children,u&&Object.keys(u).forEach((t=>{t.startsWith("$")&&(((t,e,n,l)=>{if(t.startsWith("$on")){const n=e[t];if(t=t.substring(1),"boolean"==typeof n)e[t]=e=>l.run?l.run(t,e):o.A.run(t,e);else if("string"==typeof n)e[t]=t=>l.run?l.run(n,t):o.A.run(n,t);else if("function"==typeof n)e[t]=t=>l.setState(n(l.state,t));else if(Array.isArray(n)){const[r,...i]=n;"string"==typeof r?e[t]=t=>l.run?l.run(r,...i,t):o.A.run(r,...i,t):"function"==typeof r&&(e[t]=t=>l.setState(r(l.state,...i,t)))}}else if("$bind"===t){const o=e.type||"text",a="string"==typeof e[t]?e[t]:e.name;if("input"===n)switch(o){case"checkbox":e.checked=i(l,a),e.onclick=t=>{const e=(0,r.PB)(t);e&&s(l,a||e.name,e.checked)};break;case"radio":e.checked=i(l,a)===e.value,e.onclick=t=>{const e=(0,r.PB)(t);e&&s(l,a||e.name,e.value)};break;case"number":case"range":e.value=i(l,a),e.oninput=t=>{const e=(0,r.PB)(t);e&&s(l,a||e.name,Number(e.value))};break;default:e.value=i(l,a),e.oninput=t=>{const e=(0,r.PB)(t);e&&s(l,a||e.name,e.value)}}else"select"===n?(e.value=i(l,a),e.onchange=t=>{const e=(0,r.PB)(t);e&&!e.multiple&&s(l,a||e.name,e.value)}):"option"===n?(e.selected=i(l,a),e.onclick=t=>{const e=(0,r.PB)(t);e&&s(l,a||e.name,e.selected)}):"textarea"===n&&(e.innerHTML=i(l,a),e.oninput=t=>{const e=(0,r.PB)(t);e&&s(l,a||e.name,e.value)})}else o.A.run("$",{key:t,tag:n,props:e,component:l})})(t,u,l,e),delete u[t])})),c&&a(c,e),t}},u=a},752:(t,e,n)=>{n.d(e,{JW:()=>S,XX:()=>I,c0:()=>w,qy:()=>E,s6:()=>C});const o=globalThis,r=o.trustedTypes,l=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,i="$lit$",s=`lit$${Math.random().toFixed(9).slice(2)}$`,a="?"+s,u=`<${a}>`,c=document,h=()=>c.createComment(""),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,p=Array.isArray,f="[ \t\n\f\r]",g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,y=/>/g,v=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,b=/"/g,A=/^(?:script|style|textarea|title)$/i,$=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),E=$(1),S=$(2),w=($(3),Symbol.for("lit-noChange")),C=Symbol.for("lit-nothing"),k=new WeakMap,P=c.createTreeWalker(c,129);function x(t,e){if(!p(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==l?l.createHTML(e):e}const O=(t,e)=>{const n=t.length-1,o=[];let r,l=2===e?"<svg>":3===e?"<math>":"",a=g;for(let e=0;e<n;e++){const n=t[e];let c,h,d=-1,p=0;for(;p<n.length&&(a.lastIndex=p,h=a.exec(n),null!==h);)p=a.lastIndex,a===g?"!--"===h[1]?a=m:void 0!==h[1]?a=y:void 0!==h[2]?(A.test(h[2])&&(r=RegExp("</"+h[2],"g")),a=v):void 0!==h[3]&&(a=v):a===v?">"===h[0]?(a=r??g,d=-1):void 0===h[1]?d=-2:(d=a.lastIndex-h[2].length,c=h[1],a=void 0===h[3]?v:'"'===h[3]?b:_):a===b||a===_?a=v:a===m||a===y?a=g:(a=v,r=void 0);const f=a===v&&t[e+1].startsWith("/>")?" ":"";l+=a===g?n+u:d>=0?(o.push(c),n.slice(0,d)+i+n.slice(d)+s+f):n+s+(-2===d?e:f)}return[x(t,l+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class T{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let l=0,u=0;const c=t.length-1,d=this.parts,[p,f]=O(t,e);if(this.el=T.createElement(p,n),P.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=P.nextNode())&&d.length<c;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(i)){const e=f[u++],n=o.getAttribute(t).split(s),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:l,name:r[2],strings:n,ctor:"."===r[1]?D:"?"===r[1]?N:"@"===r[1]?H:U}),o.removeAttribute(t)}else t.startsWith(s)&&(d.push({type:6,index:l}),o.removeAttribute(t));if(A.test(o.tagName)){const t=o.textContent.split(s),e=t.length-1;if(e>0){o.textContent=r?r.emptyScript:"";for(let n=0;n<e;n++)o.append(t[n],h()),P.nextNode(),d.push({type:2,index:++l});o.append(t[e],h())}}}else if(8===o.nodeType)if(o.data===a)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=o.data.indexOf(s,t+1));)d.push({type:7,index:l}),t+=s.length-1}l++}}static createElement(t,e){const n=c.createElement("template");return n.innerHTML=t,n}}function M(t,e,n=t,o){if(e===w)return e;let r=void 0!==o?n._$Co?.[o]:n._$Cl;const l=d(e)?void 0:e._$litDirective$;return r?.constructor!==l&&(r?._$AO?.(!1),void 0===l?r=void 0:(r=new l(t),r._$AT(t,n,o)),void 0!==o?(n._$Co??=[])[o]=r:n._$Cl=r),void 0!==r&&(e=M(t,r._$AS(t,e.values),r,o)),e}class R{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,o=(t?.creationScope??c).importNode(e,!0);P.currentNode=o;let r=P.nextNode(),l=0,i=0,s=n[0];for(;void 0!==s;){if(l===s.index){let e;2===s.type?e=new L(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new j(r,this,t)),this._$AV.push(e),s=n[++i]}l!==s?.index&&(r=P.nextNode(),l++)}return P.currentNode=c,o}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class L{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,o){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),d(t)?t===C||null==t||""===t?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==w&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>p(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==C&&d(this._$AH)?this._$AA.nextSibling.data=t:this.T(c.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=T.createElement(x(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new R(o,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=k.get(t.strings);return void 0===e&&k.set(t.strings,e=new T(t)),e}k(t){p(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,o=0;for(const r of t)o===e.length?e.push(n=new L(this.O(h()),this.O(h()),this,this.options)):n=e[o],n._$AI(r),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class U{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,o,r){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=C}_$AI(t,e=this,n,o){const r=this.strings;let l=!1;if(void 0===r)t=M(this,t,e,0),l=!d(t)||t!==this._$AH&&t!==w,l&&(this._$AH=t);else{const o=t;let i,s;for(t=r[0],i=0;i<r.length-1;i++)s=M(this,o[n+i],e,i),s===w&&(s=this._$AH[i]),l||=!d(s)||s!==this._$AH[i],s===C?t=C:t!==C&&(t+=(s??"")+r[i+1]),this._$AH[i]=s}l&&!o&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class D extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}}class N extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==C)}}class H extends U{constructor(t,e,n,o,r){super(t,e,n,o,r),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??C)===w)return;const n=this._$AH,o=t===C&&n!==C||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==C&&(n===C||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const B=o.litHtmlPolyfillSupport;B?.(T,L),(o.litHtmlVersions??=[]).push("3.3.0");const I=(t,e,n)=>{const o=n?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=n?.renderBefore??null;o._$litPart$=r=new L(e.insertBefore(h(),t),t,void 0,n??{})}return r._$AI(t),r}},804:(t,e,n)=>{n.d(e,{OA:()=>o,WL:()=>l,u$:()=>r});const o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},r=t=>(...e)=>({_$litDirective$:t,values:e});class l{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},859:(t,e,n)=>{n.d(e,{A:()=>a,q:()=>r});var o=n(672);class r{constructor(){this._events={}}on(t,e,n={}){this._events[t]=this._events[t]||[],this._events[t].push({fn:e,options:n})}off(t,e){const n=this._events[t]||[];this._events[t]=n.filter((t=>t.fn!==e))}find(t){return this._events[t]}run(t,...e){const n=this.getSubscribers(t,this._events);return console.assert(n&&n.length>0,"No subscriber for event: "+t),n.forEach((n=>{const{fn:o,options:r}=n;if(!o||"function"!=typeof o)return console.error(`AppRun event handler for '${t}' is not a function:`,o),!1;if(r.delay)this.delay(t,o,e,r);else try{Object.keys(r).length>0?o.apply(this,[...e,r]):o.apply(this,e)}catch(e){console.error(`Error in event handler for '${t}':`,e)}return!n.options.once})),n.length}once(t,e,n={}){this.on(t,e,{...n,once:!0})}delay(t,e,n,o){o._t&&clearTimeout(o._t),o._t=setTimeout((()=>{clearTimeout(o._t);try{Object.keys(o).length>0?e.apply(this,[...n,o]):e.apply(this,n)}catch(e){console.error(`Error in delayed event handler for '${t}':`,e)}}),o.delay)}runAsync(t,...e){const n=this.getSubscribers(t,this._events);console.assert(n&&n.length>0,"No subscriber for event: "+t);const o=n.map((n=>{const{fn:o,options:r}=n;if(!o||"function"!=typeof o)return console.error(`AppRun async event handler for '${t}' is not a function:`,o),Promise.resolve(null);try{return Object.keys(r).length>0?o.apply(this,[...e,r]):o.apply(this,e)}catch(e){return console.error(`Error in async event handler for '${t}':`,e),Promise.reject(e)}}));return Promise.all(o)}query(t,...e){return console.warn("app.query() is deprecated. Use app.runAsync() instead."),this.runAsync(t,...e)}getSubscribers(t,e){const n=e[t]||[];return e[t]=n.filter((t=>!t.options.once)),Object.keys(e).filter((e=>e.endsWith("*")&&t.startsWith(e.replace("*","")))).sort(((t,e)=>e.length-t.length)).forEach((o=>n.push(...e[o].map((e=>({...e,options:{...e.options,event:t}})))))),n}}const l=o.C;let i;const s="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};s.app&&s._AppRunVersions?i=s.app:(i=new r,s.app=i,s._AppRunVersions=l);const a=i},971:(t,e,n)=>{n.d(e,{Component:()=>g,ROUTER_404_EVENT:()=>_,ROUTER_EVENT:()=>v,app:()=>k,customElement:()=>c,default:()=>P,event:()=>a,on:()=>u,safeHTML:()=>r.safeHTML,update:()=>a});var o=n(859),r=n(320);const l=(t,e={})=>class extends HTMLElement{constructor(){super()}get component(){return this._component}get state(){return this._component.state}static get observedAttributes(){return(e.observedAttributes||[]).map((t=>t.toLowerCase()))}connectedCallback(){if(this.isConnected&&!this._component){const n=e||{};this._shadowRoot=n.shadow?this.attachShadow({mode:"open"}):this;const o=n.observedAttributes||[],r=o.reduce(((t,e)=>{const n=e.toLowerCase();return n!==e&&(t[n]=e),t}),{});this._attrMap=t=>r[t]||t;const l={};Array.from(this.attributes).forEach((t=>l[this._attrMap(t.name)]=t.value)),o.forEach((t=>{void 0!==this[t]&&(l[t]=this[t]),Object.defineProperty(this,t,{get:()=>l[t],set(e){this.attributeChangedCallback(t,l[t],e)},configurable:!0,enumerable:!0})})),requestAnimationFrame((()=>{const e=this.children?Array.from(this.children):[];if(this._component=new t({...l,children:e}).mount(this._shadowRoot,n),this._component._props=l,this._component.dispatchEvent=this.dispatchEvent.bind(this),this._component.mounted){const t=this._component.mounted(l,e,this._component.state);void 0!==t&&(this._component.state=t)}this.on=this._component.on.bind(this._component),this.run=this._component.run.bind(this._component),!1!==n.render&&this._component.run(".")}))}}disconnectedCallback(){this._component?.unload?.(),this._component?.unmount?.(),this._component=null}attributeChangedCallback(t,n,o){if(this._component){const r=this._attrMap(t);this._component._props[r]=o,this._component.run("attributeChanged",r,n,o),o!==n&&!1!==e.render&&window.requestAnimationFrame((()=>{this._component.run(".")}))}}},i=(t,e,n)=>{"undefined"!=typeof customElements&&customElements.define(t,l(e,n))},s={meta:new WeakMap,defineMetadata(t,e,n){this.meta.has(n)||this.meta.set(n,{}),this.meta.get(n)[t]=e},getMetadataKeys(t){return t=Object.getPrototypeOf(t),this.meta.get(t)?Object.keys(this.meta.get(t)):[]},getMetadata(t,e){return e=Object.getPrototypeOf(e),this.meta.get(e)?this.meta.get(e)[t]:null}};function a(t,e={}){return(n,o,r)=>{const l=t?t.toString():o;return s.defineMetadata(`apprun-update:${l}`,{name:l,key:o,options:e},n),r}}function u(t,e={}){return function(n,o){const r=t?t.toString():o;s.defineMetadata(`apprun-update:${r}`,{name:r,key:o,options:e},n)}}function c(t,e){return function(n){return i(t,n,e),n}}var h=n(741),d=n(634);const p=t=>t,f=o.A;class g{renderState(t,e=null){if(!this.view)return;let n=e||this.view(t);if(f.debug&&f.run("debug",{component:this,_:n?".":"-",state:t,vdom:n,el:this.element}),"object"!=typeof document)return;const o="string"==typeof this.element&&this.element?(0,d.oP)(this.element)||(0,d.bV)(this.element):this.element;if(!o)return void console.warn(`Component element not found: ${this.element}`);const r="_c";this.unload?o._component===this&&o.getAttribute(r)===this.tracking_id||(this.tracking_id=(new Date).valueOf().toString(),o.setAttribute(r,this.tracking_id),"undefined"!=typeof MutationObserver&&(this.observer||(this.observer=new MutationObserver((t=>{t[0].oldValue!==this.tracking_id&&document.body.contains(o)||(this.unload(this.state),this.observer.disconnect(),this.observer=null)}))),this.observer.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:[r]}))):o.removeAttribute&&o.removeAttribute(r),o._component=this,!e&&n&&(n=(0,h.A)(n,this),this.options.transition&&document&&document.startViewTransition?document.startViewTransition((()=>f.render(o,n,this))):f.render(o,n,this)),this.rendered&&this.rendered(this.state)}setState(t,e={render:!0,history:!1}){const n=t;if(n?.[Symbol.asyncIterator])this.setState((async t=>{try{for(;;){const{value:n,done:o}=await t.next();if(o)break;this.setState(n,e)}}catch(t){console.error("Error in async iterator:",t)}})(n[Symbol.asyncIterator]()),e);else if(n?.[Symbol.iterator]&&"function"==typeof n.next)for(const t of n)this.setState(t,e);else if(t&&t instanceof Promise)Promise.resolve(t).then((n=>{this.setState(n,e),this._state=t}));else{if(this._state=t,null==t)return;this.state=t,!1!==e.render&&(e.transition&&document&&document.startViewTransition?document.startViewTransition((()=>this.renderState(t))):this.renderState(t)),!1!==e.history&&this.enable_history&&(this._history=[...this._history,t],this._history_idx=this._history.length-1),"function"==typeof e.callback&&e.callback(this.state)}}constructor(t,e,n,r){this.state=t,this.view=e,this.update=n,this.options=r,this._app=new o.q,this._actions=[],this._global_events=[],this._history=[],this._history_idx=-1,this._history_prev=()=>{this._history_idx--,this._history_idx>=0?this.setState(this._history[this._history_idx],{render:!0,history:!1}):this._history_idx=0},this._history_next=()=>{this._history_idx++,this._history_idx<this._history.length?this.setState(this._history[this._history_idx],{render:!0,history:!1}):this._history_idx=this._history.length-1},this.start=(t=null,e)=>{if(this.mount(t,{render:!0,...e}),this.mounted&&"function"==typeof this.mounted){const t=this.mounted({},[],this.state);void 0!==t&&this.setState(t)}return this}}mount(t=null,e){return console.assert(!this.element,"Component already mounted."),this.options=e={...this.options,...e},this.element=t,this.global_event=e.global_event,this.enable_history=!!e.history,this.enable_history&&(this.on(e.history.prev||"history-prev",this._history_prev),this.on(e.history.next||"history-next",this._history_next)),e.route&&(this.update=this.update||{},this.update[e.route]||(this.update[e.route]=p)),this.add_actions(),this.state=this.state??this.model??{},"function"==typeof this.state&&(this.state=this.state()),this.setState(this.state,{render:!!e.render,history:!0}),f.debug&&f.find("debug-create-component")?.length&&f.run("debug-create-component",this),this}is_global_event(t){return t&&(this.global_event||this._global_events.indexOf(t)>=0||t.startsWith("#")||t.startsWith("/")||t.startsWith("@"))}add_action(t,e,n={}){e&&"function"==typeof e?(n.global&&this._global_events.push(t),this.on(t,((...o)=>{f.debug&&f.run("debug",{component:this,_:">",event:t,p:o,current_state:this.state,options:n});try{const r=e(this.state,...o);f.debug&&f.run("debug",{component:this,_:"<",event:t,p:o,newState:r,state:this.state,options:n}),this.setState(r,n)}catch(e){console.error(`Error in component action '${t}':`,e),f.debug&&f.run("debug",{component:this,_:"!",event:t,p:o,error:e,state:this.state,options:n})}}),n)):console.warn(`Component action for '${t}' is not a valid function:`,e)}add_actions(){const t=this.update||{};s.getMetadataKeys(this).forEach((e=>{if(e.startsWith("apprun-update:")){const n=s.getMetadata(e,this);t[n.name]=[this[n.key].bind(this),n.options]}}));const e={};Array.isArray(t)?t.forEach((t=>{const[n,o,r]=t;n.toString().split(",").forEach((t=>e[t.trim()]=[o,r]))})):Object.keys(t).forEach((n=>{const o=t[n];("function"==typeof o||Array.isArray(o))&&n.split(",").forEach((t=>e[t.trim()]=o))})),e["."]||(e["."]=p),Object.keys(e).forEach((t=>{const n=e[t];"function"==typeof n?this.add_action(t,n):Array.isArray(n)&&this.add_action(t,n[0],n[1])}))}run(t,...e){if(this.state instanceof Promise)return Promise.resolve(this.state).then((n=>{this.state=n,this.run(t,...e)}));{const n=t.toString();return this.is_global_event(n)?f.run(n,...e):this._app.run(n,...e)}}on(t,e,n){const o=t.toString();return this._actions.push({name:o,fn:e}),this.is_global_event(o)?f.on(o,e,n):this._app.on(o,e,n)}runAsync(t,...e){const n=t.toString();return this.is_global_event(n)?f.runAsync(n,...e):this._app.runAsync(n,...e)}query(t,...e){return console.warn("component.query() is deprecated. Use component.runAsync() instead."),this.runAsync(t,...e)}unmount(){this.observer?.disconnect(),this._actions.forEach((t=>{const{name:e,fn:n}=t;this.is_global_event(e)?f.off(e,n):this._app.off(e,n)}))}}function m(){const t=o.A.find("#");if(t&&t.length>0)return o.A.run("#"),void o.A.run(v,"#");const e=o.A.find("/");if(e&&e.length>0)return o.A.run("/"),void o.A.run(v,"/");const n=o.A.find("#/");if(n&&n.length>0)return o.A.run("#/"),void o.A.run(v,"#/");console.warn("No subscribers for event: "),o.A.run(_,""),o.A.run(v,"")}g.__isAppRunComponent=!0;const y=(t,...e)=>{if(!t||t===v||t===_)return;const n=o.A.find(t);n&&0!==n.length?o.A.run(t,...e):(console.warn(`No subscribers for event: ${t}`),o.A.run(_,t,...e)),o.A.run(v,t,...e)},v="//",_="///",b=t=>{o.A.lastUrl!==t&&(o.A.lastUrl=t,function(t){if(!t)return void m();t=function(t){return t&&"/"!==t&&"#"!==t&&"#/"!==t&&t.endsWith("/")?t.slice(0,-1):t}(t);const e=o.A.basePath;e&&(t=function(t,e){if(!e||"/"===e||""===e)return t;const n=e.startsWith("/")?e:"/"+e;if(t.startsWith(n)){const e=t.substring(n.length);return e.startsWith("/")?e:"/"+e}return t}(t,e));const n=function(t){return t?t.startsWith("#/")?t.substring(2).split("/"):t.startsWith("#")||t.startsWith("/")?t.substring(1).split("/"):t.split("/"):[]}(t);let r;!function(t){const e=t.filter(Boolean);e.length>11&&console.warn(`Deep route hierarchy detected: ${e.join("/")} (${e.length} levels)`)}(n),r=t.startsWith("#/")?"hash-slash":t.startsWith("#")?"hash":t.startsWith("/")?"path":"non-prefixed";const l=function(t,e){const n=[];for(let o=t.length;o>0;o--){const r=t.slice(0,o);let l="";switch(e){case"path":l="/"+r.join("/");break;case"hash":l="#"+r.join("/");break;case"hash-slash":l="#/"+r.join("/");break;case"non-prefixed":l=r.join("/")}n.push(l)}return n}(n,r),i=function(t,e){for(let n=0;n<t.length;n++){const r=t[n],l=o.A.find(r);if(l&&l.length>0){const o=t.length-n;return{eventName:r,parameters:e.slice(o)}}}return null}(l,n);if(i)y(i.eventName,...i.parameters);else if(l.length>0){const e=l[l.length-1];console.warn(`No subscribers for event: ${e}`),o.A.run(_,t),o.A.run(v,t)}else m()}(t))};function A(t){return t&&"object"==typeof t&&"function"==typeof t.mount}function $(t){return"function"==typeof t&&t.prototype&&t.prototype.constructor===t&&(void 0!==t.prototype.mount||void 0!==t.prototype.state||void 0!==t.prototype.view)}function E(t){return"function"==typeof t&&!$(t)}async function S(t,e=3){let n=t,o=0;for(;E(n)&&o<e;)try{const t=await n();if(t===n)break;n=t,o++}catch(t){console.error(`Error executing component function: ${t}`);break}return n}const w=async(t,e)=>{for(const[n,r]of Object.entries(e))if(r&&n)if(A(r)){const e={route:n};r.mount(t,e)}else if($(r)){const e={route:n};(new r).mount(t,e)}else if(E(r)){let e=await S(r);if(A(e)){const o={route:n};e.mount(t,o);continue}if($(e)){const o={route:n};(new e).mount(t,o);continue}o.A.on(n,((...e)=>{const n=r(...e);if("string"!=typeof t||(t=document.querySelector(t)))return o.A.render(t,n);console.error(`Element not found: ${t}`)}))}else console.error("Invalid component: component must be a class, instance, or function that returns a class/instance");else console.error(`Invalid component configuration: component=${r}, route=${n}`)};var C=n(672);const k=o.A,P=k;if(!k.start){k.version=C.a,k.h=k.createElement=r.createElement,k.render=r.render,k.Fragment=r.Fragment,k.webComponent=i,k.safeHTML=r.safeHTML,k.start=(t,e,n,o,r)=>{const l={render:!0,global_event:!0,...r},i=new g(e,n,o);return r&&r.rendered&&(i.rendered=r.rendered),r&&r.mounted&&(i.mounted=r.mounted),i.start(t,l),i},k.query=k.query||k.runAsync;const t=t=>{};if(k.on("/",t),k.on("debug",(e=>t)),k.on(v,t),k.on(_,t),k.route=b,k.on("route",(t=>k.route&&k.route(t))),"object"==typeof document&&document.addEventListener("DOMContentLoaded",(()=>{const t=document.body.hasAttribute("apprun-no-init")||k["no-init-route"]||!1,e=k.find("#")||k.find("#/")||!1;window.addEventListener("hashchange",(()=>b(location.hash))),window.addEventListener("popstate",(()=>b(location.pathname))),e?!t&&b(location.hash):(!t&&(()=>{const t=k.basePath||"";let e=location.pathname;t&&e.startsWith(t)&&(e=e.substring(t.length),e.startsWith("/")||(e="/"+e)),b(e)})(),document.body.addEventListener("click",(t=>{const e=t.target;if(!e)return;const n="A"===e.tagName?e:e.closest("a");if(n&&n.origin===location.origin&&n.pathname){t.preventDefault();const e=(k.basePath||"")+n.pathname;history.pushState(null,"",e),b(n.pathname)}})))})),"object"==typeof window){const t=window;t.Component=g,t._React=t.React,t.React=k,t.on=u,t.customElement=c,t.safeHTML=r.safeHTML}k.use_render=(t,e=0)=>{k.render=0===e?(e,n)=>t(n,e):(e,n)=>t(e,n)},k.use_react=(t,e)=>{if(t&&e)if("function"==typeof t.createElement)if(t.Fragment)if(k.h=k.createElement=t.createElement,k.Fragment=t.Fragment,t.version&&t.version.startsWith("18")){if(!e.createRoot||"function"!=typeof e.createRoot)return void console.error("AppRun use_react: ReactDOM.createRoot not found in React 18+");k.render=(t,n)=>{t&&void 0!==n&&(t._root||(t._root=e.createRoot(t)),t._root.render(n))}}else{if(!e.render||"function"!=typeof e.render)return void console.error("AppRun use_react: ReactDOM.render not found in legacy React");k.render=(t,n)=>e.render(n,t)}else console.error("AppRun use_react: Invalid React object - Fragment not found");else console.error("AppRun use_react: Invalid React object - createElement method not found");else console.error("AppRun use_react: React and ReactDOM parameters are required")},k.addComponents=w}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var l=e[o]={exports:{}};return t[o](l,l.exports,n),l.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{Component:()=>r.Component,ROUTER_404_EVENT:()=>r.ROUTER_404_EVENT,ROUTER_EVENT:()=>r.ROUTER_EVENT,app:()=>r.app,customElement:()=>r.customElement,default:()=>j,event:()=>r.event,html:()=>x.qy,on:()=>r.on,render:()=>D,run:()=>H,safeHTML:()=>r.safeHTML,svg:()=>x.JW,update:()=>r.update});var r=n(971),l=n(634),i=n(593);const s=globalThis,a=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),c=new WeakMap;class h{constructor(t,e,n){if(this._$cssResult$=!0,n!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&c.set(e,t))}return t}toString(){return this.cssText}}const d=(t,e)=>{if(a)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const n of e){const e=document.createElement("style"),o=s.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=n.cssText,t.appendChild(e)}},p=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new h("string"==typeof t?t:t+"",void 0,u))(e)})(t):t,{is:f,defineProperty:g,getOwnPropertyDescriptor:m,getOwnPropertyNames:y,getOwnPropertySymbols:v,getPrototypeOf:_}=Object,b=globalThis,A=b.trustedTypes,$=A?A.emptyScript:"",E=b.reactiveElementPolyfillSupport,S=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},C=(t,e)=>!f(t,e),k={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:C};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;class P extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,e);void 0!==o&&g(this.prototype,t,o)}}static getPropertyDescriptor(t,e,n){const{get:o,set:r}=m(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const l=o?.call(this);r?.call(this,e),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??k}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=_(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const t=this.properties,e=[...y(t),...v(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(p(t))}else void 0!==t&&e.push(p(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return d(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(void 0!==o&&!0===n.reflect){const r=(void 0!==n.converter?.toAttribute?n.converter:w).toAttribute(e,n.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const n=this.constructor,o=n._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=n.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=o,this[o]=r.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,n){if(void 0!==t){const o=this.constructor,r=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??C)(r,e)||n.useDefault&&n.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:o,wrapped:r},l){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,l??e??this[t]),!0!==r||void 0!==l)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t){const{wrapped:t}=n,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,n,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}P.elementStyles=[],P.shadowRootOptions={mode:"open"},P[S("elementProperties")]=new Map,P[S("finalized")]=new Map,E?.({ReactiveElement:P}),(b.reactiveElementVersions??=[]).push("2.1.0");var x=n(752);const O=globalThis;class T extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,x.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return x.c0}}T._$litElement$=!0,T.finalized=!0,O.litElementHydrateSupport?.({LitElement:T});const M=O.litElementPolyfillSupport;M?.({LitElement:T}),(O.litElementVersions??=[]).push("4.2.0");var R=n(804);class L extends R.WL{constructor(t){if(super(t),this.it=x.s6,t.type!==R.OA.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===x.s6||null==t)return this._t=void 0,this.it=t;if(t===x.c0)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}L.directiveName="unsafeHTML",L.resultType=1;const U=(0,R.u$)(L);function D(t,e,n){e&&("string"==typeof e?(t._$litPart$||t.replaceChildren(),(0,x.XX)(x.qy`${U(e)}`,t)):e._$litType$?(t._$litPart$||t.replaceChildren(),(0,x.XX)(e,t)):((0,i.cJ)(t,e,n),t._$litPart$=void 0))}class N extends R.WL{constructor(t){if(super(t),t.type!==R.OA.EVENT)throw new Error("run() can only be used in event handlers")}update(t,e){const n=t.element,o=t.name,[l,...i]=e,s=()=>{let t=n,e=t._component;for(;!e&&t;)t=t.parentElement,e=t&&t._component;return console.assert(!!e,"Component not found."),e};return"string"==typeof l?n[`on${o}`]=t=>{const e=s();e?e.run(l,...i,t):r.default.run(l,...i,t)}:"function"==typeof l&&(n[`on${o}`]=t=>s().setState(l(s().state,...i,t))),this.render()}render(){return x.c0}}const H=(0,R.u$)(N);r.default.createElement=i.n,r.default.render=D,r.default.Fragment=i.FK;const j=r.default;if("object"==typeof window){const t=window;(0,l.Q0)(t,{React:t._React||r.default,html:x.qy,svg:x.JW,run:H})}return o})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apprun=t():e.apprun=t()}(this,(()=>(()=>{"use strict";var e={9:(e,t,n)=>{n.d(t,{EM:()=>s,W9:()=>r,on:()=>i,yo:()=>l});var o=n(436);const r={meta:new WeakMap,defineMetadata(e,t,n){this.meta.has(n)||this.meta.set(n,{}),this.meta.get(n)[e]=t},getMetadataKeys(e){return e=Object.getPrototypeOf(e),this.meta.get(e)?Object.keys(this.meta.get(e)):[]},getMetadata(e,t){return t=Object.getPrototypeOf(t),this.meta.get(t)?this.meta.get(t)[e]:null}};function l(e,t={}){return(n,o,l)=>{const i=e?e.toString():o;return r.defineMetadata(`apprun-update:${i}`,{name:i,key:o,options:t},n),l}}function i(e,t={}){return function(n,o){const l=e?e.toString():o;r.defineMetadata(`apprun-update:${l}`,{name:l,key:o,options:t},n)}}function s(e,t){return function(n){return(0,o.A)(e,n,t),n}}},18:(e,t,n)=>{n.r(t),n.d(t,{boolean:()=>r,booleanish:()=>l,commaOrSpaceSeparated:()=>c,commaSeparated:()=>u,number:()=>s,overloadedBoolean:()=>i,spaceSeparated:()=>a});let o=0;const r=h(),l=h(),i=h(),s=h(),a=h(),u=h(),c=h();function h(){return 2**++o}},72:(e,t,n)=>{n.d(t,{z:()=>l});var o=n(259),r=n(530);const l=(0,o.v)({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:r._})},91:(e,t,n)=>{n.d(t,{u:()=>g});var o=n(859),r=n(9),l=n(741),i=n(634);const s=e=>e,a=o.A;let u=0;const c="_c",h=new Map;let d=null;function p(){0===h.size&&d&&(d.disconnect(),d=null)}function m(e){const t=h.get(e);t&&(h.delete(e),t.component.unload?.(t.component.state),p())}function f(e){e&&(h.delete(e),p())}class g{renderState(e,t=null){if(!this.view)return;let n=t||this.view(e);if(a.debug&&a.run("debug",{component:this,_:n?".":"-",state:e,vdom:n,el:this.element}),"object"!=typeof document)return;const o="string"==typeof this.element&&this.element?(0,i.oP)(this.element)||(0,i.bV)(this.element):this.element;o?(this.unload?o._component===this&&o.getAttribute(c)===this.tracking_id||(this.tracking_element&&this.tracking_element!==o&&f(this.tracking_element),this.tracking_id=(++u).toString(36),o.setAttribute(c,this.tracking_id),this.tracking_element=o,function(e,t,n){const o=h.get(t);o&&o.component!==e&&m(t),h.set(t,{component:e,tracking_id:n}),!d&&"undefined"!=typeof MutationObserver&&"object"==typeof document&&document.body&&(d=new MutationObserver((e=>{e.forEach((e=>{if("attributes"===e.type){const t=e.target,n=h.get(t);n&&e.oldValue===n.tracking_id&&m(t)}else"childList"===e.type&&Array.from(h.keys()).forEach((e=>{document.body.contains(e)||m(e)}))}))})),d.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:[c]}))}(this,o,this.tracking_id)):(f(this.tracking_element),this.tracking_element=null,o.removeAttribute&&o.removeAttribute(c)),o._component=this,!t&&n&&(n=(0,l.A)(n,this),this.options.transition&&document&&document.startViewTransition?document.startViewTransition((()=>a.render(o,n,this))):a.render(o,n,this)),this.rendered&&this.rendered(this.state)):console.warn(`Component element not found: ${this.element}`)}setState(e,t={render:!0,history:!1}){const n=e;if(n?.[Symbol.asyncIterator])this.setState((async e=>{try{for(;;){const{value:n,done:o}=await e.next();if(o)break;this.setState(n,t)}}catch(e){console.error("Error in async iterator:",e)}})(n[Symbol.asyncIterator]()),t);else if(n?.[Symbol.iterator]&&"function"==typeof n.next)for(const e of n)this.setState(e,t);else if(e&&e instanceof Promise){const n=e;this._pending_state=n,Promise.resolve(n).then((e=>{this._pending_state===n&&(this._pending_state=null,this.setState(e,t))}))}else{if(this._state=e,null==e)return;this._pending_state=null,this.state=e,!1!==t.render&&(t.transition&&document&&document.startViewTransition?document.startViewTransition((()=>this.renderState(e))):this.renderState(e)),!1!==t.history&&this.enable_history&&(this._history=[...this._history,e],this._history_idx=this._history.length-1),"function"==typeof t.callback&&t.callback(this.state)}}constructor(e,t,n,r={}){this.state=e,this.view=t,this.update=n,this.options=r,this._app=new o.q,this._actions=[],this._global_events=[],this._history=[],this._history_idx=-1,this.enable_history=!1,this.global_event=!1,this.tracking_element=null,this._history_prev=()=>{this._history_idx--,this._history_idx>=0?this.setState(this._history[this._history_idx],{render:!0,history:!1}):this._history_idx=0},this._history_next=()=>{this._history_idx++,this._history_idx<this._history.length?this.setState(this._history[this._history_idx],{render:!0,history:!1}):this._history_idx=this._history.length-1},this.start=(e=null,t)=>{if(this.mount(e,{render:!0,...t}),this.mounted&&"function"==typeof this.mounted){const e=this.mounted({},[],this.state);void 0!==e&&this.setState(e)}return this}}mount(e=null,t){if(console.assert(!this.element,"Component already mounted."),this.options=t={...this.options,...t},this.element=e,this.global_event=t.global_event,this.enable_history=!!t.history,this.enable_history){const e=function(e){return"object"==typeof e&&null!==e?e:{}}(t.history);this.on(e.prev||"history-prev",this._history_prev),this.on(e.next||"history-next",this._history_next)}return t.route&&(this.update=this.update||{},this.update[t.route]||(this.update[t.route]=s)),this.add_actions(),this.state=this.state??this.model??{},"function"==typeof this.state&&(this.state=this.state()),this.setState(this.state,{render:!!t.render,history:!0}),a.debug&&a.find("debug-create-component")?.length&&a.run("debug-create-component",this),this}is_global_event(e){return e&&(this.global_event||this._global_events.indexOf(e)>=0||e.startsWith("#")||e.startsWith("/")||e.startsWith("@"))}add_action(e,t,n={}){t&&"function"==typeof t?(n.global&&this._global_events.push(e),this.on(e,((...o)=>{a.debug&&a.run("debug",{component:this,_:">",event:e,p:o,current_state:this.state,options:n});try{const r=t(this.state,...o);a.debug&&a.run("debug",{component:this,_:"<",event:e,p:o,newState:r,state:this.state,options:n}),this.setState(r,n)}catch(t){const r={event:e,error:t,component:this,state:this.state,args:o,phase:"component"};a.find("error")?.length?a.run("error",r):console.error(`Error in component action '${e}':`,t),a.debug&&a.run("debug",{component:this,_:"!",event:e,p:o,error:t,state:this.state,options:n})}}),n)):console.warn(`Component action for '${e}' is not a valid function:`,t)}add_actions(){const e=this.update||{};r.W9.getMetadataKeys(this).forEach((t=>{if(t.startsWith("apprun-update:")){const n=r.W9.getMetadata(t,this);e[n.name]=[this[n.key].bind(this),n.options]}}));const t={};Array.isArray(e)?e.forEach((e=>{const[n,o,r]=e;n.toString().split(",").forEach((e=>t[e.trim()]=[o,r]))})):Object.keys(e).forEach((n=>{const o=e[n];("function"==typeof o||Array.isArray(o))&&n.split(",").forEach((e=>t[e.trim()]=o))})),t["."]||(t["."]=s),Object.keys(t).forEach((e=>{const n=t[e];"function"==typeof n?this.add_action(e,n):Array.isArray(n)&&this.add_action(e,n[0],n[1])}))}run(e,...t){if(this.state instanceof Promise)return Promise.resolve(this.state).then((n=>{this.state=n,this.run(e,...t)}));{const n=e.toString();return this.is_global_event(n)?a.run(n,...t):this._app.run(n,...t)}}on(e,t,n){const o=e.toString();return this._actions.push({name:o,fn:t}),this.is_global_event(o)?a.on(o,t,n):this._app.on(o,t,n)}runAsync(e,...t){const n=e.toString();return this.is_global_event(n)?a.runAsync(n,...t):this._app.runAsync(n,...t)}unmount(){f(this.tracking_element),this.tracking_element=null,this._actions.forEach((e=>{const{name:t,fn:n}=e;this.is_global_event(t)?a.off(t,n):this._app.off(t,n)}))}}g.__isAppRunComponent=!0},147:(e,t,n)=>{n.d(t,{E:()=>i});var o=n(627),r=n(18);const l=Object.keys(r);class i extends o.R{constructor(e,t,n,o){let i=-1;if(super(e,t),s(this,"space",o),"number"==typeof n)for(;++i<l.length;){const e=l[i];s(this,l[i],(n&r[e])===r[e])}}}function s(e,t,n){n&&(e[t]=n)}i.prototype.defined=!0},176:(e,t,n)=>{n.d(t,{S:()=>o});class o{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}o.prototype.normal={},o.prototype.property={},o.prototype.space=void 0},259:(e,t,n)=>{n.d(t,{v:()=>i});var o=n(457),r=n(147),l=n(176);function i(e){const t={},n={};for(const[l,i]of Object.entries(e.properties)){const s=new r.E(l,e.transform(e.attributes||{},l),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(s.mustUseProperty=!0),t[l]=s,n[(0,o.S)(l)]=l,n[(0,o.S)(s.attribute)]=l}return new l.S(t,n,e.space)}},277:(e,t,n)=>{n.d(t,{a:()=>l});var o=n(259),r=n(18);const l=(0,o.v)({properties:{ariaActiveDescendant:null,ariaAtomic:r.booleanish,ariaAutoComplete:null,ariaBusy:r.booleanish,ariaChecked:r.booleanish,ariaColCount:r.number,ariaColIndex:r.number,ariaColSpan:r.number,ariaControls:r.spaceSeparated,ariaCurrent:null,ariaDescribedBy:r.spaceSeparated,ariaDetails:null,ariaDisabled:r.booleanish,ariaDropEffect:r.spaceSeparated,ariaErrorMessage:null,ariaExpanded:r.booleanish,ariaFlowTo:r.spaceSeparated,ariaGrabbed:r.booleanish,ariaHasPopup:null,ariaHidden:r.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:r.spaceSeparated,ariaLevel:r.number,ariaLive:null,ariaModal:r.booleanish,ariaMultiLine:r.booleanish,ariaMultiSelectable:r.booleanish,ariaOrientation:null,ariaOwns:r.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:r.number,ariaPressed:r.booleanish,ariaReadOnly:r.booleanish,ariaRelevant:null,ariaRequired:r.booleanish,ariaRoleDescription:r.spaceSeparated,ariaRowCount:r.number,ariaRowIndex:r.number,ariaRowSpan:r.number,ariaSelected:r.booleanish,ariaSetSize:r.number,ariaSort:null,ariaValueMax:r.number,ariaValueMin:r.number,ariaValueNow:r.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()})},292:(e,t,n)=>{n.d(t,{app:()=>f,default:()=>g});var o=n(859),r=n(791),l=n(91),i=n(9),s=n(475),a=n(436);function u(e){return e&&"object"==typeof e&&"function"==typeof e.mount}function c(e){return"function"==typeof e&&e.prototype&&e.prototype.constructor===e&&(void 0!==e.prototype.mount||void 0!==e.prototype.state||void 0!==e.prototype.view)}function h(e){return"function"==typeof e&&!c(e)}async function d(e,t=3){let n=e,o=0;for(;h(n)&&o<t;)try{const e=await n();if(e===n)break;n=e,o++}catch(e){console.error(`Error executing component function: ${e}`);break}return n}const p=async(e,t)=>{for(const[n,r]of Object.entries(t))if(r&&n)if(u(r)){const t={route:n};r.mount(e,t)}else if(c(r)){const t={route:n};(new r).mount(e,t)}else if(h(r)){let t=await d(r);if(u(t)){const o={route:n};t.mount(e,o);continue}if(c(t)){const o={route:n};(new t).mount(e,o);continue}o.A.on(n,((...t)=>{const n=r(...t),l="string"==typeof e?document.querySelector(e):e;if(l)return o.A.render(l,n);console.error(`Element not found: ${e}`)}))}else console.error("Invalid component: component must be a class, instance, or function that returns a class/instance");else console.error(`Invalid component configuration: component=${r}, route=${n}`)};var m=n(672);const f=o.A,g=f;if(!f.start){f.version=m.a,f.h=f.createElement=r.n,f.render=r.cJ,f.Fragment=r.FK,f.webComponent=a.A,f.trustedHTML=r.Fs,f.safeHTML=r.t_,f.start=(e,t,n,o,r)=>{const i={render:!0,global_event:!0,...r},s=new l.u(t,n,o);return r&&r.rendered&&(s.rendered=r.rendered),r&&r.mounted&&(s.mounted=r.mounted),s.start(e,i),s};const e=e=>{};if(f.on("/",e),f.on("debug",(t=>e)),f.on(s.z0,e),f.on(s.a6,e),f.route=s.wE,f.on("route",(e=>f.route&&f.route(e))),"object"==typeof document&&document.addEventListener("DOMContentLoaded",(()=>{const e=document.body.hasAttribute("apprun-no-init")||f["no-init-route"]||!1,t=f.find("#")||f.find("#/")||!1;window.addEventListener("hashchange",(()=>(0,s.wE)(location.hash))),window.addEventListener("popstate",(()=>(0,s.wE)(location.pathname))),t?!e&&(0,s.wE)(location.hash):(!e&&(()=>{const e=f.basePath||"";let t=location.pathname;e&&t.startsWith(e)&&(t=t.substring(e.length),t.startsWith("/")||(t="/"+t)),(0,s.wE)(t)})(),document.body.addEventListener("click",(e=>{const t=e.target,n=t instanceof Element?t:t?.parentElement;if(!n)return;((e,t)=>{if(!((e,t)=>!(!t||e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||t.target&&"_self"!==t.target.toLowerCase()||t.hasAttribute("download")||(t.getAttribute("rel")||"").toLowerCase().split(/\s+/).includes("external")||t.origin!==location.origin||!t.pathname))(e,t))return!1;e.preventDefault();const n=(f.basePath||"")+t.pathname;history.pushState(null,"",n),(0,s.wE)(t.pathname)})(e,"A"===n.tagName?n:n.closest("a"))})))})),"object"==typeof window){const e=window;e.Component=l.u,e.on=i.on,e.customElement=i.EM,e.trustedHTML=r.Fs,e.safeHTML=r.t_}f.use_render=(e,t=0)=>{f.render=0===t?(t,n)=>e(n,t):(t,n)=>e(t,n)},f.use_react=(e,t)=>{if(e&&t)if("function"==typeof e.createElement)if(e.Fragment)if(f.h=f.createElement=e.createElement,f.Fragment=e.Fragment,e.version&&e.version.startsWith("18")){if(!t.createRoot||"function"!=typeof t.createRoot)return void console.error("AppRun use_react: ReactDOM.createRoot not found in React 18+");f.render=(e,n)=>{e&&void 0!==n&&(e._root||(e._root=t.createRoot(e)),e._root.render(n))}}else{if(!t.render||"function"!=typeof t.render)return void console.error("AppRun use_react: ReactDOM.render not found in legacy React");f.render=(e,n)=>t.render(n,e)}else console.error("AppRun use_react: Invalid React object - Fragment not found");else console.error("AppRun use_react: Invalid React object - createElement method not found");else console.error("AppRun use_react: React and ReactDOM parameters are required")},f.addComponents=p}},436:(e,t,n)=>{n.d(t,{A:()=>r});const o=(e,t={})=>class extends HTMLElement{constructor(){super(),this._pendingAttributes=[]}get component(){return this._component}get state(){return this._component.state}static get observedAttributes(){return(t.observedAttributes||[]).map((e=>e.toLowerCase()))}connectedCallback(){if(this.isConnected&&!this._component&&null==this._mountFrame){const n=t||{};this._shadowRoot=n.shadow?this.attachShadow({mode:"open"}):this;const o=n.observedAttributes||[],r=o.reduce(((e,t)=>{const n=t.toLowerCase();return n!==t&&(e[n]=t),e}),{});this._attrMap=e=>r[e]||e;const l={};Array.from(this.attributes).forEach((e=>l[this._attrMap(e.name)]=e.value)),o.forEach((e=>{void 0!==this[e]&&(l[e]=this[e]),Object.defineProperty(this,e,{get:()=>l[e],set(t){this.attributeChangedCallback(e,l[e],t)},configurable:!0,enumerable:!0})})),this._mountFrame=requestAnimationFrame((()=>{if(this._mountFrame=null,!this.isConnected)return;const t=this.children?Array.from(this.children):[];if(this._component=new e({...l,children:t}).mount(this._shadowRoot,n),this._component._props=l,this._component.dispatchEvent=this.dispatchEvent.bind(this),this._component.mounted){const e=this._component.mounted(l,t,this._component.state);void 0!==e&&(this._component.state=e)}this.on=this._component.on.bind(this._component),this.run=this._component.run.bind(this._component);const o=this._pendingAttributes;this._pendingAttributes=[],o.forEach((({name:e,oldValue:t,value:n})=>{this.attributeChangedCallback(e,t,n)})),!1!==n.render&&this._component.run(".")}))}}disconnectedCallback(){null!=this._mountFrame&&(cancelAnimationFrame(this._mountFrame),this._mountFrame=null),this._pendingAttributes=[],this._component?.unload?.(this._component.state),this._component?.unmount?.(),this._component=null}attributeChangedCallback(e,n,o){if(this._component){const r=this._attrMap?this._attrMap(e):e;this._component._props[r]=o,this._component.run("attributeChanged",r,n,o),o!==n&&!1!==t.render&&window.requestAnimationFrame((()=>{this._component?.run(".")}))}else this._pendingAttributes.push({name:e,oldValue:n,value:o})}},r=(e,t,n)=>{"undefined"!=typeof customElements&&customElements.define(e,o(t,n))}},457:(e,t,n)=>{function o(e){return e.toLowerCase()}n.d(t,{S:()=>o})},475:(e,t,n)=>{n.d(t,{a6:()=>c,wE:()=>h,z0:()=>u});var o=n(859);function r(e){return e?e.startsWith("#/")?e.substring(2).split("/"):e.startsWith("#")||e.startsWith("/")?e.substring(1).split("/"):e.split("/"):[]}function l(e){return e.startsWith("#/")?"hash-slash":e.startsWith("#")?"hash":e.startsWith("/")?"path":"non-prefixed"}function i(){const e=o.A.find("#");if(e&&e.length>0)return o.A.run("#"),void o.A.run(u,"#");const t=o.A.find("/");if(t&&t.length>0)return o.A.run("/"),void o.A.run(u,"/");const n=o.A.find("#/");if(n&&n.length>0)return o.A.run("#/"),void o.A.run(u,"#/");o.A.debug&&console.warn("No subscribers for event: "),o.A.run(c,""),o.A.run(u,"")}function s(e){if(!e)return void i();e=function(e){return e&&"/"!==e&&"#"!==e&&"#/"!==e&&e.endsWith("/")?e.slice(0,-1):e}(e);const t=o.A.basePath;t&&(e=function(e,t){if(!t||"/"===t||""===t)return e;const n=t.startsWith("/")?t:"/"+t;if(e.startsWith(n)){const t=e.substring(n.length);return t.startsWith("/")?t:"/"+t}return e}(e,t));const n=r(e);!function(e){const t=e.filter(Boolean);t.length>11&&console.warn(`Deep route hierarchy detected: ${t.join("/")} (${t.length} levels)`)}(n);const s=l(e),h=function(e,t){const n=[];for(let o=e.length;o>0;o--){const r=e.slice(0,o);let l="";switch(t){case"path":l="/"+r.join("/");break;case"hash":l="#"+r.join("/");break;case"hash-slash":l="#/"+r.join("/");break;case"non-prefixed":l=r.join("/")}n.push(l)}return n}(n,s),d=h[0],p=o.A.find(d),m=p&&p.length>0?{eventName:d,parameters:[]}:function(e,t){const n=Object.keys(o.A._events||{}).map((n=>function(e,t,n){if(l(e)!==t||!r(e).some((e=>"*"===e||e.startsWith(":"))))return null;const o=r(e),i=[];let s=0;for(let t=0;t<o.length;t++){const r=o[t];if("*"===r)return i.push(n.slice(t).join("/")),{eventName:e,parameters:i,score:10*s+o.length};const l=n[t];if(void 0===l)return null;if(r.startsWith(":"))i.push(l);else{if(r!==l)return null;s++}}return o.length!==n.length?null:{eventName:e,parameters:i,score:10*s+o.length}}(n,e,t))).filter(Boolean).sort(((e,t)=>t.score-e.score||t.eventName.length-e.eventName.length));return n.length>0?{eventName:n[0].eventName,parameters:n[0].parameters}:null}(s,n)||function(e,t){for(let n=0;n<e.length;n++){const r=e[n],l=o.A.find(r);if(l&&l.length>0){const o=e.length-n;return{eventName:r,parameters:t.slice(o)}}}return null}(h.slice(1),n);if(m)a(m.eventName,...m.parameters);else if(h.length>0){const t=h[h.length-1];o.A.debug&&console.warn(`No subscribers for event: ${t}`),o.A.run(c,e),o.A.run(u,e)}else i()}const a=(e,...t)=>{if(!e||e===u||e===c)return;const n=o.A.find(e);n&&0!==n.length?o.A.run(e,...t):(o.A.debug&&console.warn(`No subscribers for event: ${e}`),o.A.run(c,e,...t)),o.A.run(u,e,...t)},u="//",c="///",h=e=>{o.A.lastUrl!==e&&(o.A.lastUrl=e,s(e))}},530:(e,t,n)=>{n.d(t,{_:()=>r});var o=n(815);function r(e,t){return(0,o.B)(e,t.toLowerCase())}},559:(e,t,n)=>{n.d(t,{_:()=>o});const o=(0,n(259).v)({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()})},564:(e,t,n)=>{n.d(t,{J:()=>i});var o=n(815),r=n(259),l=n(18);const i=(0,r.v)({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:l.commaOrSpaceSeparated,accentHeight:l.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:l.number,amplitude:l.number,arabicForm:null,ascent:l.number,attributeName:null,attributeType:null,azimuth:l.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:l.number,by:null,calcMode:null,capHeight:l.number,className:l.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:l.number,diffuseConstant:l.number,direction:null,display:null,dur:null,divisor:l.number,dominantBaseline:null,download:l.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:l.number,enableBackground:null,end:null,event:null,exponent:l.number,externalResourcesRequired:null,fill:null,fillOpacity:l.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:l.commaSeparated,g2:l.commaSeparated,glyphName:l.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:l.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:l.number,horizOriginX:l.number,horizOriginY:l.number,id:null,ideographic:l.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:l.number,k:l.number,k1:l.number,k2:l.number,k3:l.number,k4:l.number,kernelMatrix:l.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:l.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:l.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:l.number,overlineThickness:l.number,paintOrder:null,panose1:null,path:null,pathLength:l.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:l.number,pointsAtY:l.number,pointsAtZ:l.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l.commaOrSpaceSeparated,rev:l.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l.commaOrSpaceSeparated,requiredFeatures:l.commaOrSpaceSeparated,requiredFonts:l.commaOrSpaceSeparated,requiredFormats:l.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:l.number,specularExponent:l.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:l.number,strikethroughThickness:l.number,string:null,stroke:null,strokeDashArray:l.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:l.number,strokeOpacity:l.number,strokeWidth:null,style:null,surfaceScale:l.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l.commaOrSpaceSeparated,tabIndex:l.number,tableValues:null,target:null,targetX:l.number,targetY:l.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:l.number,underlineThickness:l.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:l.number,values:null,vAlphabetic:l.number,vMathematical:l.number,vectorEffect:null,vHanging:l.number,vIdeographic:l.number,version:null,vertAdvY:l.number,vertOriginX:l.number,vertOriginY:l.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:l.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:o.B})},569:(e,t,n)=>{n.d(t,{q:()=>i});var o=n(530),r=n(259),l=n(18);const i=(0,r.v)({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l.commaSeparated,acceptCharset:l.spaceSeparated,accessKey:l.spaceSeparated,action:null,allow:null,allowFullScreen:l.boolean,allowPaymentRequest:l.boolean,allowUserMedia:l.boolean,alt:null,as:null,async:l.boolean,autoCapitalize:null,autoComplete:l.spaceSeparated,autoFocus:l.boolean,autoPlay:l.boolean,blocking:l.spaceSeparated,capture:null,charSet:null,checked:l.boolean,cite:null,className:l.spaceSeparated,cols:l.number,colSpan:null,content:null,contentEditable:l.booleanish,controls:l.boolean,controlsList:l.spaceSeparated,coords:l.number|l.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l.boolean,defer:l.boolean,dir:null,dirName:null,disabled:l.boolean,download:l.overloadedBoolean,draggable:l.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l.boolean,formTarget:null,headers:l.spaceSeparated,height:l.number,hidden:l.overloadedBoolean,high:l.number,href:null,hrefLang:null,htmlFor:l.spaceSeparated,httpEquiv:l.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:l.boolean,inputMode:null,integrity:null,is:null,isMap:l.boolean,itemId:null,itemProp:l.spaceSeparated,itemRef:l.spaceSeparated,itemScope:l.boolean,itemType:l.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l.boolean,low:l.number,manifest:null,max:null,maxLength:l.number,media:null,method:null,min:null,minLength:l.number,multiple:l.boolean,muted:l.boolean,name:null,nonce:null,noModule:l.boolean,noValidate:l.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l.boolean,optimum:l.number,pattern:null,ping:l.spaceSeparated,placeholder:null,playsInline:l.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:l.boolean,referrerPolicy:null,rel:l.spaceSeparated,required:l.boolean,reversed:l.boolean,rows:l.number,rowSpan:l.number,sandbox:l.spaceSeparated,scope:null,scoped:l.boolean,seamless:l.boolean,selected:l.boolean,shadowRootClonable:l.boolean,shadowRootDelegatesFocus:l.boolean,shadowRootMode:null,shape:null,size:l.number,sizes:null,slot:null,span:l.number,spellCheck:l.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:l.number,step:null,style:null,tabIndex:l.number,target:null,title:null,translate:null,type:null,typeMustMatch:l.boolean,useMap:null,value:l.booleanish,width:l.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:l.spaceSeparated,axis:null,background:null,bgColor:null,border:l.number,borderColor:null,bottomMargin:l.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l.boolean,declare:l.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:l.number,leftMargin:l.number,link:null,longDesc:null,lowSrc:null,marginHeight:l.number,marginWidth:l.number,noResize:l.boolean,noHref:l.boolean,noShade:l.boolean,noWrap:l.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:l.number,rules:null,scheme:null,scrolling:l.booleanish,standby:null,summary:null,text:null,topMargin:l.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l.boolean,disableRemotePlayback:l.boolean,prefix:null,property:null,results:l.number,security:null,unselectable:null},space:"html",transform:o._})},597:(e,t,n)=>{n.d(t,{o:()=>d});var o=n(775),r=n(862);const l="_props",i=new Map;function s(e,t,n){!function(e){return null!=e&&!1!==e&&""!==e&&(!0===e||("string"==typeof e?"false"!==e.toLowerCase()&&"0"!==e:Boolean(e)))}(n)?e.removeAttribute(t):e.setAttribute(t,t)}function a(e,t,n){try{e[t]=n}catch(o){u(e,t,n,!1)}}function u(e,t,n,o){if(null==n)return void e.removeAttribute(t);const r=String(n);if(o&&t.includes(":")){const[n]=t.split(":");"xlink"===n?e.setAttributeNS("http://www.w3.org/1999/xlink",t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}function c(e,t,n,l){if(c=e,h=t,document.activeElement===c?["selectionStart","selectionEnd","selectionDirection"].includes(h):"scrollTop"===h||"scrollLeft"===h||c instanceof HTMLMediaElement&&["currentTime","paused","playbackRate","volume"].includes(h))return;var c,h;if("style"===t){if(e.style.cssText&&(e.style.cssText=""),"string"==typeof n)e.style.cssText=n;else if(n&&"object"==typeof n)for(const t in n)e.style[t]!==n[t]&&(e.style[t]=n[t]);return}if("key"===t)return void(null!=n&&(e.key=n));if(t.startsWith("data-"))return void function(e,t,n){const o=(r=t.slice(5)).length<=1?r.toLowerCase():r.split("-").map(((e,t)=>0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join("");var r;null==n?delete e.dataset[o]:e.dataset[o]=String(n)}(e,t,n);if(t.startsWith("on"))return void function(e,t,n){t.startsWith("on")&&(n&&"function"!=typeof n?"string"==typeof n&&(n?e.setAttribute(t,n):e.removeAttribute(t)):e[t]=n)}(e,t,n);if(!("INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"SELECT"!==e.tagName||"value"!==t&&"selected"!==t&&"selectedIndex"!==t))return void a(e,t,n);if("INPUT"===e.tagName&&"checked"===t)return a(e,t,n),void s(e,t,n);const d=function(e,t){const n=`${e}:${t}`;let l=i.get(n);return void 0===l&&(l=(0,o.I)(t?r.JW:r.qy,e)||null,i.set(n,l)),l}(t,l);d?d.boolean||d.overloadedBoolean?s(e,d.attribute,n):d.mustUseProperty&&!l?a(e,d.property,n):u(e,d.attribute,n,l):t.startsWith("aria-")||"role"===t?u(e,t,n,l):t in e||void 0!==e[t]?a(e,t,n):u(e,t,n,l)}function h(e){return/^[a-zA-Z_:][\w\-:.]*$/.test(e)&&!e.includes("<")&&!e.includes(">")&&!e.includes('"')&&!e.includes("'")}function d(e,t,n){const o=function(e,t){if(t&&(t.class=t.class||t.className,delete t.className),!e||0===Object.keys(e).length)return t||{};if(!t||0===Object.keys(t).length){const t={};return Object.keys(e).forEach((e=>t[e]=null)),t}const n={};return Object.keys(e).forEach((e=>{e in t||(n[e]=null)})),Object.keys(t).forEach((e=>n[e]=t[e])),n}(e[l]||{},t);e[l]=t||{},function(e,t,n,o){for(const n in t)h(n)&&c(e,n,t[n],o);t&&"function"==typeof t.ref&&window.requestAnimationFrame((()=>t.ref(e)))}(e,o,0,n)}},627:(e,t,n)=>{n.d(t,{R:()=>o});class o{constructor(e,t){this.attribute=t,this.property=e}}o.prototype.attribute="",o.prototype.booleanish=!1,o.prototype.boolean=!1,o.prototype.commaOrSpaceSeparated=!1,o.prototype.commaSeparated=!1,o.prototype.defined=!1,o.prototype.mustUseProperty=!1,o.prototype.number=!1,o.prototype.overloadedBoolean=!1,o.prototype.property="",o.prototype.spaceSeparated=!1,o.prototype.space=void 0},634:(e,t,n)=>{function o(e){return e?.target instanceof HTMLElement?e.target:null}function r(e,t){"object"==typeof e&&null!==e&&Object.keys(t).forEach((n=>{e[n]=t[n]}))}function l(e,t=document){try{return t.querySelector(e)}catch(t){return console.warn(`Invalid selector: ${e}`,t),null}}function i(e){try{return document.getElementById(e)}catch(t){return console.warn(`Error getting element by id: ${e}`,t),null}}n.d(t,{PB:()=>o,Q0:()=>r,bV:()=>l,oP:()=>i})},670:(e,t,n)=>{n.d(t,{F:()=>o});const o=(0,n(259).v)({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()})},672:(e,t,n)=>{n.d(t,{C:()=>r,a:()=>o});const o="6.0.0",r=`AppRun-${o}`},741:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(859),r=n(634);const l=e=>{if(!e)return[];const t=[];let n="",o=!1,r="";for(let l=0;l<e.length;l++){const i=e[l];"["!==i||o?"]"===i&&o?(r?n=n.slice(1,-1):/^\d+$/.test(n)&&(n=parseInt(n,10)),t.push(n),n="",o=!1,r=""):'"'!==i&&"'"!==i||!o?"."!==i||o?n+=i:n&&(t.push(n),n=""):(r?i===r&&(r=""):r=i,n+=i):(n&&(t.push(n),n=""),o=!0)}return n&&t.push(n),t},i=(e,t)=>{if(!t)return e.state||"";const n=l(t),o=((e,t)=>{let n=e;for(const e of t){if(null==n)return;n=n[e]}return n})(e.state,n);return void 0!==o?o:""},s=(e,t,n)=>{if(!t)return void e.setState(n);const o=l(t),r=((e,t,n)=>{if(0===t.length)return n;const o={...e};let r=o;for(let e=0;e<t.length-1;e++){const n=t[e],o=t[e+1];null==r[n]?r[n]="number"==typeof o?[]:{}:Array.isArray(r[n])?r[n]=[...r[n]]:"object"==typeof r[n]&&(r[n]={...r[n]}),r=r[n]}return r[t[t.length-1]]=n,o})(e.state||{},o,n);e.setState(r)},a=(e,t)=>{if(Array.isArray(e))return e.map((e=>a(e,t)));{let{type:n,tag:l,props:u,children:c}=e;return l=l||n,c=c||u?.children,u&&Object.keys(u).forEach((e=>{e.startsWith("$")&&(((e,t,n,l)=>{if(e.startsWith("$on")){const n=t[e];if(e=e.substring(1),"boolean"==typeof n)t[e]=t=>l.run?l.run(e,t):o.A.run(e,t);else if("string"==typeof n)t[e]=e=>l.run?l.run(n,e):o.A.run(n,e);else if("function"==typeof n)t[e]=e=>l.setState(n(l.state,e));else if(Array.isArray(n)){const[r,...i]=n;"string"==typeof r?t[e]=e=>l.run?l.run(r,...i,e):o.A.run(r,...i,e):"function"==typeof r&&(t[e]=e=>l.setState(r(l.state,...i,e)))}}else if("$bind"===e){const o=t.type||"text",a="string"==typeof t[e]?t[e]:t.name;if("input"===n)switch(o){case"checkbox":t.checked=i(l,a),t.onclick=e=>{const t=(0,r.PB)(e);t&&s(l,a||t.name,t.checked)};break;case"radio":t.checked=i(l,a)===t.value,t.onclick=e=>{const t=(0,r.PB)(e);t&&s(l,a||t.name,t.value)};break;case"number":case"range":t.value=i(l,a),t.oninput=e=>{const t=(0,r.PB)(e);t&&s(l,a||t.name,Number(t.value))};break;default:t.value=i(l,a),t.oninput=e=>{const t=(0,r.PB)(e);t&&s(l,a||t.name,t.value)}}else"select"===n?(t.value=i(l,a),t.onchange=e=>{const t=(0,r.PB)(e);t&&!t.multiple&&s(l,a||t.name,t.value)}):"option"===n?(t.selected=i(l,a),t.onclick=e=>{const t=(0,r.PB)(e);t&&s(l,a||t.name,t.selected)}):"textarea"===n&&(t.value=i(l,a),t.oninput=e=>{const t=(0,r.PB)(e);t&&s(l,a||t.name,t.value)})}else o.A.run("$",{key:e,tag:n,props:t,component:l})})(e,u,l,t),delete u[e])})),c&&a(c,t),e}},u=a},752:(e,t,n)=>{n.d(t,{JW:()=>E,XX:()=>W,c0:()=>w,qy:()=>$,s6:()=>C});const o=globalThis,r=o.trustedTypes,l=r?r.createPolicy("lit-html",{createHTML:e=>e}):void 0,i="$lit$",s=`lit$${Math.random().toFixed(9).slice(2)}$`,a="?"+s,u=`<${a}>`,c=document,h=()=>c.createComment(""),d=e=>null===e||"object"!=typeof e&&"function"!=typeof e,p=Array.isArray,m="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,y=/>/g,b=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,v=/"/g,A=/^(?:script|style|textarea|title)$/i,S=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),$=S(1),E=S(2),w=(S(3),Symbol.for("lit-noChange")),C=Symbol.for("lit-nothing"),k=new WeakMap,P=c.createTreeWalker(c,129);function x(e,t){if(!p(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==l?l.createHTML(t):t}const O=(e,t)=>{const n=e.length-1,o=[];let r,l=2===t?"<svg>":3===t?"<math>":"",a=f;for(let t=0;t<n;t++){const n=e[t];let c,h,d=-1,p=0;for(;p<n.length&&(a.lastIndex=p,h=a.exec(n),null!==h);)p=a.lastIndex,a===f?"!--"===h[1]?a=g:void 0!==h[1]?a=y:void 0!==h[2]?(A.test(h[2])&&(r=RegExp("</"+h[2],"g")),a=b):void 0!==h[3]&&(a=b):a===b?">"===h[0]?(a=r??f,d=-1):void 0===h[1]?d=-2:(d=a.lastIndex-h[2].length,c=h[1],a=void 0===h[3]?b:'"'===h[3]?v:_):a===v||a===_?a=b:a===g||a===y?a=f:(a=b,r=void 0);const m=a===b&&e[t+1].startsWith("/>")?" ":"";l+=a===f?n+u:d>=0?(o.push(c),n.slice(0,d)+i+n.slice(d)+s+m):n+s+(-2===d?t:m)}return[x(e,l+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]};class M{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let l=0,u=0;const c=e.length-1,d=this.parts,[p,m]=O(e,t);if(this.el=M.createElement(p,n),P.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=P.nextNode())&&d.length<c;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(i)){const t=m[u++],n=o.getAttribute(e).split(s),r=/([.?@])?(.*)/.exec(t);d.push({type:1,index:l,name:r[2],strings:n,ctor:"."===r[1]?D:"?"===r[1]?N:"@"===r[1]?j:U}),o.removeAttribute(e)}else e.startsWith(s)&&(d.push({type:6,index:l}),o.removeAttribute(e));if(A.test(o.tagName)){const e=o.textContent.split(s),t=e.length-1;if(t>0){o.textContent=r?r.emptyScript:"";for(let n=0;n<t;n++)o.append(e[n],h()),P.nextNode(),d.push({type:2,index:++l});o.append(e[t],h())}}}else if(8===o.nodeType)if(o.data===a)d.push({type:2,index:l});else{let e=-1;for(;-1!==(e=o.data.indexOf(s,e+1));)d.push({type:7,index:l}),e+=s.length-1}l++}}static createElement(e,t){const n=c.createElement("template");return n.innerHTML=e,n}}function T(e,t,n=e,o){if(t===w)return t;let r=void 0!==o?n._$Co?.[o]:n._$Cl;const l=d(t)?void 0:t._$litDirective$;return r?.constructor!==l&&(r?._$AO?.(!1),void 0===l?r=void 0:(r=new l(e),r._$AT(e,n,o)),void 0!==o?(n._$Co??=[])[o]=r:n._$Cl=r),void 0!==r&&(t=T(e,r._$AS(e,t.values),r,o)),t}class R{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,o=(e?.creationScope??c).importNode(t,!0);P.currentNode=o;let r=P.nextNode(),l=0,i=0,s=n[0];for(;void 0!==s;){if(l===s.index){let t;2===s.type?t=new L(r,r.nextSibling,this,e):1===s.type?t=new s.ctor(r,s.name,s.strings,this,e):6===s.type&&(t=new H(r,this,e)),this._$AV.push(t),s=n[++i]}l!==s?.index&&(r=P.nextNode(),l++)}return P.currentNode=c,o}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class L{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=T(this,e,t),d(e)?e===C||null==e||""===e?(this._$AH!==C&&this._$AR(),this._$AH=C):e!==this._$AH&&e!==w&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>p(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==C&&d(this._$AH)?this._$AA.nextSibling.data=e:this.T(c.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=M.createElement(x(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new R(o,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=k.get(e.strings);return void 0===t&&k.set(e.strings,t=new M(e)),t}k(e){p(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,o=0;for(const r of e)o===t.length?t.push(n=new L(this.O(h()),this.O(h()),this,this.options)):n=t[o],n._$AI(r),o++;o<t.length&&(this._$AR(n&&n._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class U{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,r){this.type=1,this._$AH=C,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=C}_$AI(e,t=this,n,o){const r=this.strings;let l=!1;if(void 0===r)e=T(this,e,t,0),l=!d(e)||e!==this._$AH&&e!==w,l&&(this._$AH=e);else{const o=e;let i,s;for(e=r[0],i=0;i<r.length-1;i++)s=T(this,o[n+i],t,i),s===w&&(s=this._$AH[i]),l||=!d(s)||s!==this._$AH[i],s===C?e=C:e!==C&&(e+=(s??"")+r[i+1]),this._$AH[i]=s}l&&!o&&this.j(e)}j(e){e===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class D extends U{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===C?void 0:e}}class N extends U{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==C)}}class j extends U{constructor(e,t,n,o,r){super(e,t,n,o,r),this.type=5}_$AI(e,t=this){if((e=T(this,e,t,0)??C)===w)return;const n=this._$AH,o=e===C&&n!==C||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==C&&(n===C||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class H{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}}const B=o.litHtmlPolyfillSupport;B?.(M,L),(o.litHtmlVersions??=[]).push("3.3.0");const W=(e,t,n)=>{const o=n?.renderBefore??t;let r=o._$litPart$;if(void 0===r){const e=n?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(h(),e),e,void 0,n??{})}return r._$AI(e),r}},775:(e,t,n)=>{n.d(t,{I:()=>u});var o=n(147),r=n(627),l=n(457);const i=/[A-Z]/g,s=/-[a-z]/g,a=/^data[-\w.:]+$/i;function u(e,t){const n=(0,l.S)(t);let u=t,d=r.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&a.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(s,h);u="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!s.test(e)){let n=e.replace(i,c);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}d=o.E}return new d(u,t)}function c(e){return"-"+e.toLowerCase()}function h(e){return e.charAt(1).toUpperCase()}},791:(e,t,n)=>{n.d(t,{FK:()=>l,Fs:()=>d,cJ:()=>a,n:()=>s,t_:()=>p});var o=n(741),r=n(597);function l(e,...t){return i(t)}function i(e){const t=[],n=e=>{null!=e&&""!==e&&!1!==e&&t.push("function"==typeof e||"object"==typeof e?e:`${e}`)};return e&&e.forEach((e=>{Array.isArray(e)?e.forEach((e=>n(e))):n(e)})),t}function s(e,t,...n){const o=i(n);if("string"==typeof e)return{tag:e,props:t,children:o};if(Array.isArray(e))return e;if(void 0===e&&n)return o;if(Object.getPrototypeOf(e).__isAppRunComponent)return{tag:e,props:t,children:o};if("function"==typeof e)return e(t,o);throw new Error(`Unknown tag in vdom ${e}`)}const a=(e,t,n={})=>{null!=t&&!1!==t&&function(e,t,n={}){if(null==t||!1===t)return;if(function(e){e&&e.__componentCache&&(e.__componentCacheUsed={})}(n),t=g(t,n),function(e){e&&e.__componentCache&&e.__componentCacheUsed&&(Object.keys(e.__componentCache).forEach((t=>{e.__componentCacheUsed[t]||(e.__componentCache[t]?.unmount?.(),delete e.__componentCache[t])})),e.__componentCacheUsed=null)}(n),!e)return;const o="SVG"===e.nodeName;Array.isArray(t)?c(e,t,o):c(e,[t],o)}("string"==typeof e&&e?document.getElementById(e)||document.querySelector(e):e,t=(0,o.A)(t,n),n)};function u(e,t,n){n=n||"svg"===t.tag,function(e,t){const n=e.nodeName,o=`${t.tag||""}`;return n.toUpperCase()===o.toUpperCase()}(e,t)?(c(e,t.children,n),(0,r.o)(e,t.props,n)):e.parentNode.replaceChild(f(t,n),e)}function c(e,t,n){const o={};Array.from(e.childNodes||[]).forEach((e=>{void 0!==e.key&&null!==e.key&&(o[h(e.key)]=e)}));const r=e.childNodes?.length||0,l=t?.length||0,i=Math.min(r,l);for(let r=0;r<i;r++){const l=t[r],i=e.childNodes[r];if("string"==typeof l)i.textContent!==l&&(3===i.nodeType?i.nodeValue=l:e.replaceChild(m(l),i));else if(l instanceof HTMLElement||l instanceof SVGElement)e.insertBefore(l,i);else{const t=l.props?l.props.key:void 0;if(null!=t)if(i.key===t)u(e.childNodes[r],l,n);else{const s=o[h(t)];s?(e.insertBefore(s,i),u(e.childNodes[r],l,n)):e.replaceChild(f(l,n),i)}else u(e.childNodes[r],l,n)}}let s=e.childNodes?.length||0;for(;s>i;)e.removeChild(e.lastChild),s--;if(l>i){const o=document.createDocumentFragment();for(let e=i;e<t.length;e++)o.appendChild(f(t[e],n));e.appendChild(o)}}function h(e){return`${typeof e}:${String(e)}`}const d=e=>{const t=document.createElement("section");return t.insertAdjacentHTML("afterbegin",e),Array.from(t.children)},p=d;function m(e){return document.createTextNode(e??"")}function f(e,t){if(e instanceof HTMLElement||e instanceof SVGElement)return e;if("string"==typeof e)return m(e);if(!e.tag||"function"==typeof e.tag)return m(JSON.stringify(e));const n=(t=t||"svg"===e.tag)?document.createElementNS("http://www.w3.org/2000/svg",e.tag):document.createElement(e.tag);return(0,r.o)(n,e.props,t),e.children&&e.children.forEach((e=>n.appendChild(f(e,t)))),e.props&&void 0!==e.props.key&&null!==e.props.key&&(n.key=e.props.key),n}function g(e,t,n=0){if("string"==typeof e)return e;if(Array.isArray(e))return e.map((e=>g(e,t,n++)));let o=e;if(e&&"function"==typeof e.tag&&Object.getPrototypeOf(e.tag).__isAppRunComponent&&(o=function(e,t,n){const{tag:o,props:l,children:i}=e,s=l&&l.id,a=null!=s?String(s):`_${n}`;let u="section";l&&l.as&&(u=l.as,delete l.as),t.__componentCache||(t.__componentCache={}),function(e,t){e&&(e.__componentCacheUsed=e.__componentCacheUsed||{},e.__componentCacheUsed[t]=!0)}(t,a);let c=t.__componentCache[a];if(c&&c instanceof o&&c.element)c.renderState(c.state);else{const e=document.createElement(u);c=t.__componentCache[a]=new o({...l,children:i}).mount(e,{render:!0})}if(c.mounted){const e=c.mounted(l,i,c.state);void 0!==e&&c.setState(e)}return(0,r.o)(c.element,l,!1),c.element}(e,t,n)),o&&Array.isArray(o.children)){const e=o.props?._component;if(e){let t=0;o.children=o.children.map((n=>g(n,e,t++)))}else o.children=o.children.map((e=>g(e,t,n++)))}return o}},804:(e,t,n)=>{n.d(t,{OA:()=>o,WL:()=>l,u$:()=>r});const o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},r=e=>(...t)=>({_$litDirective$:e,values:t});class l{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},815:(e,t,n)=>{function o(e,t){return t in e?e[t]:t}n.d(t,{B:()=>o})},859:(e,t,n)=>{n.d(t,{A:()=>a,q:()=>r});var o=n(672);class r{constructor(){this._reporting_error=!1,this._events={},this._wildcard_events=[]}on(e,t,n={}){this._events[e]=this._events[e]||[];const o={fn:t,options:n};this._events[e].push(o),e.endsWith("*")&&(this._wildcard_events.push({name:e,prefix:e.replace("*",""),sub:o}),this._wildcard_events.sort(((e,t)=>t.name.length-e.name.length)))}off(e,t){const n=this._events[e]||[];this._events[e]=n.filter((e=>e.fn!==t)),e.endsWith("*")&&(this._wildcard_events=this._wildcard_events.filter((n=>!(n.name===e&&n.sub.fn===t))))}find(e){return this._events[e]}run(e,...t){const n=this.getSubscribers(e,this._events);return this.debug&&console.assert(n&&n.length>0,"No subscriber for event: "+e),n.forEach((n=>{const{fn:o,options:r}=n;if(!o||"function"!=typeof o)return console.error(`AppRun event handler for '${e}' is not a function:`,o),!1;if(r.delay)this.delay(e,n,t);else try{Object.keys(r).length>0?o.apply(this,[...t,r]):o.apply(this,t)}catch(n){this.reportError(e,n,{phase:"run",args:t})}})),n.length}once(e,t,n={}){this.on(e,t,{...n,once:!0})}delay(e,t,n){const o=t._source||t,{fn:r,options:l}=t;o._t&&clearTimeout(o._t),o._t=setTimeout((()=>{clearTimeout(o._t),o._t=null;try{Object.keys(l).length>0?r.apply(this,[...n,l]):r.apply(this,n)}catch(t){this.reportError(e,t,{phase:"delay",args:n})}}),l.delay)}runAsync(e,...t){const n=this.getSubscribers(e,this._events);this.debug&&console.assert(n&&n.length>0,"No subscriber for event: "+e);const o=n.map((n=>{const{fn:o,options:r}=n;if(!o||"function"!=typeof o)return console.error(`AppRun async event handler for '${e}' is not a function:`,o),Promise.resolve(null);try{const n=Object.keys(r).length>0?o.apply(this,[...t,r]):o.apply(this,t);return Promise.resolve(n).catch((n=>(this.reportError(e,n,{phase:"runAsync",args:t}),Promise.reject(n))))}catch(n){return this.reportError(e,n,{phase:"runAsync",args:t}),Promise.reject(n)}}));return Promise.all(o)}reportError(e,t,n={}){const o={event:e,error:t,app:this,...n},r="error"===e||this._reporting_error?[]:this.getSubscribers("error",this._events);if(r.length>0){this._reporting_error=!0;try{r.forEach((e=>{try{e.fn.call(this,o)}catch(e){console.error("Error in error event handler:",e)}}))}finally{this._reporting_error=!1}}else"delay"===n.phase?console.error(`Error in delayed event handler for '${e}':`,t):"runAsync"===n.phase?console.error(`Error in async event handler for '${e}':`,t):console.error(`Error in event handler for '${e}':`,t)}removeOnceWildcardSubscriber(e,t){this._events[e]=(this._events[e]||[]).filter((e=>e!==t)),this._wildcard_events=this._wildcard_events.filter((e=>e.sub!==t))}getSubscribers(e,t){const n=t[e]||[],o=n.slice();return t[e]=n.filter((e=>!e.options.once)),this._wildcard_events.filter((({name:t,prefix:n})=>t!==e&&e.startsWith(n))).forEach((({name:t,sub:n})=>{n.options.once&&this.removeOnceWildcardSubscriber(t,n),o.push({...n,_source:n,options:{...n.options,event:e}})})),o}}const l=o.C;let i;const s="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};s.app&&s._AppRunVersions?i=s.app:(i=new r,s.app=i,s._AppRunVersions=l);const a=i},862:(e,t,n)=>{n.d(t,{JW:()=>h,qy:()=>c});var o=n(987),r=n(277),l=n(569),i=n(564),s=n(670),a=n(72),u=n(559);const c=(0,o.h)([r.a,l.q,s.F,a.z,u._],"html"),h=(0,o.h)([r.a,i.J,s.F,a.z,u._],"svg")},987:(e,t,n)=>{n.d(t,{h:()=>r});var o=n(176);function r(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new o.S(n,r,t)}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{Component:()=>i.u,ROUTER_404_EVENT:()=>a.a6,ROUTER_EVENT:()=>a.z0,app:()=>r.app,customElement:()=>s.EM,default:()=>I,event:()=>s.yo,html:()=>T.qy,on:()=>s.on,render:()=>H,run:()=>W,safeHTML:()=>u.t_,svg:()=>T.JW,trustedHTML:()=>u.Fs,update:()=>s.yo});var r=n(292),l=n(634),i=n(91),s=n(9),a=n(475),u=n(791);const c=globalThis,h=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),p=new WeakMap;class m{constructor(e,t,n){if(this._$cssResult$=!0,n!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(h&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=p.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&p.set(t,e))}return e}toString(){return this.cssText}}const f=(e,t)=>{if(h)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const n of t){const t=document.createElement("style"),o=c.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=n.cssText,e.appendChild(t)}},g=h?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new m("string"==typeof e?e:e+"",void 0,d))(t)})(e):e,{is:y,defineProperty:b,getOwnPropertyDescriptor:_,getOwnPropertyNames:v,getOwnPropertySymbols:A,getPrototypeOf:S}=Object,$=globalThis,E=$.trustedTypes,w=E?E.emptyScript:"",C=$.reactiveElementPolyfillSupport,k=(e,t)=>e,P={toAttribute(e,t){switch(t){case Boolean:e=e?w:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},x=(e,t)=>!y(e,t),O={attribute:!0,type:String,converter:P,reflect:!1,useDefault:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),$.litPropertyMetadata??=new WeakMap;class M extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=O){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(e,n,t);void 0!==o&&b(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){const{get:o,set:r}=_(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:o,set(t){const l=o?.call(this);r?.call(this,t),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??O}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;const e=S(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){const e=this.properties,t=[...v(e),...A(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(g(e))}else void 0!==e&&t.push(g(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){const n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(void 0!==o&&!0===n.reflect){const r=(void 0!==n.converter?.toAttribute?n.converter:P).toAttribute(t,n.type);this._$Em=e,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){const n=this.constructor,o=n._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=n.getPropertyOptions(o),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:P;this._$Em=o,this[o]=r.fromAttribute(t,e.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){const o=this.constructor,r=this[e];if(n??=o.getPropertyOptions(e),!((n.hasChanged??x)(r,t)||n.useDefault&&n.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:o,wrapped:r},l){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,l??t??this[e]),!0!==r||void 0!==l)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===o&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,n]of e){const{wrapped:e}=n,o=this[t];!0!==e||this._$AL.has(t)||void 0===o||this.C(t,void 0,n,o)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}}M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[k("elementProperties")]=new Map,M[k("finalized")]=new Map,C?.({ReactiveElement:M}),($.reactiveElementVersions??=[]).push("2.1.0");var T=n(752);const R=globalThis;class L extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,T.XX)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T.c0}}L._$litElement$=!0,L.finalized=!0,R.litElementHydrateSupport?.({LitElement:L});const U=R.litElementPolyfillSupport;U?.({LitElement:L}),(R.litElementVersions??=[]).push("4.2.0");var D=n(804);class N extends D.WL{constructor(e){if(super(e),this.it=T.s6,e.type!==D.OA.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T.s6||null==e)return this._t=void 0,this.it=e;if(e===T.c0)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}N.directiveName="unsafeHTML",N.resultType=1;const j=(0,D.u$)(N);function H(e,t,n){t&&("string"==typeof t?(e._$litPart$||e.replaceChildren(),(0,T.XX)(T.qy`${j(t)}`,e)):t._$litType$?(e._$litPart$||e.replaceChildren(),(0,T.XX)(t,e)):((0,u.cJ)(e,t,n),e._$litPart$=void 0))}class B extends D.WL{constructor(e){if(super(e),e.type!==D.OA.EVENT)throw new Error("run() can only be used in event handlers")}update(e,t){const n=e.element,o=e.name,[l,...i]=t,s=()=>{let e=n,t=e._component;for(;!t&&e;)e=e.parentElement,t=e&&e._component;return console.assert(!!t,"Component not found."),t};return"string"==typeof l?n[`on${o}`]=e=>{const t=s();t?t.run(l,...i,e):r.default.run(l,...i,e)}:"function"==typeof l&&(n[`on${o}`]=e=>s().setState(l(s().state,...i,e))),this.render()}render(){return T.c0}}const W=(0,D.u$)(B);r.default.createElement=u.n,r.default.render=H,r.default.Fragment=u.FK;const I=r.default;return(()=>{if("object"!=typeof window)return;const e=window;(0,l.Q0)(e,{html:T.qy,svg:T.JW,run:W})})(),o})()));
3
3
  //# sourceMappingURL=apprun-html.js.map