@esri/solutions-components 5.1.14 → 5.1.16

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 (163) hide show
  1. package/dist/cdn/247Q2TXM.js +2 -0
  2. package/dist/cdn/{VCKCRMSD.js → 2C4JBZR3.js} +1 -1
  3. package/dist/cdn/{VW4UJ7IY.js → 2DTIYSOT.js} +1 -1
  4. package/dist/cdn/{JNQB7T54.js → 2QR2IHMG.js} +1 -1
  5. package/dist/cdn/3ODUV7DM.js +2 -0
  6. package/dist/cdn/{CPWYI2FO.js → 3TZRVL3S.js} +1 -1
  7. package/dist/cdn/{IBSFJBIL.js → 447ZMCY3.js} +1 -1
  8. package/dist/cdn/{XRQNNWH3.js → 4JE4ZZEO.js} +1 -1
  9. package/dist/cdn/4O622WUQ.js +2 -0
  10. package/dist/cdn/4OZKMC4H.js +2 -0
  11. package/dist/cdn/{T6F3TWF6.js → 4RPDNW6C.js} +1 -1
  12. package/dist/cdn/{24U5P7WR.js → 4W4LIIXK.js} +1 -1
  13. package/dist/cdn/{SNRLIWGC.js → 56OXNE5M.js} +1 -1
  14. package/dist/cdn/{5DZ55HIG.js → 5E2X2LIC.js} +1 -1
  15. package/dist/cdn/{XL66TA6C.js → 5LSAVYFC.js} +1 -1
  16. package/dist/cdn/5MVOXMG2.js +2 -0
  17. package/dist/cdn/5QGU6U72.js +2 -0
  18. package/dist/cdn/{KN2PNGQX.js → 6HPH3E35.js} +1 -1
  19. package/dist/cdn/{5AGI2QC2.js → 6IWBGRKB.js} +1 -1
  20. package/dist/cdn/6PKGJDEH.js +2 -0
  21. package/dist/cdn/6TGGKMQB.js +2 -0
  22. package/dist/cdn/{BOA6VQK6.js → 75QFNN26.js} +1 -1
  23. package/dist/cdn/{HB56DBBP.js → 7EKT4XZ2.js} +5 -5
  24. package/dist/cdn/{7MJZYDDW.js → 7FGKODSI.js} +1 -1
  25. package/dist/cdn/{BFYYWPZY.js → 7RX3CC2H.js} +1 -1
  26. package/dist/cdn/{KJTTBON2.js → ACR7LXQM.js} +1 -1
  27. package/dist/cdn/{65VKA5R3.js → AIJ5KNSJ.js} +1 -1
  28. package/dist/cdn/AVMD543K.js +2 -0
  29. package/dist/cdn/{JIOMWIMT.js → B33ONN6M.js} +1 -1
  30. package/dist/cdn/{OZVQRDTO.js → BE4N7HFP.js} +1 -1
  31. package/dist/cdn/{Z4LGN5M5.js → BSPAXBDY.js} +1 -1
  32. package/dist/cdn/{DERWSE25.js → C5IHV5FJ.js} +1 -1
  33. package/dist/cdn/{EV55ZAHX.js → C7D3FPWP.js} +1 -1
  34. package/dist/cdn/{2GBCVJXZ.js → D62YOY7Q.js} +1 -1
  35. package/dist/cdn/{4VUQR74S.js → DCNEGYEC.js} +1 -1
  36. package/dist/cdn/DG2BBLXW.js +2 -0
  37. package/dist/cdn/{7GWFZ23D.js → DTXW7GR2.js} +1 -1
  38. package/dist/cdn/DXWCRPU7.js +2 -0
  39. package/dist/cdn/{ABPXUFXN.js → E7CD7GZL.js} +1 -1
  40. package/dist/cdn/EOMG2X5B.js +357 -0
  41. package/dist/cdn/{O4MNHPWI.js → EWCJJNT5.js} +1 -1
  42. package/dist/cdn/{WQUZG2NJ.js → FILRH4BY.js} +1 -1
  43. package/dist/cdn/{OQMMSCLX.js → FUEOEICW.js} +1 -1
  44. package/dist/cdn/{2CIYQPV2.js → FWRCG7QJ.js} +1 -1
  45. package/dist/cdn/{O62JG2Y6.js → FXGWLBJ7.js} +1 -1
  46. package/dist/cdn/{6MQWDLJ6.js → GMAV5T2N.js} +1 -1
  47. package/dist/cdn/{LGJMYSGU.js → GPODLJUL.js} +1 -1
  48. package/dist/cdn/{CNNBPMQT.js → GRFNUGBT.js} +1 -1
  49. package/dist/cdn/{JXERXJF5.js → GTX5TOX6.js} +1 -1
  50. package/dist/cdn/GWKUM5FJ.js +456 -0
  51. package/dist/cdn/{5TNQ4S67.js → H3GN63Y3.js} +1 -1
  52. package/dist/cdn/{T7JWS4CF.js → HIVXXDHM.js} +1 -1
  53. package/dist/cdn/I4WRVQPK.js +2 -0
  54. package/dist/cdn/{36LRAUE4.js → IPQDASPD.js} +1 -1
  55. package/dist/cdn/{RSPNBIIE.js → IWLPFHJF.js} +1 -1
  56. package/dist/cdn/{ZXHMBCGN.js → J4Y2UUE5.js} +1 -1
  57. package/dist/cdn/{YR6F4HW7.js → JDGAPNOB.js} +1 -1
  58. package/dist/cdn/{7SZY3VBD.js → JMFXUBR7.js} +1 -1
  59. package/dist/cdn/{GNX2VU4F.js → JSKYS7P5.js} +1 -1
  60. package/dist/cdn/{AQ2USXUY.js → JY2FA5F3.js} +1 -1
  61. package/dist/cdn/{TRNQ5OTY.js → JYKJLNCR.js} +1 -1
  62. package/dist/cdn/K5DU5RWF.js +2 -0
  63. package/dist/cdn/{N5DZRJNH.js → KH4ZYXHD.js} +1 -1
  64. package/dist/cdn/{DT7GQICF.js → KMKWVYPI.js} +1 -1
  65. package/dist/cdn/{QPMXVWMP.js → L6LA4X2Q.js} +1 -1
  66. package/dist/cdn/{FTWOLF7Y.js → L76QNBH4.js} +1 -1
  67. package/dist/cdn/{SSNO5VHY.js → LC7635YE.js} +1 -1
  68. package/dist/cdn/{COKMQSEA.js → LEZRHZSL.js} +1 -1
  69. package/dist/cdn/{COEHM4BJ.js → LSPJWXOL.js} +1 -1
  70. package/dist/cdn/{PHGSNNMQ.js → LULZPSZK.js} +1 -1
  71. package/dist/cdn/{5O6E2RIA.js → LVFCQS24.js} +1 -1
  72. package/dist/cdn/{QMUSSZL2.js → M3BC47EX.js} +1 -1
  73. package/dist/cdn/{IYZ2PDYK.js → MD2W2CNY.js} +1 -1
  74. package/dist/cdn/{MECI4R4R.js → MH3W3N6T.js} +3 -3
  75. package/dist/cdn/{XOPNEAS5.js → MIC565TO.js} +1 -1
  76. package/dist/cdn/{FJAUOTG7.js → MKGWQ7ED.js} +1 -1
  77. package/dist/cdn/{XSJOQTEM.js → MTGZHZYF.js} +1 -1
  78. package/dist/cdn/{G2OBSHPX.js → N74SSEHF.js} +1 -1
  79. package/dist/cdn/{KOIHVAUY.js → NLXWDQUL.js} +1 -1
  80. package/dist/cdn/{CDZW34JV.js → NWI63TZX.js} +1 -1
  81. package/dist/cdn/{CAPXLC6T.js → O2Y2MGL7.js} +1 -1
  82. package/dist/cdn/{2A7FDE6T.js → O4Q74CU3.js} +1 -1
  83. package/dist/cdn/{SYHEO472.js → O7KEBYBS.js} +1 -1
  84. package/dist/cdn/PB4KDDNX.js +2 -0
  85. package/dist/cdn/{HW4LYJUR.js → PCRICJQB.js} +1 -1
  86. package/dist/cdn/{53YBLXWP.js → PFGAF7W7.js} +1 -1
  87. package/dist/cdn/{IDJHBEJC.js → PJ556LHC.js} +3 -3
  88. package/dist/cdn/{AONULVO2.js → PRBMUEIU.js} +1 -1
  89. package/dist/cdn/{2WXIVPKA.js → PUBYJMMF.js} +1 -1
  90. package/dist/cdn/Q5ALOX6G.js +2 -0
  91. package/dist/cdn/{FLPXST7W.js → QIYUCOCH.js} +1 -1
  92. package/dist/cdn/{RLDOLDG5.js → QT66ATR6.js} +1 -1
  93. package/dist/cdn/{K3ALRIQF.js → R22ZBXMU.js} +1 -1
  94. package/dist/cdn/{6RHFFYNC.js → RBA5LP53.js} +1 -1
  95. package/dist/cdn/{4M55FA2L.js → RJJEDOA5.js} +1 -1
  96. package/dist/cdn/{3JF7PWPA.js → RTHNTV3C.js} +1 -1
  97. package/dist/cdn/{VQ5ZAQUF.js → RWYVVDWD.js} +1 -1
  98. package/dist/cdn/{RPLXKWJA.js → SWZW76QC.js} +1 -1
  99. package/dist/cdn/{AO7XKW2U.js → SY25U3KI.js} +1 -1
  100. package/dist/cdn/T5RT73MF.js +2 -0
  101. package/dist/cdn/{W6GIBBBE.js → TWELRTPF.js} +1 -1
  102. package/dist/cdn/U3D2IIAX.js +2 -0
  103. package/dist/cdn/UAWJNBXB.js +4 -0
  104. package/dist/cdn/{KF64ALRP.js → ULAU7YYD.js} +1 -1
  105. package/dist/cdn/{VZWYFHPJ.js → UPYHIGTA.js} +1 -1
  106. package/dist/cdn/{VHAXJPRY.js → UR2RYZ4Q.js} +1 -1
  107. package/dist/cdn/{L5DQOHD5.js → V3QY6GGE.js} +1 -1
  108. package/dist/cdn/{YGVATVII.js → VEBARNK2.js} +1 -1
  109. package/dist/cdn/VSTISYVL.js +2 -0
  110. package/dist/cdn/{JMY4B4WQ.js → VT35RTGD.js} +1 -1
  111. package/dist/cdn/{RGOUIRT7.js → WFDP33EC.js} +1 -1
  112. package/dist/cdn/{4QGYS5DL.js → WMY3JAPO.js} +1 -1
  113. package/dist/cdn/{CWW74G2W.js → WNSJ26IM.js} +1 -1
  114. package/dist/cdn/{RI7U6FA5.js → WP3FT4MH.js} +1 -1
  115. package/dist/cdn/{AIUJXRA5.js → WSGJL4QG.js} +1 -1
  116. package/dist/cdn/{WVRDKKBC.js → WWRJFSPK.js} +1 -1
  117. package/dist/cdn/XGF4Z7DL.js +2 -0
  118. package/dist/cdn/{67RAW3TG.js → XTMKQTKS.js} +1 -1
  119. package/dist/cdn/{BDVFJJR4.js → XUQJ6TZ4.js} +1 -1
  120. package/dist/cdn/{RD7MZ7SN.js → XWMICWSU.js} +1 -1
  121. package/dist/cdn/{D4HAXELR.js → XZE3UIAE.js} +1 -1
  122. package/dist/cdn/{5OMXJXRL.js → Y376MZ7V.js} +1 -1
  123. package/dist/cdn/{2ZH3GVSR.js → YGHICFBD.js} +1 -1
  124. package/dist/cdn/{GWLE7PJQ.js → YJCJZHBN.js} +1 -1
  125. package/dist/cdn/{VYOCZUVH.js → YP46NHDO.js} +1 -1
  126. package/dist/cdn/{MQQ2SHRV.js → YSZNDZHZ.js} +1 -1
  127. package/dist/cdn/{P3YHSJCB.js → Z7NC4HTS.js} +1 -1
  128. package/dist/cdn/{5DMFGBJJ.js → ZBXJES7E.js} +1 -1
  129. package/dist/cdn/{5USMP4M7.js → ZZIJOG6A.js} +1 -1
  130. package/dist/cdn/index.js +1 -1
  131. package/dist/chunks/runtime.js +1 -1
  132. package/dist/chunks/solution-builder-assistant.js +2 -2
  133. package/dist/components/create-feature/customElement.js +77 -48
  134. package/dist/components/layer-table/customElement.js +2 -2
  135. package/dist/components/map-card/customElement.js +2 -2
  136. package/dist/components/solutions-deploy-app/customElement.js +3 -3
  137. package/dist/docs/api.json +1 -1
  138. package/dist/docs/docs.json +1 -1
  139. package/dist/docs/web-types.json +1 -1
  140. package/dist/solutions-components_commit.txt +7 -7
  141. package/package.json +9 -7
  142. package/dist/cdn/3TAQSXLA.js +0 -2
  143. package/dist/cdn/4ESJPQUS.js +0 -2
  144. package/dist/cdn/64DMFXX3.js +0 -459
  145. package/dist/cdn/7LP2DUHS.js +0 -2
  146. package/dist/cdn/ACTGIDKO.js +0 -4
  147. package/dist/cdn/BA3J7L5N.js +0 -2
  148. package/dist/cdn/BPHZAC66.js +0 -2
  149. package/dist/cdn/ECJQJ4BY.js +0 -2
  150. package/dist/cdn/F5EJPIW4.js +0 -2
  151. package/dist/cdn/FX2C3BL4.js +0 -2
  152. package/dist/cdn/GEEQWXOZ.js +0 -2
  153. package/dist/cdn/H3QX6XOJ.js +0 -2
  154. package/dist/cdn/JRUIRTL7.js +0 -2
  155. package/dist/cdn/JU2Q5KMI.js +0 -358
  156. package/dist/cdn/NF77ALHM.js +0 -2
  157. package/dist/cdn/OJH4NUGT.js +0 -2
  158. package/dist/cdn/SV2XM7U2.js +0 -2
  159. package/dist/cdn/TTXN5R4E.js +0 -2
  160. package/dist/cdn/VM2LS6TR.js +0 -2
  161. package/dist/cdn/VNWIFVKC.js +0 -2
  162. package/dist/cdn/VWNMKVMJ.js +0 -2
  163. package/dist/cdn/X3YWKGD7.js +0 -2
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./Z4LGN5M5.js";import b from"./CNNBPMQT.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./VW4UJ7IY.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./QPMXVWMP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -1,4 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./EXBEKVP5.js";function Pe(o,i){(i==null||i>o.length)&&(i=o.length);for(var s=0,c=Array(i);s<i;s++)c[s]=o[s];return c}function Dn(o){if(Array.isArray(o))return o}function Ln(o,i){var s=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(s!=null){var c,f,m,R,ct=[],M=!0,ut=!1;try{if(m=(s=s.call(o)).next,i!==0)for(;!(M=(c=m.call(s)).done)&&(ct.push(c.value),ct.length!==i);M=!0);}catch(Lt){ut=!0,f=Lt}finally{try{if(!M&&s.return!=null&&(R=s.return(),Object(R)!==R))return}finally{if(ut)throw f}}return ct}}function wn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cn(o,i){return Dn(o)||Ln(o,i)||Mn(o,i)||wn()}function Mn(o,i){if(o){if(typeof o=="string")return Pe(o,i);var s={}.toString.call(o).slice(8,-1);return s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set"?Array.from(o):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Pe(o,i):void 0}}var Ve=Object.entries,xe=Object.setPrototypeOf,Pn=Object.isFrozen,xn=Object.getPrototypeOf,kn=Object.getOwnPropertyDescriptor,b=Object.freeze,O=Object.seal,lt=Object.create,qe=typeof Reflect<"u"&&Reflect,ne=qe.apply,oe=qe.construct;b||(b=function(i){return i});O||(O=function(i){return i});ne||(ne=function(i,s){for(var c=arguments.length,f=new Array(c>2?c-2:0),m=2;m<c;m++)f[m-2]=arguments[m];return i.apply(s,f)});oe||(oe=function(i){for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f<s;f++)c[f-1]=arguments[f];return new i(...c)});var at=A(Array.prototype.forEach),vn=A(Array.prototype.lastIndexOf),ke=A(Array.prototype.pop),st=A(Array.prototype.push),Un=A(Array.prototype.splice),$=Array.isArray,_t=A(String.prototype.toLowerCase),Zt=A(String.prototype.toString),ve=A(String.prototype.match),Tt=A(String.prototype.replace),Ue=A(String.prototype.indexOf),Fn=A(String.prototype.trim),zn=A(Number.prototype.toString),Hn=A(Boolean.prototype.toString),Fe=typeof BigInt>"u"?null:A(BigInt.prototype.toString),ze=typeof Symbol>"u"?null:A(Symbol.prototype.toString),S=A(Object.prototype.hasOwnProperty),ht=A(Object.prototype.toString),y=A(RegExp.prototype.test),J=Gn(TypeError);function A(o){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f<s;f++)c[f-1]=arguments[f];return ne(o,i,c)}}function Gn(o){return function(){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return oe(o,s)}}function p(o,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_t;if(xe&&xe(o,null),!$(i))return o;let c=i.length;for(;c--;){let f=i[c];if(typeof f=="string"){let m=s(f);m!==f&&(Pn(i)||(i[c]=m),f=m)}o[f]=!0}return o}function Bn(o){for(let i=0;i<o.length;i++)S(o,i)||(o[i]=null);return o}function L(o){let i=lt(null);for(let c of Ve(o)){var s=Cn(c,2);let f=s[0],m=s[1];S(o,f)&&($(m)?i[f]=Bn(m):m&&typeof m=="object"&&m.constructor===Object?i[f]=L(m):i[f]=m)}return i}function Wn(o){switch(typeof o){case"string":return o;case"number":return zn(o);case"boolean":return Hn(o);case"bigint":return Fe?Fe(o):"0";case"symbol":return ze?ze(o):"Symbol()";case"undefined":return ht(o);case"function":case"object":{if(o===null)return ht(o);let i=o,s=H(i,"toString");if(typeof s=="function"){let c=s(i);return typeof c=="string"?c:ht(c)}return ht(o)}default:return ht(o)}}function H(o,i){for(;o!==null;){let c=kn(o,i);if(c){if(c.get)return A(c.get);if(typeof c.value=="function")return A(c.value)}o=xn(o)}function s(){return null}return s}function Yn(o){try{return y(o,""),!0}catch{return!1}}var He=b(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Jt=b(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Qt=b(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),jn=b(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),te=b(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$n=b(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ge=b(["#text"]),Be=b(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=b(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),We=b(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dt=b(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xn=O(/{{[\w\W]*|^[\w\W]*}}/g),Vn=O(/<%[\w\W]*|^[\w\W]*%>/g),qn=O(/\${[\w\W]*/g),Kn=O(/^data-[\-\w.\u00B7-\uFFFF]+$/),Zn=O(/^aria-[\-\w]+$/),Ye=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Jn=O(/^(?:\w+script|data):/i),Qn=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),to=O(/^html$/i),eo=O(/^[a-z][.\w]*(-[.\w]+)+$/i),je=O(/<[/\w!]/g),$e=O(/<[/\w]/g),no=O(/<\/no(script|embed|frames)/i),oo=O(/\/>/i),P={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ro=function(){return typeof window>"u"?null:window},io=function(i,s){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let c=null,f="data-tt-policy-suffix";s&&s.hasAttribute(f)&&(c=s.getAttribute(f));let m="dompurify"+(c?"#"+c:"");try{return i.createPolicy(m,{createHTML(R){return R},createScriptURL(R){return R}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},Xe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},j=function(i,s,c,f){return S(i,s)&&$(i[s])?p(f.base?L(f.base):{},i[s],f.transform):c};function Ke(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ro(),i=r=>Ke(r);if(i.version="3.4.12",i.removed=[],!o||!o.document||o.document.nodeType!==P.document||!o.Element)return i.isSupported=!1,i;let s=o.document,c=s,f=c.currentScript;o.DocumentFragment;let m=o.HTMLTemplateElement,R=o.Node,ct=o.Element,M=o.NodeFilter,ut=o.NamedNodeMap;ut===void 0&&(o.NamedNodeMap||o.MozNamedAttrMap),o.HTMLFormElement;let Lt=o.DOMParser,gt=o.trustedTypes,X=ct.prototype,Ze=H(X,"cloneNode"),wt=H(X,"remove"),Je=H(X,"nextSibling"),Q=H(X,"childNodes"),V=H(X,"parentNode"),re=H(X,"shadowRoot"),Ct=H(X,"attributes"),I=R&&R.prototype?H(R.prototype,"nodeType"):null,v=R&&R.prototype?H(R.prototype,"nodeName"):null;if(typeof m=="function"){let r=s.createElement("template");r.content&&r.content.ownerDocument&&(s=r.content.ownerDocument)}let w,q="",Mt,ie=!1,ft=0,ae=function(){if(ft>0)throw J('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tt=function(t){ae(),ft++;try{return w.createHTML(t)}finally{ft--}},Qe=function(t){ae(),ft++;try{return w.createScriptURL(t)}finally{ft--}},tn=function(){return ie||(Mt=io(gt,f),ie=!0),Mt},Et=s,Pt=Et.implementation,se=Et.createNodeIterator,en=Et.createDocumentFragment,nn=Et.getElementsByTagName,on=c.importNode,T=Xe();i.isSupported=typeof Ve=="function"&&typeof V=="function"&&Pt&&Pt.createHTMLDocument!==void 0;let rn=Xn,an=Vn,sn=qn,ln=Kn,cn=Zn,un=Jn,le=Qn,fn=eo,ce=Ye,h=null,ue=p({},[...He,...Jt,...Qt,...te,...Ge]),_=null,fe=p({},[...Be,...ee,...We,...Dt]),g=Object.seal(lt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pt=null,pe=null,G=Object.seal(lt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),me=!0,xt=!0,de=!1,Te=!0,B=!1,W=!0,K=!1,kt=!1,vt=null,Ut=null,Ft=!1,et=!1,At=!1,yt=!1,he=!0,_e=!1,ge="user-content-",zt=!0,Ht=!1,nt={},U=null,Gt=p({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Ee=null,Ae=p({},["audio","video","img","source","image","track"]),Bt=null,ye=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",bt="http://www.w3.org/2000/svg",F="http://www.w3.org/1999/xhtml",ot=F,Wt=!1,Yt=null,pn=p({},[St,bt,F],Zt),Se=b(["mi","mo","mn","ms","mtext"]),jt=p({},Se),be=b(["annotation-xml"]),$t=p({},be),mn=p({},["title","style","font","a","script"]),mt=null,dn=["application/xhtml+xml","text/html"],Tn="text/html",d=null,rt=null,hn=s.createElement("form"),Oe=function(t){return t instanceof RegExp||t instanceof Function},Xt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rt&&rt===t)return;(!t||typeof t!="object")&&(t={}),t=L(t),mt=dn.indexOf(t.PARSER_MEDIA_TYPE)===-1?Tn:t.PARSER_MEDIA_TYPE,d=mt==="application/xhtml+xml"?Zt:_t,h=j(t,"ALLOWED_TAGS",ue,{transform:d}),_=j(t,"ALLOWED_ATTR",fe,{transform:d}),Yt=j(t,"ALLOWED_NAMESPACES",pn,{transform:Zt}),Bt=j(t,"ADD_URI_SAFE_ATTR",ye,{transform:d,base:ye}),Ee=j(t,"ADD_DATA_URI_TAGS",Ae,{transform:d,base:Ae}),U=j(t,"FORBID_CONTENTS",Gt,{transform:d}),pt=j(t,"FORBID_TAGS",L({}),{transform:d}),pe=j(t,"FORBID_ATTR",L({}),{transform:d}),nt=S(t,"USE_PROFILES")?t.USE_PROFILES&&typeof t.USE_PROFILES=="object"?L(t.USE_PROFILES):t.USE_PROFILES:!1,me=t.ALLOW_ARIA_ATTR!==!1,xt=t.ALLOW_DATA_ATTR!==!1,de=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=t.SAFE_FOR_TEMPLATES||!1,W=t.SAFE_FOR_XML!==!1,K=t.WHOLE_DOCUMENT||!1,et=t.RETURN_DOM||!1,At=t.RETURN_DOM_FRAGMENT||!1,yt=t.RETURN_TRUSTED_TYPE||!1,Ft=t.FORCE_BODY||!1,he=t.SANITIZE_DOM!==!1,_e=t.SANITIZE_NAMED_PROPS||!1,zt=t.KEEP_CONTENT!==!1,Ht=t.IN_PLACE||!1,ce=Yn(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:Ye,ot=typeof t.NAMESPACE=="string"?t.NAMESPACE:F,jt=S(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&typeof t.MATHML_TEXT_INTEGRATION_POINTS=="object"?L(t.MATHML_TEXT_INTEGRATION_POINTS):p({},Se),$t=S(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&typeof t.HTML_INTEGRATION_POINTS=="object"?L(t.HTML_INTEGRATION_POINTS):p({},be);let e=S(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING=="object"?L(t.CUSTOM_ELEMENT_HANDLING):lt(null);if(g=lt(null),S(e,"tagNameCheck")&&Oe(e.tagNameCheck)&&(g.tagNameCheck=e.tagNameCheck),S(e,"attributeNameCheck")&&Oe(e.attributeNameCheck)&&(g.attributeNameCheck=e.attributeNameCheck),S(e,"allowCustomizedBuiltInElements")&&typeof e.allowCustomizedBuiltInElements=="boolean"&&(g.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),O(g),B&&(xt=!1),At&&(et=!0),nt&&(h=p({},Ge),_=lt(null),nt.html===!0&&(p(h,He),p(_,Be)),nt.svg===!0&&(p(h,Jt),p(_,ee),p(_,Dt)),nt.svgFilters===!0&&(p(h,Qt),p(_,ee),p(_,Dt)),nt.mathMl===!0&&(p(h,te),p(_,We),p(_,Dt))),G.tagCheck=null,G.attributeCheck=null,S(t,"ADD_TAGS")&&(typeof t.ADD_TAGS=="function"?G.tagCheck=t.ADD_TAGS:$(t.ADD_TAGS)&&(h===ue&&(h=L(h)),p(h,t.ADD_TAGS,d))),S(t,"ADD_ATTR")&&(typeof t.ADD_ATTR=="function"?G.attributeCheck=t.ADD_ATTR:$(t.ADD_ATTR)&&(_===fe&&(_=L(_)),p(_,t.ADD_ATTR,d))),S(t,"ADD_URI_SAFE_ATTR")&&$(t.ADD_URI_SAFE_ATTR)&&p(Bt,t.ADD_URI_SAFE_ATTR,d),S(t,"FORBID_CONTENTS")&&$(t.FORBID_CONTENTS)&&(U===Gt&&(U=L(U)),p(U,t.FORBID_CONTENTS,d)),S(t,"ADD_FORBID_CONTENTS")&&$(t.ADD_FORBID_CONTENTS)&&(U===Gt&&(U=L(U)),p(U,t.ADD_FORBID_CONTENTS,d)),zt&&(h["#text"]=!0),K&&p(h,["html","head","body"]),h.table&&(p(h,["tbody"]),delete pt.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw J('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw J('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=w;w=t.TRUSTED_TYPES_POLICY;try{q=tt("")}catch(a){throw w=n,a}}else t.TRUSTED_TYPES_POLICY===null?(w=void 0,q=""):(w===void 0&&(w=tn()),w&&typeof q=="string"&&(q=tt("")));b&&b(t),rt=t},Re=p({},[...Jt,...Qt,...jn]),Ne=p({},[...te,...$n]),_n=function(t,e,n){return e.namespaceURI===F?t==="svg":e.namespaceURI===St?t==="svg"&&(n==="annotation-xml"||jt[n]):!!Re[t]},gn=function(t,e,n){return e.namespaceURI===F?t==="math":e.namespaceURI===bt?t==="math"&&$t[n]:!!Ne[t]},En=function(t,e,n){return e.namespaceURI===bt&&!$t[n]||e.namespaceURI===St&&!jt[n]?!1:!Ne[t]&&(mn[t]||!Re[t])},An=function(t){let e=V(t);(!e||!e.tagName)&&(e={namespaceURI:ot,tagName:"template"});let n=_t(t.tagName),a=_t(e.tagName);return Yt[t.namespaceURI]?t.namespaceURI===bt?_n(n,e,a):t.namespaceURI===St?gn(n,e,a):t.namespaceURI===F?En(n,e,a):!!(mt==="application/xhtml+xml"&&Yt[t.namespaceURI]):!1},Y=function(t){st(i.removed,{element:t});try{V(t).removeChild(t)}catch{if(wt(t),!V(t))throw J("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ot=function(t){Vt(t);let e=Q(t);if(e){let a=[];at(e,l=>{st(a,l)}),at(a,l=>{try{wt(l)}catch{}})}let n=Ct(t);if(n)for(let a=n.length-1;a>=0;--a){let l=n[a],u=l&&l.name;if(typeof u=="string")try{t.removeAttribute(u)}catch{}}},Z=function(t,e){try{st(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch{st(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),t==="is")if(et||At)try{Y(e)}catch{}else try{e.setAttribute(t,"")}catch{}},yn=function(t){let e=Ct(t);if(e)for(let n=e.length-1;n>=0;--n){let a=e[n],l=a&&a.name;if(!(typeof l!="string"||_[d(l)]))try{t.removeAttribute(l)}catch{}}},Vt=function(t){let e=[t];for(;e.length>0;){let n=e.pop();(I?I(n):n.nodeType)===P.element&&yn(n);let l=Q(n);if(l)for(let u=l.length-1;u>=0;--u)e.push(l[u])}},Sn=function(t){if(!W)return;let e=[t];for(;e.length>0;){let n=e.pop(),a=I?I(n):n.nodeType;if(a===P.processingInstruction||a===P.comment&&y($e,n.data)){try{wt(n)}catch{}continue}if(a===P.element){let u=n,E=d(v?v(n):n.nodeName);try{u.hasAttribute&&u.hasAttribute("patchsrc")&&u.removeAttribute("patchsrc"),u.hasAttribute&&u.hasAttribute("for")&&E!=="label"&&E!=="output"&&u.removeAttribute("for")}catch{}}let l=Q(n);if(l)for(let u=l.length-1;u>=0;--u)e.push(l[u])}},Ie=function(t){let e=null,n=null;if(Ft)t="<remove></remove>"+t;else{let u=ve(t,/^[\r\n\t ]+/);n=u&&u[0]}mt==="application/xhtml+xml"&&ot===F&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let a=w?tt(t):t;if(ot===F)try{e=new Lt().parseFromString(a,mt)}catch{}if(!e||!e.documentElement){e=Pt.createDocument(ot,"template",null);try{e.documentElement.innerHTML=Wt?q:a}catch{}}let l=e.body||e.documentElement;return t&&n&&l.insertBefore(s.createTextNode(n),l.childNodes[0]||null),ot===F?nn.call(e,K?"html":"body")[0]:K?e.documentElement:l},De=function(t){return se.call(t.ownerDocument||t,t,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT|M.SHOW_PROCESSING_INSTRUCTION|M.SHOW_CDATA_SECTION,null)},Rt=function(t){return t=Tt(t,rn," "),t=Tt(t,an," "),t=Tt(t,sn," "),t},qt=function(t){var e;t.normalize();let n=se.call(t.ownerDocument||t,t,M.SHOW_TEXT|M.SHOW_COMMENT|M.SHOW_CDATA_SECTION|M.SHOW_PROCESSING_INSTRUCTION,null),a=n.nextNode();for(;a;)a.data=Rt(a.data),a=n.nextNode();let l=(e=t.querySelectorAll)===null||e===void 0?void 0:e.call(t,"template");l&&at(l,u=>{it(u.content)&&qt(u.content)})},Nt=function(t){let e=v?v(t):null;return typeof e!="string"||d(e)!=="form"?!1:typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||t.attributes!==Ct(t)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function"||t.nodeType!==I(t)||t.childNodes!==Q(t)},it=function(t){if(!I||typeof t!="object"||t===null)return!1;try{return I(t)===P.documentFragment}catch{return!1}},dt=function(t){if(!I||typeof t!="object"||t===null)return!1;try{return typeof I(t)=="number"}catch{return!1}};function z(r,t,e){r.length!==0&&at(r,n=>{n.call(i,t,e,rt)})}let bn=function(t,e){return!!(W&&t.hasChildNodes()&&!dt(t.firstElementChild)&&y(je,t.textContent)&&y(je,t.innerHTML)||W&&t.namespaceURI===F&&e==="style"&&dt(t.firstElementChild)||t.nodeType===P.processingInstruction||W&&t.nodeType===P.comment&&y($e,t.data))},On=function(t,e){if(!pt[e]&&Ce(e)&&(g.tagNameCheck instanceof RegExp&&y(g.tagNameCheck,e)||g.tagNameCheck instanceof Function&&g.tagNameCheck(e)))return!1;if(zt&&!U[e]){let n=V(t),a=Q(t);if(a&&n){let l=a.length;for(let u=l-1;u>=0;--u){let E=Ht?a[u]:Ze(a[u],!0);n.insertBefore(E,Je(t))}}}return Y(t),!0},Le=function(t,e){if(z(T.beforeSanitizeElements,t,null),t!==e&&V(t)===null)return!0;if(Nt(t))return Y(t),!0;let n=d(v?v(t):t.nodeName);if(z(T.uponSanitizeElement,t,{tagName:n,allowedTags:h}),t!==e&&V(t)===null)return!0;if(bn(t,n))return Y(t),!0;if(pt[n]||!(G.tagCheck instanceof Function&&G.tagCheck(n))&&!h[n]){let l=On(t,n);return l===!1&&z(T.afterSanitizeElements,t,null),l}if((I?I(t):t.nodeType)===P.element&&!An(t)||(n==="noscript"||n==="noembed"||n==="noframes")&&y(no,t.innerHTML))return Y(t),!0;if(B&&t.nodeType===P.text){let l=Rt(t.textContent);t.textContent!==l&&(st(i.removed,{element:t.cloneNode()}),t.textContent=l)}return z(T.afterSanitizeElements,t,null),!1},we=function(t,e,n){if(pe[e]||W&&e==="patchsrc"||W&&e==="for"&&t!=="label"&&t!=="output"||he&&(e==="id"||e==="name")&&(n in s||n in hn))return!1;let a=_[e]||G.attributeCheck instanceof Function&&G.attributeCheck(e,t);if(!(xt&&y(ln,e))){if(!(me&&y(cn,e))){if(a){if(!Bt[e]){if(!y(ce,Tt(n,le,""))){if(!((e==="src"||e==="xlink:href"||e==="href")&&t!=="script"&&Ue(n,"data:")===0&&Ee[t])){if(!(de&&!y(un,Tt(n,le,"")))){if(n)return!1}}}}}else if(!(Ce(t)&&(g.tagNameCheck instanceof RegExp&&y(g.tagNameCheck,t)||g.tagNameCheck instanceof Function&&g.tagNameCheck(t))&&(g.attributeNameCheck instanceof RegExp&&y(g.attributeNameCheck,e)||g.attributeNameCheck instanceof Function&&g.attributeNameCheck(e,t))||e==="is"&&g.allowCustomizedBuiltInElements&&(g.tagNameCheck instanceof RegExp&&y(g.tagNameCheck,n)||g.tagNameCheck instanceof Function&&g.tagNameCheck(n))))return!1}}return!0},Rn=p({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ce=function(t){return!Rn[_t(t)]&&y(fn,t)},Nn=function(t,e,n,a){if(w&&typeof gt=="object"&&typeof gt.getAttributeType=="function"&&!n)switch(gt.getAttributeType(t,e)){case"TrustedHTML":return tt(a);case"TrustedScriptURL":return Qe(a)}return a},In=function(t,e,n,a){try{n?t.setAttributeNS(n,e,a):t.setAttribute(e,a),Nt(t)?Y(t):ke(i.removed)}catch{Z(e,t)}},Me=function(t){z(T.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||Nt(t))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0},a=e.length,l=d(t.nodeName);for(;a--;){let u=e[a],E=u.name,N=u.namespaceURI,x=u.value,C=d(E),k=x,D=E==="value"?k:Fn(k);if(n.attrName=C,n.attrValue=D,n.keepAttr=!0,n.forceKeepAttr=void 0,z(T.uponSanitizeAttribute,t,n),D=n.attrValue,_e&&(C==="id"||C==="name")&&Ue(D,ge)!==0&&(Z(E,t),D=ge+D),W&&y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,D)){Z(E,t);continue}if(C==="attributename"&&ve(D,"href")){Z(E,t);continue}if(!n.forceKeepAttr){if(!n.keepAttr){Z(E,t);continue}if(!Te&&y(oo,D)){Z(E,t);continue}if(B&&(D=Rt(D)),!we(l,C,D)){Z(E,t);continue}D=Nn(l,C,N,D),D!==k&&In(t,E,N,D)}}z(T.afterSanitizeAttributes,t,null)},It=function(t){let e=null,n=De(t);for(z(T.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(z(T.uponSanitizeShadowNode,e,null),Le(e,t),Me(e),it(e.content)&&It(e.content),(I?I(e):e.nodeType)===P.element){let l=re(e);it(l)&&(Kt(l),It(l))}z(T.afterSanitizeShadowDOM,t,null)},Kt=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let n=e.pop();if(n.shadow){It(n.shadow);continue}let a=n.node,u=(I?I(a):a.nodeType)===P.element,E=Q(a);if(E)for(let N=E.length-1;N>=0;--N)e.push({node:E[N],shadow:null});if(u){let N=v?v(a):null;if(typeof N=="string"&&d(N)==="template"){let x=a.content;it(x)&&e.push({node:x,shadow:null})}}if(u){let N=re(a);it(N)&&e.push({node:null,shadow:N},{node:N,shadow:null})}}};return i.sanitize=function(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,n=null,a=null,l=null;if(Wt=!r,Wt&&(r="<!-->"),typeof r!="string"&&!dt(r)&&(r=Wn(r),typeof r!="string"))throw J("dirty is not a string, aborting");if(!i.isSupported)return r;kt?(h=vt,_=Ut):Xt(t),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(h=L(h)),T.uponSanitizeAttribute.length>0&&(_=L(_)),i.removed=[];let u=Ht&&typeof r!="string"&&dt(r);if(u){Sn(r);let C=v?v(r):r.nodeName;if(typeof C=="string"){let k=d(C);if(!h[k]||pt[k])throw Ot(r),J("root node is forbidden and cannot be sanitized in-place")}if(Nt(r))throw Ot(r),J("root node is clobbered and cannot be sanitized in-place");try{Kt(r)}catch(k){throw Ot(r),k}}else if(dt(r))e=Ie("<!---->"),n=e.ownerDocument.importNode(r,!0),n.nodeType===P.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?e=n:e.appendChild(n),Kt(n);else{if(!et&&!B&&!K&&r.indexOf("<")===-1)return w&&yt?tt(r):r;if(e=Ie(r),!e)return et?null:yt?q:""}e&&Ft&&Y(e.firstChild);let E=u?r:e,N=De(E);try{for(;a=N.nextNode();)Le(a,E),Me(a),it(a.content)&&It(a.content)}catch(C){throw u&&(Ot(r),at(i.removed,k=>{k.element&&Vt(k.element)})),C}if(u)return at(i.removed,C=>{C.element&&Vt(C.element)}),B&&qt(r),r;if(et){if(B&&qt(e),At)for(l=en.call(e.ownerDocument);e.firstChild;)l.appendChild(e.firstChild);else l=e;return(_.shadowroot||_.shadowrootmode)&&(l=on.call(c,l,!0)),l}let x=K?e.outerHTML:e.innerHTML;return K&&h["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&y(to,e.ownerDocument.doctype.name)&&(x="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
4
- `+x),B&&(x=Rt(x)),w&&yt?tt(x):x},i.setConfig=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xt(r),kt=!0,vt=h,Ut=_},i.clearConfig=function(){rt=null,kt=!1,vt=null,Ut=null,w=Mt,q=""},i.isValidAttribute=function(r,t,e){rt||Xt({});let n=d(r),a=d(t);return we(n,a,e)},i.addHook=function(r,t){typeof t=="function"&&S(T,r)&&st(T[r],t)},i.removeHook=function(r,t){if(S(T,r)){if(t!==void 0){let e=vn(T[r],t);return e===-1?void 0:Un(T[r],e,1)[0]}return ke(T[r])}},i.removeHooks=function(r){S(T,r)&&(T[r]=[])},i.removeAllHooks=function(){T=Xe()},i}var ao=Ke();export{ao as default};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a}from"./G2OBSHPX.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./VW4UJ7IY.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./QPMXVWMP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export{a as SolutionItemAccordion};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a}from"./6RHFFYNC.js";import"./YUWXPLTE.js";import"./VW4UJ7IY.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./QPMXVWMP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export{a as SolutionDeployingDialog};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./SNRLIWGC.js";import"./MHMM4RFR.js";import"./JNQB7T54.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./VW4UJ7IY.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./QPMXVWMP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{c:o}])=>{return o},a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./WQUZG2NJ.js";import b from"./CNNBPMQT.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./VW4UJ7IY.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./QPMXVWMP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import i from"./IDJHBEJC.js";import{a as L}from"./XGUD7O6G.js";import h from"./CNNBPMQT.js";import e from"./XOPNEAS5.js";import d from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as O}from"./VW4UJ7IY.js";import{b as S}from"./QPMXVWMP.js";import{F as b,G as f,H as x,J as y,h as E,i as c,l as g,q as o,u as F}from"./T3EPRHTT.js";export default $arcgis.t(([V,_,M,v,{c:A},{c:H,d:w,j:I},{n:C},{i:m},{b:$}])=>{var k=E`@layer{:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-surface-1)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-dialog-content-space: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-surface-2)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{color:var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`,T=class extends x{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.enableTableAutosave=!0,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this.pasteEnabled=!1,this.showCopyPasteActions=!1,this.layerIds=[],this._allIds=[],this._configLayerOrderDefined=!1,this._csvExporting=!1,this._fetchingData=!1,this._hideTable=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=O({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._enabledLayerIds=[],this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._deleteEnabled=!1,this._floorExpression="",this._floorField="",this._floorLevel="",this._loaded=!1,this._shareNode=b(),this._toolbar=b(),this._searchExpression="",this._skipEditCheck=!1,this._highlightedKey="",this._highlightGeneration=0,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this._searchNode=b(),this._layerEditsHandles=[],this._pastedFeaturesIds=[],this._shouldSelectCreatedFeatures=!1,this._isAddingListeners=!1,this.columnReorder=o(),this.featureSelectionChange=o(),this.toggleFilter=o(),this.showDelete=o(),this.relatedRecordToggled=o(),this.editMultipleFeatures=o(),this.copyFeatures=o(),this.pasteFeatures=o(),this.featuresAdded=o(),this.initCreateComponent=o(),this.requestLayerSelectionChange=o(),this.beforeFeatureSelectionChange=o(),this.continueEditing=o(),this.createFeatureEditorInitialized=e=>{this._createFeatureEditor=e.detail},this.createFeatureEditorClosed=()=>{this._createFeatureEditor=void 0},this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"createFeatureEditorInitialized",this.createFeatureEditorInitialized),this.listenOn(window,"createFeatureEditorClosed",this.createFeatureEditorClosed),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),this.listenOn(window,"pasteFeatures",this._pasteFeatures),this.listenOn(window,"featuresPasted",this._featuresPasted),L(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,enableTableAutosave:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,pasteEnabled:5,showCopyPasteActions:5,layerIds:0,_allIds:16,_configLayerOrderDefined:16,_csvExporting:16,_fetchingData:16,_hideTable:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=k}static{this.shadowRootOptions=F}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("enableTableAutosave")&&this.hasUpdated&&this._table&&(this._table.autoSaveEnabled=this.enableTableAutosave),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}if(e.has("pasteEnabled")&&this.hasUpdated){let t=this._toolInfos.find(i=>i.icon==="paste-with-attribute");t&&(t.disabled=!this.pasteEnabled)}e.has("layerIds")&&this.hasUpdated&&this._addListenersForLayers()}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._configLayerOrderDefined="configLayerOrder"in(this.mapInfo?.layerOptions||{}),this._enabledLayerIds=C(this.mapInfo?.layerOptions?.layers||[],this.mapInfo?.layerOptions?.configLayerOrder),this._table&&(this._resetColumnTemplates(),this._sortTable(),await this._initToolInfos())}async mapViewWatchHandler(){if(this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView){this._floorExpression="",this._searchExpression="",this._updateShareUrl(),this._mapClickHandle=_.on(()=>this.mapView,"click",t=>{this._creatingFeature||this._mapClicked(t)});let e=this.mapView;(async()=>{try{await e.when(),e.updating&&await _.once(()=>!e.updating)}catch{}this.mapView===e&&(e.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}])})()}}async _layerWatchHandler(){if(this._hideTable=!1,this._fetchingData=!0,!this._layer){this._fetchingData=!1,this._hideTable=!0;return}try{await this._layer.when(),this._floorField=this._layer.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl()}catch(e){console.error(e),this._hideTable=!0}finally{this._fetchingData=!1}}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}isFilterActive(){return this._filterActive}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async setColumnOrder(e){this._setColumnTemplates(e)}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault(),this._skipEditCheck=!1;let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent(),this._editor=void 0}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,h=this.mapView.allLayerViews.toArray(),r;h.some(async n=>n.layer.title===l?.title&&n.layer.type==="feature"?(r=n,this.mapView&&await I([i],r,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref;this._skipEditCheck=!1;let i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._size=0,this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}_pasteFeatures(){this._layer?.isTable||this._zoom()}_featuresPasted(){this._shouldSelectCreatedFeatures=!0}async load(){await this._initToolInfos()}render(){let e=this._fetchingData||this._hideTable?"display-none":"height-full",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",h=this._canShowFullTextSearch();return this._validateActiveActions(),c`<div><calcite-scrim class=${y(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&c`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${h&&c`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${r=>{this._searchTextChanged(r)}} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??g} type=search ${f(this._searchNode)}></calcite-input></div>`||""}<calcite-loader class=${y(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${y(e)} ${f(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:c`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}updated(){this._table&&this.updateRelatedAttachmentColumns()}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(e=!1){let t=[],i=!1;if(this._showOnlySelected)t=this._tempSelectedIds,i=!0;else if(e||await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let s=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let a=this._layer?.createQuery();a.fullText=this._fullTextSearchInfo,s=this._layer?await this._layer.queryObjectIds(a):[],i&&t?.length&&(s=s.filter(l=>t.includes(l))),await this._updateSearchDefinitionExpression(s?.length?s:[-1])}i&&s?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(s.reverse())),this._selectedLayerView&&this._selectedLayerView.updating?await _.once(()=>!this._selectedLayerView.updating):await new Promise(a=>setTimeout(a,800)),this._allIds=await this.queryAllIds(),this.selectedIds=this.selectedIds.filter(a=>this._allIds.indexOf(a)>-1),await this._refresh(!1,!0)}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return c`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??g}><map-layer-picker appearance=transparent .configLayerOrderDefined=${this._configLayerOrderDefined} .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getLayerOption(e){let t;return this.mapInfo?.layerOptions?.layers.some(i=>i.id===e?(t=i,!0):!1),t}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table,s=this._getLayerOption(t?.id||"");return c`<div class="display-flex" slot=${e??g}><field-selection .configExtraFields=${s?.extraFields} .layer=${t} .mapView=${this.mapView} .table=${i} .tableRef=${this.el}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return c`<div class=${"height-51-px width-full display-flex"} slot=${e??g} ${f(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return c`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??g} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading,t.toolTip)),e),[])}_validateEnabledActions(){let e=this._getIds().length,t=["zoom-to-object","pencil","trash","erase","selected-items-filter","copy"];this._toolInfos?.forEach(i=>{i&&t.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?e<2||e>m:e<1,i.toolTip=i.icon==="pencil"?e>m?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected,t.toolTip=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._getIds().length>0,t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable,i=this.featureSelectionMode==="multiple"&&this._layer?.capabilities?.operations.supportsUpdate,s=this._getSelectedIds().length<2||this._getSelectedIds().length>m,a=!this.mapHidden&&!t,l=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),h=this._featuresEmpty(),r=this.featureSelectionMode==="single",n=this.enableCSV;if(this._relatedFeatureTable){let u=await this._queryRelatedFeatures();n=u&&Object.keys(u).length>0}let d=[];l&&d.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1,toolTip:this._translations.filters}),a&&d.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>{this._zoom()},disabled:!e,toolTip:this._translations.zoom}),i&&d.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this._getSelectedIds()),disabled:s,toolTip:this._translations.editMultiple}),this.showCopyPasteActions&&(d.push({active:!1,icon:"copy",indicator:!1,label:this._translations.copy,func:()=>this.copyFeatures.emit({featuresIds:this._getIds(),layerId:this._layer?.id}),disabled:!e,toolTip:this._translations.copy}),d.push({active:!1,icon:"paste-with-attribute",indicator:!1,label:this._translations.paste,func:()=>this.pasteFeatures.emit(),disabled:!this.pasteEnabled,toolTip:this._translations.paste})),this._deleteEnabled&&d.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0,toolTip:this._translations.delete}),d.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>{this.clearSelection()},disabled:!e,toolTip:this._translations.clearSelection}),this._relatedFeatureTable||d.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e,toolTip:this._showOnlySelected?this._translations.showAll:this._translations.showSelected}),!r&&!this._relatedFeatureTable&&d.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:h,toolTip:this._translations.selectAll}),!r&&!this._relatedFeatureTable&&d.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:h,toolTip:this._translations.switchSelected}),d.push({active:!1,icon:"refresh",indicator:!1,func:()=>{this._refresh()},label:this._translations.refresh,disabled:!1,toolTip:this._translations.refresh}),n&&d.push({active:!1,icon:"export",indicator:!1,func:()=>{this._exportToCSV()},label:this._translations.exportCSV,loading:this._csvExporting,disabled:h,toolTip:this._translations.exportCSV}),this._toolInfos=[...d]}async _addListenersForLayers(){if(!this._isAddingListeners){this._isAddingListeners=!0;try{this._layerEditsHandles.forEach(i=>i.remove()),this._layerEditsHandles=[];let e=this.mapView,t=[...new Set(this.layerIds)];if(!e||t.length===0)return;for(let i of t){let s=await w(e,i);if(!s)continue;let a=s.on("edits",async l=>{let h=Array.isArray(l?.addedFeatures)?l.addedFeatures:[],r=Array.isArray(l?.updatedFeatures)?l.updatedFeatures:[];if(h.length===0&&r.length===0)return;let n=h.map(p=>p.objectId).filter(p=>p!=null),d=r.map(p=>p.objectId).filter(p=>p!=null);if(n.length===0&&d.length===0)return;let u=this._layer?.id;if(this._shouldSelectCreatedFeatures){await this._selectFeatures(n,i),i===u&&this.featuresAdded.emit(n);return}else i===u&&n.length>0?(this._searchExpression?(this._clearSelection(),await this._searchFullText(!0)):await this._refresh(!1,!0),this.initCreateComponent.emit()):i===u&&d.length>0&&this._searchExpression&&await this._selectFeatures(d,i)});a&&this._layerEditsHandles.push(a)}}finally{this._isAddingListeners=!1}}}async _selectFeatures(e,t){try{let i=this._layer?.id;if(t===i){this._searchExpression?(await this._searchFullText(!0),this._allIds=await this.queryAllIds()):(await this._refresh(!1,!0),this._clearSelection());let s=[];for(let a of e)this._allIds.includes(a)&&s.push(a);s.length>0?this._table?.highlightIds.addMany(s):await this._refresh()}else this._clearSelection(),this._pastedFeaturesIds=e,this.requestLayerSelectionChange.emit(t);this._shouldSelectCreatedFeatures=!1}catch(i){this._shouldSelectCreatedFeatures=!1,console.error("Failed processing layer edits event",{layerId:t,error:i})}}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,h,r){let n=this._layer===void 0?!0:l;return c`<calcite-action .active=${e} .disabled=${n} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${h} @click=${a} text text-enabled><div class="display-flex"><span class="label-override padding-start-1-4">${s}</span></div></calcite-action>${this._getToolTip("auto",`layer-table-${t}`,r)}`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return c`<div id=${this._getId(e)??g}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${f(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.reverse().join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this.selectedRelatedIds?.length>0&&this._relatedFeatureTable?.layer?.id&&(t.searchParams.set("oid",this.selectedRelatedIds.join(",")),t.searchParams.set("layer",this._relatedFeatureTable?.layer?.id.toString())),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return c`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return c`<calcite-action class="delete-red" .disabled=${a} .id=${`layer-table-${e}`} .label=${t} @click=${i} text text-enabled><calcite-icon aria-hidden=true class="danger-icon-color" .icon=${e} scale=s></calcite-icon><span class="label-override padding-start-1-4 danger-label-color">${t}</span></calcite-action>${this._getToolTip("bottom",`layer-table-${e}`,t)}`}_getIds(){let e=this._relatedFeatureTable??this._table;this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table);let t=e?.highlightIds.map(i=>Number.parseInt(i.toString(),10)).toArray()??[];return Array.from(new Set(t))}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=new V({autoRefreshEnabled:this.enableAutoRefresh,autoSaveEnabled:this.enableTableAutosave,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,relatedRecordsEnabled:!0,attachmentsEnabled:!0,highlightEnabled:!1,multiSortEnabled:!1,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this._table?.viewModel.addHandles(this._table.on("column-reorder",this._handleColumnReorder.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this._table?.viewModel.addHandles(_.watch(()=>this._table.size,i=>{this._size=i})),_?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let a={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(a)}let s=i.layer;if(this._layerEditHandle=s.on("edits",async()=>{await new Promise(a=>setTimeout(a,50)),await this._refresh(!0)}),this._checkEditEnabled(s),i.editingEnabled=this._editEnabled&&this.enableInlineEdit,i.autoSaveEnabled=this.enableTableAutosave,this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let a=i.layer.popupTemplate?.fieldInfos,l=this._getColumnTemplates(i.layer.id,i.layer.fields,a);this._relatedFeatureTable.tableTemplate=new v({columnTemplates:l})}i.highlightIds.on("change",a=>{this._handleRelatedRecordsChange(a)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0,this._layerEditHandle&&this._layerEditHandle.remove();let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}async _handleRelatedRecordsChange(e){await this._handleOnChange(e),this._updateShareUrl()}hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:i}}}=e;return t&&i}async _handleOnChange(e){if(this._highlightGeneration++,!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if((this._editor||this._createFeatureEditor)&&!this._skipEditCheck){if(this._hasPendingEdits()){this.beforeFeatureSelectionChange.emit();let s=!1;try{this._editor?.activeWorkflow&&await this._editor.activeWorkflow.cancel({force:!1}),this._createFeatureEditor?.activeWorkflow&&await this._createFeatureEditor.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){this.continueEditing.emit();let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits,t=this._createFeatureEditor?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._getSelectedIds().length>0?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}_handleColumnReorder(){this.columnReorder.emit()}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature,i=t?Number(t.getObjectId()):NaN;Number.isNaN(i)||(this._temporaryFeatureHandle=this._selectedLayerView?.highlight([i],{name:"temporary"}))}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}async _highlightFeatures(e){let t=this.selectedIds.length>0?`${e??""}|${[...this.selectedIds].sort((s,a)=>Number(s)-Number(a)).join(",")}`:"";if(t!==""&&t===this._highlightedKey&&this._currentFeatureHighlightHandle)return;this._highlightedKey=t;let i=++this._highlightGeneration;if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView){this._selectedLayerView.updating&&await _.once(()=>!this._selectedLayerView?.updating);let s=this._getIds(),a=Number(e);if(i!==this._highlightGeneration||!this._selectedLayerView||s.length===0||!s.includes(a))return;this._currentFeatureHighlightHandle=this._selectedLayerView.highlight([e],{name:"current-selection"});let l=s.filter(h=>h!==a);l.length>0&&(this._defaultFeaturesHandle=this._selectedLayerView.highlight(l,{name:"default"}))}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&(this._currentFeatureHighlightHandle.remove(),this._currentFeatureHighlightHandle=void 0),this._defaultFeaturesHandle&&(this._defaultFeaturesHandle.remove(),this._defaultFeaturesHandle=void 0)}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=new v({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}_setColumnTemplates(e){this._table&&e&&(this._table.tableTemplate=new v({columnTemplates:e}))}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(this._layer),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._table.autoSaveEnabled=this.enableTableAutosave,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await _.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)}),this._table&&this._pastedFeaturesIds.length>0&&await this._applyPastedFeatureHighlights()}catch(e){console.log(e)}}async _applyPastedFeatureHighlights(){let e=[...this._pastedFeaturesIds];await new Promise(t=>{requestAnimationFrame(async()=>{await new Promise(i=>setTimeout(i,300)),this._table?.highlightIds.addMany(e),this._pastedFeaturesIds=[],t()})})}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await A(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){if(e.length>0){try{await this.mapView?.when(),this._layer&&this.mapView&&await this.mapView.whenLayerView(this._layer),await this._whenMapSettled()}catch{}this._table?.highlightIds.addMany(e)}}async _whenMapSettled(e=400,t=8e3){let i=this.mapView;if(!i)return;let s=Date.now()+t,a=0;for(;Date.now()<s;){if(!i.updating&&i.stationary){if(a===0&&(a=Date.now()),Date.now()-a>=e)return}else a=0;await new Promise(l=>setTimeout(l,100))}}_checkEditEnabled(e){this._editEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=_.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),h=this._table?.highlightIds.indexOf(l);h&&h<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.highlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let h=await this._queryRelatedFeatures(),r=[];h&&h[l]?.features&&(h[l].features.forEach(n=>{n.attributes&&r.push(n.attributes[e.objectIdField])}),i=r.length>0?r:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,h)=>{if(!h.hidden){let r=h?.name||h?.fieldName;r&&l.push(r.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await $(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(h=>h.id===l.id)),a=new M({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(e,t){if(t||await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let i=this._getSelectedLayer(this.selectedRelatedIds);if(i&&this.relatedRecordToggled.emit(i),!e){let s=this._getSelectedIds();this.featureSelectionChange.emit(s)}}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _clearSearchText(){if(this._searchNode.value){this._searchNode.value.value="";let e={target:{value:""}};await this._searchTextChanged(e)}}async _zoom(){this._layer&&this.mapView&&await I(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0,await this._clearSearchText();let i=this.mapView&&await w(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await H(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t,i){let s=this._getLayerOption(e),a=this._layer?.attributeTableTemplate?.elements,l=[];a?.length>0&&this.honorMapFieldSettings&&(l=a.map(n=>n.fieldName));let h=s?.fields&&s?.fieldOrder?s.fieldOrder.filter(n=>s?.fields&&s.fields.indexOf(n)>-1):l.length>0?l:void 0,r;return t&&(r=t.reduce((n,d)=>{let u={type:"field",fieldName:d.name,label:this.getFieldLabel(d,i),menuConfig:this._getMenuConfig(d.name)};return s&&s.fields&&s?.fields?.length>0?s.fields.indexOf(d.name)>-1&&n.push(u):l.length>0?l.indexOf(d.name)>-1&&n.push(u):n.push(u),n},[])),r?h?r?.sort(this._sortFields.bind(this,h)):r:[]}updateRelatedAttachmentColumns(){let e=this._getLayerOption(this._layer?.id||""),t=this.hasAttachmentsEnabled(this._layer),i=!0,s="attachments",a=(e?.extraFields||[]).reduce((h,r)=>(r.startsWith("related:")?h.related.push(r.split("related:")[1]):h.extra.push(r),h),{related:[],extra:[]}),l=a.extra.some(h=>h.toLowerCase()===s);a&&(t=l&&t,i=a.related.length>0,this._table?.columns.forEach(h=>{h.fieldName.startsWith("EsriFeatureTableRelationshipColumn")&&(h.hidden=!a.related.some(r=>r.toLowerCase()===(h.effectiveLabel||"").toLowerCase())),h.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")&&(h.hidden=!a.extra.some(r=>r.toLowerCase()===h.effectiveLabel.toLowerCase()))})),this._table.relatedRecordsEnabled=i,this._table.attachmentsEnabled=t}getFieldLabel(e,t){let i=e.alias?e.alias:e.name;return t?.some(s=>s.fieldName===e.name?(i=s.label,!0):!1),i||e.name}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};S("layer-table",T);return T},"widgets/FeatureTable","core/reactiveUtils","rest/support/RelationshipQuery","widgets/FeatureTable/support/TableTemplate",a,d,e,h,i)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a}from"./WVRDKKBC.js";import d from"./Z4LGN5M5.js";import c from"./CNNBPMQT.js";import b from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./VW4UJ7IY.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./QPMXVWMP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([])=>{return a},b,c,d)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./YGVATVII.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./VW4UJ7IY.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./QPMXVWMP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,a])=>{return a},a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./KN2PNGQX.js";import"./BM666UZR.js";import"./RLSY4VUQ.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import"./VW4UJ7IY.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./QPMXVWMP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)