@sensefolks/fastpoll 0.1.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 (107) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +21 -0
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  4. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  5. package/dist/cjs/index-CC5IS5t8.js +1437 -0
  6. package/dist/cjs/index-CC5IS5t8.js.map +1 -0
  7. package/dist/cjs/index-D8TNlmQq.js +201 -0
  8. package/dist/cjs/index-D8TNlmQq.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +11 -0
  10. package/dist/cjs/index.cjs.js.map +1 -0
  11. package/dist/cjs/loader.cjs.js +16 -0
  12. package/dist/cjs/loader.cjs.js.map +1 -0
  13. package/dist/cjs/sf-fastpoll.cjs.entry.js +395 -0
  14. package/dist/cjs/sf-fastpoll.cjs.entry.js.map +1 -0
  15. package/dist/cjs/sf-fastpoll.cjs.js +28 -0
  16. package/dist/cjs/sf-fastpoll.cjs.js.map +1 -0
  17. package/dist/cjs/sf-fastpoll.entry.cjs.js.map +1 -0
  18. package/dist/collection/collection-manifest.json +12 -0
  19. package/dist/collection/components/sf-fastpoll/sf-fastpoll.css +76 -0
  20. package/dist/collection/components/sf-fastpoll/sf-fastpoll.js +454 -0
  21. package/dist/collection/components/sf-fastpoll/sf-fastpoll.js.map +1 -0
  22. package/dist/collection/index.js +11 -0
  23. package/dist/collection/index.js.map +1 -0
  24. package/dist/collection/utils/utils.js +189 -0
  25. package/dist/collection/utils/utils.js.map +1 -0
  26. package/dist/components/index.d.ts +33 -0
  27. package/dist/components/index.js +1427 -0
  28. package/dist/components/index.js.map +1 -0
  29. package/dist/components/sf-fastpoll.d.ts +11 -0
  30. package/dist/components/sf-fastpoll.js +425 -0
  31. package/dist/components/sf-fastpoll.js.map +1 -0
  32. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  33. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  34. package/dist/esm/index-CfdIRf0W.js +193 -0
  35. package/dist/esm/index-CfdIRf0W.js.map +1 -0
  36. package/dist/esm/index-XYfqntZe.js +1428 -0
  37. package/dist/esm/index-XYfqntZe.js.map +1 -0
  38. package/dist/esm/index.js +4 -0
  39. package/dist/esm/index.js.map +1 -0
  40. package/dist/esm/loader.js +14 -0
  41. package/dist/esm/loader.js.map +1 -0
  42. package/dist/esm/polyfills/core-js.js +11 -0
  43. package/dist/esm/polyfills/dom.js +79 -0
  44. package/dist/esm/polyfills/es5-html-element.js +1 -0
  45. package/dist/esm/polyfills/index.js +34 -0
  46. package/dist/esm/polyfills/system.js +6 -0
  47. package/dist/esm/sf-fastpoll.entry.js +393 -0
  48. package/dist/esm/sf-fastpoll.entry.js.map +1 -0
  49. package/dist/esm/sf-fastpoll.js +24 -0
  50. package/dist/esm/sf-fastpoll.js.map +1 -0
  51. package/dist/esm-es5/app-globals-DQuL1Twl.js +2 -0
  52. package/dist/esm-es5/app-globals-DQuL1Twl.js.map +1 -0
  53. package/dist/esm-es5/index-CfdIRf0W.js +2 -0
  54. package/dist/esm-es5/index-CfdIRf0W.js.map +1 -0
  55. package/dist/esm-es5/index-XYfqntZe.js +3 -0
  56. package/dist/esm-es5/index-XYfqntZe.js.map +1 -0
  57. package/dist/esm-es5/index.js +2 -0
  58. package/dist/esm-es5/index.js.map +1 -0
  59. package/dist/esm-es5/loader.js +2 -0
  60. package/dist/esm-es5/loader.js.map +1 -0
  61. package/dist/esm-es5/sf-fastpoll.entry.js +2 -0
  62. package/dist/esm-es5/sf-fastpoll.entry.js.map +1 -0
  63. package/dist/esm-es5/sf-fastpoll.js +2 -0
  64. package/dist/esm-es5/sf-fastpoll.js.map +1 -0
  65. package/dist/index.cjs.js +1 -0
  66. package/dist/index.js +1 -0
  67. package/dist/sf-fastpoll/index.esm.js +2 -0
  68. package/dist/sf-fastpoll/index.esm.js.map +1 -0
  69. package/dist/sf-fastpoll/loader.esm.js.map +1 -0
  70. package/dist/sf-fastpoll/p-1f6dca2a.system.entry.js +2 -0
  71. package/dist/sf-fastpoll/p-1f6dca2a.system.entry.js.map +1 -0
  72. package/dist/sf-fastpoll/p-4648bca3.entry.js +2 -0
  73. package/dist/sf-fastpoll/p-4648bca3.entry.js.map +1 -0
  74. package/dist/sf-fastpoll/p-BbPAtVJG.system.js +2 -0
  75. package/dist/sf-fastpoll/p-BbPAtVJG.system.js.map +1 -0
  76. package/dist/sf-fastpoll/p-C7EMppj8.system.js.map +1 -0
  77. package/dist/sf-fastpoll/p-C9ESvisV.system.js +3 -0
  78. package/dist/sf-fastpoll/p-C9ESvisV.system.js.map +1 -0
  79. package/dist/sf-fastpoll/p-CfdIRf0W.js +2 -0
  80. package/dist/sf-fastpoll/p-CfdIRf0W.js.map +1 -0
  81. package/dist/sf-fastpoll/p-CpmSDeqe.system.js +2 -0
  82. package/dist/sf-fastpoll/p-CpmSDeqe.system.js.map +1 -0
  83. package/dist/sf-fastpoll/p-DQuL1Twl.js +2 -0
  84. package/dist/sf-fastpoll/p-DQuL1Twl.js.map +1 -0
  85. package/dist/sf-fastpoll/p-JC66e5NR.system.js.map +1 -0
  86. package/dist/sf-fastpoll/p-S-cJYJS7.system.js +2 -0
  87. package/dist/sf-fastpoll/p-S-cJYJS7.system.js.map +1 -0
  88. package/dist/sf-fastpoll/p-XYfqntZe.js +3 -0
  89. package/dist/sf-fastpoll/p-XYfqntZe.js.map +1 -0
  90. package/dist/sf-fastpoll/p-zRZYYxiz.system.js +2 -0
  91. package/dist/sf-fastpoll/p-zRZYYxiz.system.js.map +1 -0
  92. package/dist/sf-fastpoll/sf-fastpoll.entry.esm.js.map +1 -0
  93. package/dist/sf-fastpoll/sf-fastpoll.esm.js +2 -0
  94. package/dist/sf-fastpoll/sf-fastpoll.esm.js.map +1 -0
  95. package/dist/sf-fastpoll/sf-fastpoll.js +127 -0
  96. package/dist/types/components/sf-fastpoll/sf-fastpoll.d.ts +77 -0
  97. package/dist/types/components.d.ts +47 -0
  98. package/dist/types/index.d.ts +11 -0
  99. package/dist/types/stencil-public-runtime.d.ts +1709 -0
  100. package/dist/types/utils/utils.d.ts +86 -0
  101. package/loader/cdn.js +2 -0
  102. package/loader/index.cjs.js +2 -0
  103. package/loader/index.d.ts +24 -0
  104. package/loader/index.es2017.js +2 -0
  105. package/loader/index.js +3 -0
  106. package/package.json +86 -0
  107. package/readme.md +239 -0
@@ -0,0 +1,2 @@
1
+ System.register(["./p-S-cJYJS7.system.js"],(function(e){"use strict";return{setters:[function(t){e({formatErrorMessage:t.f,isValidKey:t.i})}],execute:function(){}}}));
2
+ //# sourceMappingURL=p-CpmSDeqe.system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"p-CpmSDeqe.system.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ const o=()=>{};export{o as g};
2
+ //# sourceMappingURL=p-DQuL1Twl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"p-DQuL1Twl.js","sources":["@stencil/core/internal/app-globals"],"sourcesContent":["export const globalScripts = () => {};\nexport const globalStyles = \"\";\n"],"names":[],"mappings":"AAAY,MAAC,aAAa,GAAG,MAAM;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"p-JC66e5NR.system.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":[],"mappings":";;;;;;;;;;;;AAGY,YAAC,oBAAoB,mCAAG,OAAO,GAAG,EAAE,OAAO,KAAK;MAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;MACrD,EAAE,MAAM,aAAa,EAAE;MACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;MAC7D;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ System.register([],(function(r){"use strict";return{execute:function(){r({a:g,b:f,f:i,g:c,i:a,r:v,s:t});var n=500;var e=254;function t(r,e){if(e===void 0){e=n}if(typeof r!=="string"){return""}var t=r.replace(/^\s+|\s+$/g,"");t=t.replace(/\0/g,"");t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;");if(t.length>e){t=t.substring(0,e)}return t}function u(r){if(typeof r!=="string"){return""}var n=r.replace(/^\s+|\s+$/g,"").toLowerCase();n=n.replace(/[\0\x00-\x1F\x7F]/g,"");if(n.length>e){n=n.substring(0,e)}return n}function f(r,n){switch(n){case"email":return u(r);case"number":var e=String(r).replace(/[^0-9.\-]/g,"");return e.substring(0,20);case"dropdown":case"radio":return t(r,100);case"checkbox":return r.split(",").map((function(r){return t(r.replace(/^\s+|\s+$/g,""),100)})).join(", ");default:return t(r)}}function a(r){if(typeof r!=="string"||r.trim().length===0){return false}var n=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return n.test(r.trim())}function i(r){if(typeof r==="string"){return r}if(r instanceof Error){return r.message}return"An unknown error occurred"}function o(r,n){for(var e=0;e<r.length;e++){if(r[e]===n){return true}}return false}function s(r){if(!r){return[]}var n=r.split(",");var e=[];for(var t=0;t<n.length;t++){var u=n[t].replace(/^\s+|\s+$/g,"");if(u){e.push(u)}}return e}function c(r,n){var e=r.inputType||"text";var t=r.placeholder||"Enter your "+r.label.toLowerCase();var u=r.required!==false;return{inputType:e,placeholder:t,required:u,options:r.options||[],defaultValue:r.defaultValue,hasOptions:r.options&&r.options.length>0,selectedValues:s(n),fieldValue:r.value,currentValue:n||""}}function g(r,n){var e=s(r);if(!o(e,n)){e.push(n)}return e.join(", ")}function v(r,n){var e=s(r);var t=[];for(var u=0;u<e.length;u++){if(e[u]!==n){t.push(e[u])}}return t.join(", ")}}}}));
2
+ //# sourceMappingURL=p-S-cJYJS7.system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"p-S-cJYJS7.system.js","sources":["src/utils/utils.ts"],"sourcesContent":["/**\n * Utility functions for sf-fastpoll\n */\n\n/**\n * Maximum allowed length for text inputs\n */\nconst MAX_TEXT_LENGTH = 500;\nconst MAX_EMAIL_LENGTH = 254;\n\n/**\n * Sanitize user input to prevent XSS and limit length\n * @param input The raw user input\n * @param maxLength Maximum allowed length (default: 500)\n * @returns Sanitized string\n */\nexport function sanitizeInput(input: string, maxLength: number = MAX_TEXT_LENGTH): string {\n if (typeof input !== 'string') {\n return '';\n }\n\n // Trim whitespace\n let sanitized = input.replace(/^\\s+|\\s+$/g, '');\n\n // Remove null bytes\n sanitized = sanitized.replace(/\\0/g, '');\n\n // Encode HTML entities to prevent XSS\n sanitized = sanitized.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;').replace(/'/g, '&#x27;');\n\n // Truncate to max length\n if (sanitized.length > maxLength) {\n sanitized = sanitized.substring(0, maxLength);\n }\n\n return sanitized;\n}\n\n/**\n * Sanitize email input with email-specific rules\n * @param email The raw email input\n * @returns Sanitized email string\n */\nexport function sanitizeEmail(email: string): string {\n if (typeof email !== 'string') {\n return '';\n }\n\n // Trim and lowercase\n let sanitized = email.replace(/^\\s+|\\s+$/g, '').toLowerCase();\n\n // Remove null bytes and control characters\n sanitized = sanitized.replace(/[\\0\\x00-\\x1F\\x7F]/g, '');\n\n // Truncate to max email length (RFC 5321)\n if (sanitized.length > MAX_EMAIL_LENGTH) {\n sanitized = sanitized.substring(0, MAX_EMAIL_LENGTH);\n }\n\n return sanitized;\n}\n\n/**\n * Sanitize a value based on field type\n * @param value The raw value\n * @param inputType The type of input field\n * @returns Sanitized value\n */\nexport function sanitizeByType(value: string, inputType: string): string {\n switch (inputType) {\n case 'email':\n return sanitizeEmail(value);\n case 'number':\n // Only allow digits, decimal point, and minus sign\n const numStr = String(value).replace(/[^0-9.\\-]/g, '');\n return numStr.substring(0, 20); // Reasonable max for numbers\n case 'dropdown':\n case 'radio':\n // For select/radio, sanitize but be more permissive (values come from config)\n return sanitizeInput(value, 100);\n case 'checkbox':\n // Checkbox values are comma-separated, sanitize each\n return value\n .split(',')\n .map(v => sanitizeInput(v.replace(/^\\s+|\\s+$/g, ''), 100))\n .join(', ');\n default:\n return sanitizeInput(value);\n }\n}\n\n/**\n * Interface for respondent detail options\n */\ninterface RespondentDetailOption {\n value: string;\n label: string;\n}\n\n/**\n * Interface for respondent detail configuration\n */\ninterface RespondentDetail {\n label: string;\n value: string;\n inputType: string;\n required?: boolean;\n placeholder?: string;\n options?: RespondentDetailOption[];\n defaultValue?: any;\n}\n\n/**\n * Check if a survey key is valid UUID\n * @param key The survey key to validate\n * @returns True if the key is a valid UUID, false otherwise\n */\nexport function isValidKey(key: string | undefined | null): boolean {\n if (typeof key !== 'string' || key.trim().length === 0) {\n return false;\n }\n\n // UUID v4 regex pattern\n const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n return uuidRegex.test(key.trim());\n}\n\n/**\n * Format error messages for display\n * @param error The error object or message\n * @returns A formatted error message string\n */\nexport function formatErrorMessage(error: any): string {\n if (typeof error === 'string') {\n return error;\n }\n\n if (error instanceof Error) {\n return error.message;\n }\n\n return 'An unknown error occurred';\n}\n\n/**\n * Browser-compatible helper to check if array contains a value\n * @param array The array to search\n * @param value The value to find\n * @returns true if value is found in array\n */\nfunction arrayContains(array: string[], value: string): boolean {\n for (let i = 0; i < array.length; i++) {\n if (array[i] === value) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Browser-compatible helper to trim and split comma-separated values\n * @param value The comma-separated string\n * @returns Array of trimmed values\n */\nfunction parseCommaSeparatedValues(value: string): string[] {\n if (!value) {\n return [];\n }\n const parts = value.split(',');\n const result = [];\n for (let i = 0; i < parts.length; i++) {\n const trimmed = parts[i].replace(/^\\s+|\\s+$/g, ''); // Manual trim for IE compatibility\n if (trimmed) {\n result.push(trimmed);\n }\n }\n return result;\n}\n\n/**\n * Get field configuration for rendering\n * @param detail The respondent detail configuration\n * @param value The current value of the field\n * @returns Field configuration object\n */\nexport function getFieldConfig(detail: RespondentDetail, value: string) {\n const inputType = detail.inputType || 'text';\n const placeholder = detail.placeholder || 'Enter your ' + detail.label.toLowerCase();\n const required = detail.required !== false;\n\n return {\n inputType: inputType,\n placeholder: placeholder,\n required: required,\n options: detail.options || [],\n defaultValue: detail.defaultValue,\n hasOptions: detail.options && detail.options.length > 0,\n selectedValues: parseCommaSeparatedValues(value),\n fieldValue: detail.value,\n currentValue: value || '',\n };\n}\n\n/**\n * Browser-compatible helper to add value to comma-separated list\n * @param currentValue The current comma-separated string\n * @param valueToAdd The value to add\n * @returns Updated comma-separated string\n */\nexport function addToCommaSeparatedList(currentValue: string, valueToAdd: string): string {\n const values = parseCommaSeparatedValues(currentValue);\n if (!arrayContains(values, valueToAdd)) {\n values.push(valueToAdd);\n }\n return values.join(', ');\n}\n\n/**\n * Browser-compatible helper to remove value from comma-separated list\n * @param currentValue The current comma-separated string\n * @param valueToRemove The value to remove\n * @returns Updated comma-separated string\n */\nexport function removeFromCommaSeparatedList(currentValue: string, valueToRemove: string): string {\n const values = parseCommaSeparatedValues(currentValue);\n const result = [];\n for (let i = 0; i < values.length; i++) {\n if (values[i] !== valueToRemove) {\n result.push(values[i]);\n }\n }\n return result.join(', ');\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;YAAA;;YAEG;YAEH;;YAEG;YACH,MAAM,eAAe,GAAG,GAAG;YAC3B,MAAM,gBAAgB,GAAG,GAAG;YAE5B;;;;;YAKG;qBACa,aAAa,CAAC,KAAa,EAAE,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C,MAAM,GAAG,CAAC;YACvD,QAAA,cAAc,EAAE,yBAAyB,CAAC,KAAK,CAAC;oBAChD,UAAU,EAAE,MAAM,CAAC,KAAK;oBACxB,YAAY,EAAE,KAAK,IAAI,EAAE;iBAC1B;YACH;YAEA;;;;;YAKG;YACa,SAAA,uBAAuB,CAAC,YAAoB,EAAE,UAAkB,EAAA;YAC9E,IAAA,MAAM,MAAM,GAAG,yBAAyB,CAAC,YAAY,CAAC;gBACtD,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE;YACtC,QAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;;YAEzB,IAAA,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;YAC1B;YAEA;;;;;YAKG;YACa,SAAA,4BAA4B,CAAC,YAAoB,EAAE,aAAqB,EAAA;YACtF,IAAA,MAAM,MAAM,GAAG,yBAAyB,CAAC,YAAY,CAAC;gBACtD,MAAM,MAAM,GAAG,EAAE;YACjB,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,QAAA,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,aAAa,EAAE;wBAC/B,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;;;YAG1B,IAAA,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;YAC1B;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ const e="sf-fastpoll";const t={hydratedSelectorName:"hydrated",lazyLoad:true,updatable:true,watchCallback:false};const n={SURVEY_API_ENDPOINT:"https://api.sensefolks.com/v1/public-surveys/fastPoll",RESPONSE_API_ENDPOINT:"https://api.sensefolks.com/v1/responses"};var r=Object.defineProperty;var i=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:true})};var s=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var l=(e,t)=>{e.__stencil__getHostRef=()=>t;t.t=e};var o=(e,t)=>{const n={i:0,$hostElement$:e,l:t,o:new Map};{n.u=new Promise((e=>n.v=e));e["s-p"]=[];e["s-rc"]=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var f=(e,t)=>t in e;var a=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,n)=>{const r=e.h.replace(/-/g,"_");const i=e.p;if(!i){return void 0}const s=c.get(i);if(s){return s[r]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${""}`).then((e=>{{c.set(i,e)}return e[r]}),(e=>{a(e,t.$hostElement$)}))};var v=new Map;var d="{visibility:hidden}.hydrated{visibility:inherit}";var h="slot-fb{display:contents}slot-fb[hidden]{display:none}";var p=typeof window!=="undefined"?window:{};var m={i:0,m:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var b=e=>Promise.resolve(e);var y=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var w=y?(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)():false;var g=false;var $=[];var S=[];var j=(e,t)=>n=>{e.push(n);if(!g){g=true;if(t&&m.i&4){C(E)}else{m.raf(E)}}};var O=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){a(e)}}e.length=0};var E=()=>{O($);{O(S);if(g=$.length>0){m.raf(E)}}};var C=e=>b().then(e);var k=j(S,true);var N=e=>{e=typeof e;return e==="object"||e==="function"};function P(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var x=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var M={};i(M,{err:()=>U,map:()=>A,ok:()=>R,unwrap:()=>D,unwrapErr:()=>T});var R=e=>({isOk:true,isErr:false,value:e});var U=e=>({isOk:false,isErr:true,value:e});function A(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>R(e)))}else{return R(n)}}if(e.isErr){const t=e.value;return U(t)}throw"should never get here"}var D=e=>{if(e.isOk){return e.value}else{throw e.value}};var T=e=>{if(e.isErr){return e.value}else{throw e.value}};function _(e){return void 0}var I;function W(e){var t;const n=this.attachShadow({mode:"open"});if(I===void 0)I=(t=_())!=null?t:null;if(I){if(w){n.adoptedStyleSheets.push(I)}else{n.adoptedStyleSheets=[...n.adoptedStyleSheets,I]}}}var L=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};var H=e=>{class t extends Array{item(e){return this[e]}}q("children",e);Object.defineProperty(e,"children",{get(){return this.childNodes.filter((e=>e.nodeType===1))}});Object.defineProperty(e,"childElementCount",{get(){return this.children.length}});q("firstChild",e);Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}});q("lastChild",e);Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}});q("childNodes",e);Object.defineProperty(e,"childNodes",{get(){const e=new t;e.push(...L(this.__childNodes));return e}})};var z=["children","nextElementSibling","previousElementSibling"];var V=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function q(e,t){if(!globalThis.Node||!globalThis.Element){return}let n;if(z.includes(e)){n=Object.getOwnPropertyDescriptor(Element.prototype,e)}else if(V.includes(e)){n=Object.getOwnPropertyDescriptor(Node.prototype,e)}if(!n){n=Object.getOwnPropertyDescriptor(t,e)}if(n)Object.defineProperty(t,"__"+e,n)}var F=(e,t="")=>{{return()=>{}}};var Y=(e,t)=>{{return()=>{}}};var G=new WeakMap;var B=(e,t,n)=>{let r=v.get(e);if(y&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}v.set(e,r)};var J=(e,t,n)=>{var r;const i=Q(t);const s=v.get(i);if(!p.document){return i}e=e.nodeType===11?e:p.document;if(s){if(typeof s==="string"){e=e.head||e;let n=G.get(e);let l;if(!n){G.set(e,n=new Set)}if(!n.has(i)){{l=p.document.createElement("style");l.innerHTML=s;const n=(r=m.$)!=null?r:P(p.document);if(n!=null){l.setAttribute("nonce",n)}if(!(t.i&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(y){const t=new CSSStyleSheet;t.replaceSync(s);if(w){e.adoptedStyleSheets.unshift(t)}else{e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(l)}}}else{e.append(l)}}if(t.i&1){e.insertBefore(l,null)}}if(t.i&4){l.innerHTML+=h}if(n){n.add(i)}}}else if(!e.adoptedStyleSheets.includes(s)){if(w){e.adoptedStyleSheets.push(s)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}}return i};var K=e=>{const t=e.l;const n=e.$hostElement$;const r=t.i;const i=F("attachStyles",t.h);const s=J(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=s;n.classList.add(s+"-h")}i()};var Q=(e,t)=>"sc-"+e.h;var X=(e,t,...n)=>{let r=null;let i=null;let s=false;let l=false;const o=[];const f=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){f(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!N(r)){r=String(r)}if(s&&l){o[o.length-1].S+=r}else{o.push(s?Z(null,r):r)}l=s}}};f(n);if(t){if(t.key){i=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const a=Z(e,null);a.j=t;if(o.length>0){a.O=o}{a.C=i}return a};var Z=(e,t)=>{const n={i:0,k:e,S:t,N:null,O:null};{n.j=null}{n.C=null}return n};var ee={};var te=e=>e&&e.k===ee;var ne=e=>{const t=x(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};ne("::slotted");ne(":host");ne(":host-context");var re=(e,t,n)=>{if(e!=null&&!N(e)){if(t&1){return String(e)}return e}return e};var ie=e=>{var t;return(t=s(e))==null?void 0:t.$hostElement$};var se=(e,t,n)=>{const r=m.ce(t,n);e.dispatchEvent(r);return r};var le=(e,t,n,r,i,s,l)=>{if(n===r){return}let o=f(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const i=fe(n);let s=fe(r);{t.remove(...i.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!i.includes(e))))}}else if(t==="key");else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(f(p,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(n||r){const i=t.endsWith(ae);t=t.replace(ce,"");if(n){m.rel(e,t,n,i)}if(r){m.ael(e,t,r,i)}}}else{const l=N(r);if((o||l&&r!==null)&&true){try{if(!e.tagName.includes("-")){const i=r==null?"":r;if(t==="list"){o=false}else if(n==null||e[t]!=i){if(typeof e.__lookupSetter__(t)==="function"){e[t]=i}else{e.setAttribute(t,i)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!o||s&4||i)&&!l&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var oe=/\s/;var fe=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(oe)};var ae="Capture";var ce=new RegExp(ae+"$");var ue=(e,t,n,r)=>{const i=t.N.nodeType===11&&t.N.host?t.N.host:t.N;const s=e&&e.j||{};const l=t.j||{};{for(const e of ve(Object.keys(s))){if(!(e in l)){le(i,e,s[e],void 0,n,t.i)}}}for(const e of ve(Object.keys(l))){le(i,e,s[e],l[e],n,t.i)}};function ve(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var de;var he=false;var pe=(e,t,n)=>{const r=t.O[n];let i=0;let s;let l;if(r.S!==null){s=r.N=p.document.createTextNode(r.S)}else{if(!p.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}s=r.N=p.document.createElement(r.k);{ue(null,r,he)}if(r.O){for(i=0;i<r.O.length;++i){l=pe(e,r,i);if(l){s.appendChild(l)}}}}s["s-hn"]=de;return s};var me=(e,t,n,r,i,s)=>{let l=e;let o;if(l.shadowRoot&&l.tagName===de){l=l.shadowRoot}for(;i<=s;++i){if(r[i]){o=pe(null,n,i);if(o){r[i].N=o;$e(l,o,t)}}}};var be=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.N;if(e){e.remove()}}}};var ye=(e,t,n,r,i=false)=>{let s=0;let l=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let h=r[v];let p;let m;while(s<=a&&l<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=r[++l]}else if(h==null){h=r[--v]}else if(we(c,d,i)){ge(c,d,i);c=t[++s];d=r[++l]}else if(we(u,h,i)){ge(u,h,i);u=t[--a];h=r[--v]}else if(we(c,h,i)){ge(c,h,i);$e(e,c.N,u.N.nextSibling);c=t[++s];h=r[--v]}else if(we(u,d,i)){ge(u,d,i);$e(e,u.N,c.N);u=t[--a];d=r[++l]}else{o=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].C!==null&&t[f].C===d.C){o=f;break}}}if(o>=0){m=t[o];if(m.k!==d.k){p=pe(t&&t[l],n,o)}else{ge(m,d,i);t[o]=void 0;p=m.N}d=r[++l]}else{p=pe(t&&t[l],n,l);d=r[++l]}if(p){{$e(c.N.parentNode,p,c.N)}}}}if(s>a){me(e,r[v+1]==null?null:r[v+1].N,n,r,l,v)}else if(l>v){be(t,s,a)}};var we=(e,t,n=false)=>{if(e.k===t.k){if(!n){return e.C===t.C}if(n&&!e.C&&t.C){e.C=t.C}return true}return false};var ge=(e,n,r=false)=>{const i=n.N=e.N;const s=e.O;const l=n.O;const o=n.S;if(o===null){{ue(e,n,he)}if(s!==null&&l!==null){ye(i,s,n,l,r)}else if(l!==null){if(e.S!==null){i.textContent=""}me(i,null,n,l,0,l.length-1)}else if(!r&&t.updatable&&s!==null){be(s,0,s.length-1)}else;}else if(e.S!==o){i.data=o}};var $e=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var Se=(e,t,n=false)=>{const r=e.$hostElement$;const i=e.P||Z(null,null);const s=te(t);const l=s?t:X(null,null,t);de=r.tagName;if(n&&l.j){for(const e of Object.keys(l.j)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){l.j[e]=r[e]}}}l.k=null;l.i|=4;e.P=l;l.N=i.N=r.shadowRoot||r;ge(i,l,n)};var je=(e,t)=>{if(t&&!e.M&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.M=()=>{t["s-p"].splice(n-1,1);r()})))}};var Oe=(e,t)=>{{e.i|=16}if(e.i&4){e.i|=512;return}je(e,e.R);const n=()=>Ee(e,t);if(t){queueMicrotask((()=>{n()}));return}return k(n)};var Ee=(e,t)=>{const n=e.$hostElement$;const r=F("scheduleUpdate",e.l.h);const i=e.t;if(!i){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){s=Re(i,"componentWillLoad",void 0,n)}else{s=Re(i,"componentWillUpdate",void 0,n)}s=Ce(s,(()=>Re(i,"componentWillRender",void 0,n)));r();return Ce(s,(()=>Ne(e,i,t)))};var Ce=(e,t)=>ke(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var ke=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ne=async(e,t,n)=>{var r;const i=e.$hostElement$;const s=F("update",e.l.h);const l=i["s-rc"];if(n){K(e)}const o=F("render",e.l.h);{Pe(e,t,i,n)}if(l){l.map((e=>e()));i["s-rc"]=void 0}o();s();{const t=(r=i["s-p"])!=null?r:[];const n=()=>xe(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.i|=4;t.length=0}}};var Pe=(e,t,n,r)=>{try{t=t.render();{e.i&=-17}{e.i|=2}{{{Se(e,t,r)}}}}catch(t){a(t,e.$hostElement$)}return null};var xe=e=>{const t=e.l.h;const n=e.$hostElement$;const r=F("postUpdate",t);const i=e.t;const s=e.R;Re(i,"componentDidRender",void 0,n);if(!(e.i&64)){e.i|=64;{Ue(n)}Re(i,"componentDidLoad",void 0,n);r();{e.v(n);if(!s){Me()}}}else{Re(i,"componentDidUpdate",void 0,n);r()}{if(e.M){e.M();e.M=void 0}if(e.i&512){C((()=>Oe(e,false)))}e.i&=-517}};var Me=t=>{C((()=>se(p,"appload",{detail:{namespace:e}})))};var Re=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){a(e,r)}}return void 0};var Ue=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Ae=(e,t)=>s(e).o.get(t);var De=(e,t,n,r)=>{const i=s(e);if(!i){return}if(!i){throw new Error(`Couldn't find host element for "${r.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const l=i.o.get(t);const o=i.i;const f=i.t;n=re(n,r.U[t][0]);const a=Number.isNaN(l)&&Number.isNaN(n);const c=n!==l&&!a;if((!(o&8)||l===void 0)&&c){i.o.set(t,n);if(f){if((o&(2|16))===2){if(f.componentShouldUpdate){if(f.componentShouldUpdate(n,l,t)===false){return}}Oe(i,false)}}}};var Te=(e,n,r)=>{var i,l;const o=e.prototype;if(n.U||t.watchCallback){const f=Object.entries((i=n.U)!=null?i:{});f.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:i,set:l}=Object.getOwnPropertyDescriptor(o,e)||{};if(i)n.U[e][0]|=2048;if(l)n.U[e][0]|=4096;if(r&1||!i){Object.defineProperty(o,e,{get(){{if((n.U[e][0]&2048)===0){return Ae(this,e)}const t=s(this);const r=t?t.t:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(i){const o=s(this);if(!o){return}if(l){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.o.get(e)){i=o.o.get(e)}else if(!o.o.get(e)&&r){o.o.set(e,r)}l.apply(this,[re(i,t)]);i=t&32?this[e]:o.$hostElement$[e];De(this,e,i,n);return}{if((r&1)===0||(n.U[e][0]&4096)===0){De(this,e,i,n);if(r&1&&!o.t){o.u.then((()=>{if(n.U[e][0]&4096&&o.t[e]!==o.o.get(e)){o.t[e]=i}}))}return}const s=()=>{const r=o.t[e];if(!o.o.get(e)&&r){o.o.set(e,r)}o.t[e]=re(i,t);De(this,e,o.t[e],n)};if(o.t){s()}else{o.u.then((()=>s()))}}}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,i,l){m.jmp((()=>{var f;const a=r.get(e);if(this.hasOwnProperty(a)&&t.lazyLoad){l=this[a];delete this[a]}else if(o.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==l){return}else if(a==null){const t=s(this);const r=t==null?void 0:t.i;if(t&&r&&!(r&8)&&r&128&&l!==i){const r=t.t;const s=(f=n.A)==null?void 0:f[e];s==null?void 0:s.forEach((t=>{if(r[t]!=null){r[t].call(r,l,i,e)}}))}return}const c=Object.getOwnPropertyDescriptor(o,a);l=l===null&&typeof this[a]==="boolean"?false:l;if(l!==this[a]&&(!c.get||!!c.set)){this[a]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=n.A)!=null?l:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var _e=async(e,t,n,r)=>{let i;if((t.i&32)===0){t.i|=32;const r=n.p;if(r){const r=u(n,t);if(r&&"then"in r){const e=Y();i=await r;e()}else{i=r}if(!i){throw new Error(`Constructor for "${n.h}#${t.D}" was not found`)}if(!i.isProxied){Te(i,n,2);i.isProxied=true}const s=F("createInstance",n.h);{t.i|=8}try{new i(t)}catch(t){a(t,e)}{t.i&=-9}s();Ie(t.t,e)}else{i=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.i|=128))}if(i&&i.style){let e;if(typeof i.style==="string"){e=i.style}const t=Q(n);if(!v.has(t)){const r=F("registerStyles",n.h);B(t,e,!!(n.i&1));r()}}}const s=t.R;const l=()=>Oe(t,true);if(s&&s["s-rc"]){s["s-rc"].push(l)}else{l()}};var Ie=(e,t)=>{{Re(e,"connectedCallback",void 0,t)}};var We=e=>{if((m.i&1)===0){const t=s(e);if(!t){return}const n=t.l;const r=F("connectedCallback",n.h);if(!(t.i&1)){t.i|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){je(t,t.R=n);break}}}if(n.U){Object.entries(n.U).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{_e(e,t,n)}}else{if(t==null?void 0:t.t){Ie(t.t,e)}else if(t==null?void 0:t.u){t.u.then((()=>Ie(t.t,e)))}}r()}};var Le=(e,t)=>{{Re(e,"disconnectedCallback",void 0,t||e)}};var He=async e=>{if((m.i&1)===0){const t=s(e);if(t==null?void 0:t.t){Le(t.t,e)}else if(t==null?void 0:t.u){t.u.then((()=>Le(t.t,e)))}}if(G.has(e)){G.delete(e)}if(e.shadowRoot&&G.has(e.shadowRoot)){G.delete(e.shadowRoot)}};var ze=(e,t={})=>{var n;if(!p.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=F();const i=[];const l=t.exclude||[];const f=p.customElements;const a=p.document.head;const c=a.querySelector("meta[charset]");const u=p.document.createElement("style");const v=[];let b;let y=true;Object.assign(m,t);m.m=new URL(t.resourcesUrl||"./",p.document.baseURI).href;let w=false;e.map((e=>{e[1].map((t=>{const n={i:t[0],h:t[1],U:t[2],T:t[3]};if(n.i&4){w=true}{n.U=t[2]}const r=n.h;const a=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,n);if(n.i&1){{if(!e.shadowRoot){W.call(e,n)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.h}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=s(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(b){clearTimeout(b);b=null}if(y){v.push(this)}else{m.jmp((()=>We(this)))}}disconnectedCallback(){m.jmp((()=>He(this)));m.raf((()=>{var e;const t=s(this);if(!t){return}const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.P)==null?void 0:e.N)instanceof Node&&!t.P.N.isConnected){delete t.P.N}}))}componentOnReady(){var e;return(e=s(this))==null?void 0:e.u}};{{H(a.prototype)}}n.p=e[0];if(!l.includes(r)&&!f.get(r)){i.push(r);f.define(r,Te(a,n,1))}}))}));if(i.length>0){if(w){u.textContent+=h}{u.textContent+=i.sort()+d}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=m.$)!=null?n:P(p.document);if(e!=null){u.setAttribute("nonce",e)}a.insertBefore(u,c?c.nextSibling:a.firstChild)}}y=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{m.jmp((()=>b=setTimeout(Me,30)))}}r()};var Ve=e=>m.$=e;export{n as E,ee as H,ze as b,ie as g,X as h,b as p,l as r,Ve as s};
3
+ //# sourceMappingURL=p-XYfqntZe.js.map