ku4web-components 6.7.15 → 6.7.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. package/angular/index.js +1 -1
  2. package/angular/index.mjs +1 -1
  3. package/dist/cjs/{index-6c555187.js → index-2b30e3d6.js} +1 -1
  4. package/dist/cjs/{index-3f6b12f6.js → index-ac83f10f.js} +1 -1
  5. package/dist/cjs/{index-69919a4f.js → index-dbadf919.js} +1 -1
  6. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +2 -2
  7. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  8. package/dist/cjs/ku4-carousel.cjs.entry.js +3 -3
  9. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  10. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  11. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  12. package/dist/cjs/ku4-focus-trap.cjs.entry.js +3 -3
  13. package/dist/cjs/ku4-form.cjs.entry.js +17 -13
  14. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  15. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  16. package/dist/cjs/ku4-mask.cjs.entry.js +2 -2
  17. package/dist/cjs/ku4-modal.cjs.entry.js +3 -3
  18. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  19. package/dist/cjs/ku4-preview.cjs.entry.js +5 -5
  20. package/dist/cjs/ku4-tab-list.cjs.entry.js +4 -4
  21. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  22. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  23. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  24. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  25. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  26. package/dist/cjs/ku4web-components.cjs.js +3 -3
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{shadow-css-bd1b81c3.js → shadow-css-bf3843d2.js} +1 -1
  29. package/dist/cjs/{uid-682bb993.js → uid-fc57e900.js} +1 -1
  30. package/dist/esm/{index-adc31e97.js → index-607d2abb.js} +1 -1
  31. package/dist/esm/{index-b9d8468a.js → index-87a580e3.js} +1 -1
  32. package/dist/esm/{index-957d146b.js → index-fd7b1964.js} +1 -1
  33. package/dist/esm/ku4-carousel-controls.entry.js +2 -2
  34. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  35. package/dist/esm/ku4-carousel.entry.js +3 -3
  36. package/dist/esm/ku4-col.entry.js +1 -1
  37. package/dist/esm/ku4-drawer.entry.js +1 -1
  38. package/dist/esm/ku4-feature.entry.js +2 -2
  39. package/dist/esm/ku4-focus-trap.entry.js +3 -3
  40. package/dist/esm/ku4-form.entry.js +17 -13
  41. package/dist/esm/ku4-grid.entry.js +1 -1
  42. package/dist/esm/ku4-label.entry.js +2 -2
  43. package/dist/esm/ku4-mask.entry.js +2 -2
  44. package/dist/esm/ku4-modal.entry.js +3 -3
  45. package/dist/esm/ku4-panel.entry.js +1 -1
  46. package/dist/esm/ku4-preview.entry.js +5 -5
  47. package/dist/esm/ku4-tab-list.entry.js +4 -4
  48. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  49. package/dist/esm/ku4-tab.entry.js +3 -3
  50. package/dist/esm/ku4-table.entry.js +1 -1
  51. package/dist/esm/ku4-tooltip.entry.js +2 -2
  52. package/dist/esm/ku4-validation.entry.js +2 -2
  53. package/dist/esm/ku4web-components.js +3 -3
  54. package/dist/esm/loader.js +3 -3
  55. package/dist/esm/{shadow-css-ad447c78.js → shadow-css-ed4599f8.js} +1 -1
  56. package/dist/esm/{uid-a87782ca.js → uid-7ad94b61.js} +1 -1
  57. package/dist/esm-es5/{index-adc31e97.js → index-607d2abb.js} +1 -1
  58. package/dist/esm-es5/{index-b9d8468a.js → index-87a580e3.js} +1 -1
  59. package/dist/esm-es5/{index-957d146b.js → index-fd7b1964.js} +1 -1
  60. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  61. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  62. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  63. package/dist/esm-es5/ku4-col.entry.js +1 -1
  64. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  65. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  66. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  67. package/dist/esm-es5/ku4-form.entry.js +1 -1
  68. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  69. package/dist/esm-es5/ku4-label.entry.js +1 -1
  70. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  71. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  72. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  73. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  74. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  75. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  76. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  77. package/dist/esm-es5/ku4-table.entry.js +1 -1
  78. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  79. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  80. package/dist/esm-es5/ku4web-components.js +1 -1
  81. package/dist/esm-es5/loader.js +1 -1
  82. package/dist/esm-es5/{shadow-css-ad447c78.js → shadow-css-ed4599f8.js} +0 -0
  83. package/dist/esm-es5/uid-7ad94b61.js +1 -0
  84. package/dist/ku4web-components/ku4web-components.esm.js +1 -1
  85. package/dist/ku4web-components/ku4web-components.js +1 -1
  86. package/dist/ku4web-components/{p-9cbcda7a.entry.js → p-00796b28.entry.js} +1 -1
  87. package/dist/ku4web-components/{p-79d3dbaa.entry.js → p-05663408.entry.js} +1 -1
  88. package/dist/ku4web-components/{p-84988564.system.entry.js → p-08db8a51.system.entry.js} +1 -1
  89. package/dist/ku4web-components/{p-1da96628.entry.js → p-12840da6.entry.js} +1 -1
  90. package/dist/ku4web-components/p-15ddc753.system.js +1 -0
  91. package/dist/ku4web-components/{p-bd45bbef.entry.js → p-18385bcd.entry.js} +1 -1
  92. package/dist/ku4web-components/{p-8b438fd6.system.entry.js → p-19280d05.system.entry.js} +1 -1
  93. package/dist/ku4web-components/{p-a0ad128b.entry.js → p-192cc7ec.entry.js} +1 -1
  94. package/dist/ku4web-components/{p-558f5446.js → p-1e3ad132.js} +2 -2
  95. package/dist/ku4web-components/{p-28c15c46.system.entry.js → p-1e7500fe.system.entry.js} +1 -1
  96. package/dist/ku4web-components/{p-e71a70df.system.entry.js → p-20b0c3af.system.entry.js} +1 -1
  97. package/dist/ku4web-components/{p-26508a58.entry.js → p-24502002.entry.js} +1 -1
  98. package/dist/ku4web-components/{p-3bad27c8.entry.js → p-276e6c07.entry.js} +1 -1
  99. package/dist/ku4web-components/{p-b499e6cb.entry.js → p-27a18858.entry.js} +1 -1
  100. package/dist/ku4web-components/{p-e90671f2.entry.js → p-294cf7e0.entry.js} +1 -1
  101. package/dist/ku4web-components/p-2f695f98.system.js +1 -0
  102. package/dist/ku4web-components/{p-c44e4eb9.system.entry.js → p-30f5a209.system.entry.js} +1 -1
  103. package/dist/ku4web-components/{p-d93c4d57.entry.js → p-337e2775.entry.js} +1 -1
  104. package/dist/ku4web-components/p-394bc6b6.entry.js +1 -0
  105. package/dist/ku4web-components/{p-bb53b540.entry.js → p-44016f81.entry.js} +1 -1
  106. package/dist/ku4web-components/{p-74c39b70.system.entry.js → p-4a182db9.system.entry.js} +1 -1
  107. package/dist/ku4web-components/{p-feee514a.entry.js → p-4f5877f6.entry.js} +1 -1
  108. package/dist/ku4web-components/{p-e9482cb1.system.js → p-5759a316.system.js} +1 -1
  109. package/dist/ku4web-components/{p-f1f3f822.entry.js → p-578d319b.entry.js} +1 -1
  110. package/dist/ku4web-components/{p-3473e882.system.entry.js → p-59a00f71.system.entry.js} +1 -1
  111. package/dist/ku4web-components/{p-99c77683.entry.js → p-6052f997.entry.js} +1 -1
  112. package/dist/ku4web-components/{p-344201be.system.entry.js → p-79a6dd0a.system.entry.js} +1 -1
  113. package/dist/ku4web-components/{p-7cc436d6.js → p-8364475f.js} +0 -0
  114. package/dist/ku4web-components/{p-64c18ab1.system.entry.js → p-888dc65b.system.entry.js} +1 -1
  115. package/dist/ku4web-components/{p-5c87e225.system.entry.js → p-899da567.system.entry.js} +1 -1
  116. package/dist/ku4web-components/{p-13865812.system.entry.js → p-8c808d2d.system.entry.js} +1 -1
  117. package/dist/ku4web-components/p-9396fca3.js +1 -0
  118. package/dist/ku4web-components/{p-8b256643.entry.js → p-95b5d9c1.entry.js} +1 -1
  119. package/dist/ku4web-components/{p-54fb5b7d.js → p-9f6d3640.js} +1 -1
  120. package/dist/ku4web-components/{p-591a5737.system.entry.js → p-a6bf9aa9.system.entry.js} +1 -1
  121. package/dist/ku4web-components/{p-75de4fe4.system.entry.js → p-aafc7a3f.system.entry.js} +1 -1
  122. package/dist/ku4web-components/{p-5d8e9dd5.js → p-ae9a5549.js} +1 -1
  123. package/dist/ku4web-components/{p-9f08f419.system.entry.js → p-b039a9c0.system.entry.js} +1 -1
  124. package/dist/ku4web-components/{p-282548d9.system.entry.js → p-b29dfde1.system.entry.js} +1 -1
  125. package/dist/ku4web-components/{p-30e86d58.entry.js → p-c3bfb723.entry.js} +1 -1
  126. package/dist/ku4web-components/{p-bd17f58b.system.entry.js → p-c651de1a.system.entry.js} +1 -1
  127. package/dist/ku4web-components/{p-e51ab6b5.system.entry.js → p-c93e2e58.system.entry.js} +1 -1
  128. package/dist/ku4web-components/{p-cd7c2c74.system.entry.js → p-d06458e5.system.entry.js} +1 -1
  129. package/dist/ku4web-components/{p-0772733b.entry.js → p-d4e53284.entry.js} +1 -1
  130. package/dist/ku4web-components/{p-c7ab12de.system.js → p-d7289b1a.system.js} +1 -1
  131. package/dist/ku4web-components/{p-556e08d2.system.js → p-d808aef5.system.js} +1 -1
  132. package/dist/ku4web-components/{p-212c12d9.system.entry.js → p-e5ef511a.system.entry.js} +1 -1
  133. package/dist/ku4web-components/{p-7a4d0d37.system.js → p-f39f347c.system.js} +0 -0
  134. package/dist/ku4web-components/{p-6216bc96.entry.js → p-f4b0fbee.entry.js} +1 -1
  135. package/dist/ku4web-components/{p-3c369c52.system.entry.js → p-fc58b7ce.system.entry.js} +1 -1
  136. package/dist/ku4web-components/{p-d25074c1.entry.js → p-ff1f9fba.entry.js} +1 -1
  137. package/dist/types/components/ku4-form/ku4-form.d.ts +3 -1
  138. package/dist/types/components/ku4-preview/ku4-preview.d.ts +1 -1
  139. package/dist/types/components.d.ts +5 -3
  140. package/mask/index.js +1 -1
  141. package/mask/index.mjs +1 -1
  142. package/package.json +40 -40
  143. package/react/index.js +1 -1
  144. package/react/index.mjs +1 -1
  145. package/vue/index.js +1 -1
  146. package/vue/index.mjs +1 -1
  147. package/vue3/index.js +1 -1
  148. package/vue3/index.mjs +1 -1
  149. package/dist/esm-es5/uid-a87782ca.js +0 -1
  150. package/dist/ku4web-components/p-6481a064.system.js +0 -1
  151. package/dist/ku4web-components/p-69f12fa1.entry.js +0 -1
  152. package/dist/ku4web-components/p-8091c9a5.js +0 -1
  153. package/dist/ku4web-components/p-ad57c6a3.system.js +0 -1
@@ -1 +1 @@
1
- class t{static isNull(t){return null===t}static isEmpty(r){return t.isString(r)&&""===r||t.isArray(r)&&r.length<1||t.isObjectLiteral(r)&&Object.keys(r).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(r){return!(t.isUndefined(r)||t.isNull(r))}static isNullOrEmpty(r){return!t.exists(r)||t.isEmpty(r)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(r){return t.isBool(r)&&!0===r}static isFalse(r){return t.isBool(r)&&!1===r}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(r){try{return"AsyncFunction"===Object.getPrototypeOf(r).constructor.name||t.isFunction(r)&&/^async/.test(r.toString())||t.isFunction(r().then)}catch(t){return!1}}static isPromise(t){return t instanceof Promise}static isObject(r){return t.exists(r)&&"object"==typeof r&&!(t.isBool(r)||t.isNumber(r)||t.isDate(r)||t.isArray(r)||t.isString(r)||t.isFunction(r))}static isObjectLiteral(r){return t.isObject(r)&&r.constructor==={}.constructor}static isTruthy(r){return!t.isFalsy(r)}static isFalsy(r){return t.isZero(r)||t.isFalse(r)||t.isNullOrEmpty(r)||isNaN(r)}}function r(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/^[\s\n]*/,""):r}function n(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/[\s\n]*$/,""):r}var e=Object.freeze({__proto__:null,build:function(...t){return"".concat(...t)},chunk:function(r,n=0){if(!t.isString(r)||Number.isNaN(n)||n<0)return[];if(n<r.length){let t=0;const e=n||r.length,i=[];for(;t<r.length;)i.push(r.slice(t,t+e)),t+=e;return i}return[r]},format:function(t,...r){return r.reduce(((t,r,n)=>t.replace(new RegExp(`\\{${n}\\}`,"g"),r&&r.toString?r.toString():r)),t)},trim:function(t){return r(n(t))},trimStart:r,trimEnd:n,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(r,n,e="_"){const i=r.toString().split(""),s=new RegExp(e);return t.isFunction(n)?n(r):t.isString(n)&&n.split("").reduce(((t,e)=>i.length>0&&(s.test(e)||i[0]===e&&r.indexOf(i[0])===n.indexOf(e))?t+i.shift():t+e),"")},unmask:function(r,n,e="_"){const i=new RegExp(e);return t.isFunction(n)?n(r):t.isString(n)&&r.split("").reduce(((t,r,e)=>i.test(r)||!i.test(n.charAt(e))&&n.charAt(e)===r?t:t+r),"")}}),i=t=>t.reduce(((t,r)=>(t.includes(r)||t.push(r),t)),[]);class s{_list;_head;constructor(t){this._list=t,this._head=0}get isEmpty(){return this.length<1}get index(){return this._head}get length(){return this._list.length}get current(){return this._list[this._head]}get next(){const{length:t}=this;let r=this._head;return this._head=r++<t-1?r:0,this.current}get prev(){const{length:t}=this;let r=this._head;return this._head=--r<0?t-1:r,this.current}get peekNext(){const{length:t}=this,r=this._head;return this._list[r+1<t?r+1:0]}get peekPrev(){const{length:t}=this,r=this._head;return this._list[r-1<0?t-1:r-1]}}function u(t,r){try{return t()}catch{return r}}function a(t,r=0){const n=Math.pow(10,-r);return Math.round(parseFloat((t*n).toFixed(Math.abs(r))))/n}function h(t,r=0){return a(t+5*Math.pow(10,r-1),r)}function c(t,r=0){return 0===t?0:a(t-5*Math.pow(10,r-1),r)}function o(t){const r=(t,n=0,e=1)=>0<t?r(--t,e,n+e):n;return r(t)}function l(t){let r=0,n=1,e=0;for(;t>1;)e=r,r=n,n+=e,t--;return t<1?r:n}u.async=async(t,r)=>{try{return await t()}catch{return r}},Object.freeze({__proto__:null,random:function(t=0,r=1){return Math.random()*(r-t)+t},round:a,roundUp:h,roundDown:c,roundTowardZero:function(t,r=0){return t<0?h(t,r):c(t,r)},gcd:function t(r,n){return 0===n?Math.abs(r):t(n,r%n)},fib:o,fib2:l,fibArray:function(t){return Array(t).fill(0).map((()=>o(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>l(--t))).reverse()},tryParseInt:function(t,r=0){const n=parseInt(t);return Number.isNaN(n)?r:n},tryParseFloat:function(t,r=0){const n=parseFloat(t);return Number.isNaN(n)?r:n}});class f{constructor(r=0,n=0){if(!t.isNumber(r)||!t.isNumber(n))throw new Error("Coord requires numeric x and y values");this._x=r,this._y=n}get x(){return this._x}get y(){return this._y}get value(){return{x:this.x,y:this.y}}get half(){return this.divide(new f(2,2))}get abs(){return new f(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new f(this.x+t.x,this.y+t.y)}subtract(t){return new f(this.x-t.x,this.y-t.y)}multiply(t){return new f(this.x*t.x,this.y*t.y)}divide(t){return new f(this.x/t.x,this.y/t.y)}round(t=0){return new f(a(this.x,t),a(this.y,t))}toString(){return`(${this.x},${this.y})`}static canParse(r){return t.isArray(r)?!(Number.isNaN(r[0])||Number.isNaN(r[1])):t.isObjectLiteral(r)&&"x"in r&&"y"in r?!(Number.isNaN(r.x)||Number.isNaN(r.y)):r instanceof f}static parse(r){return t.exists(r)?r instanceof f?r:t.isArray(r)?new f(r[0],r[1]):t.isObjectLiteral(r)&&t.exists(r.x)&&t.exists(r.y)?new f(r.x,r.y):null:null}static tryParse(t){return u((()=>f.parse(t)),null)}}class d extends f{constructor(t=0,r=0){super(t,r),this._lengthSquared=Math.pow(t,2)+Math.pow(r,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===r?0:t/this._magnitude,this._unitNormalY=0===t&&0===r?0:r/this._magnitude}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new d(this._unitNormalX,this._unitNormalY)}get invert(){return new d(-this.x,-this.y)}get norm(){return new d(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new d(-this.y,this.x)}equals(t){return t instanceof d&&this.x===t.x&&this.y===t.y}add(t){return t instanceof d?new d(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof d?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof d))return null;const r=t.add(this.projectionOfOnto(t).invert);return new d(r.x,r.y)}projectionOfOnto(t){if(!(t instanceof d))return null;const r=t.normal.scale(this.dot(t.normal));return new d(r.x,r.y)}scale(t){return new d(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof d?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof d))return null;if(t.isZero)return this;const r=t.normal;return this.add(r.scale(2*r.dot(this)).invert)}round(t=0){return new d(a(this.x,t),a(this.y,t))}}class m extends f{constructor(t,r){super(t,r)}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new d(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof m||f.canParse(t)}static parse(t){if(t instanceof m)return t;const r=f.parse(t);return new m(r.x,r.y)}static tryParse(t){return u((()=>m.parse(t)),null)}}class p{constructor(t=0,r=0,n=0,e=0){this.origin=new m(t,r),this.dimensions=new f(n,e),this.diagonal=m.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half}contains(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)}aspectToFit(t){const r=this.dimensions,n=t.dimensions,e=n.x,i=n.y;let s=r.x,u=r.y;return s>u&&0!==s?(u*=e/s,s=e,u>i&&(u=i,s*=u/r.y)):u>i&&(s*=i/u,u=i),new p(this.origin.x,this.origin.y,s,u)}}var g=(t,r,n=!1)=>{let e;return(...i)=>{const s=n&&!e;clearTimeout(e),e=setTimeout((()=>{e=null,n||t(...i)}),r),s&&t(...i)}};class w{_milliseconds;_intervalId;_didInterval;constructor(t){this._milliseconds=t}get isRunning(){return t.exists(this._intervalId)}onInterval(t){return this.clear(),this._didInterval=t,this}start(){return this.clear(),this._intervalId=setInterval((()=>{this._didInterval()}),this._milliseconds),this}clear(){return clearInterval(this._intervalId),this._intervalId=null,this}}class y{_milliseconds;_timeoutId;_didTimeout;constructor(t){this._milliseconds=t}get isRunning(){return t.exists(this._timeoutId)}onTimeout(t){return this.clear(),this._didTimeout=t,this}start(){return this.clear(),this._timeoutId=setTimeout((()=>{this._didTimeout()}),this._milliseconds),this}clear(){return clearTimeout(this._timeoutId),this._timeoutId=null,this}}var _=t=>new Promise((r=>setTimeout(r,t)));function b(t){const r=isNaN(parseInt(t))||t<0||t>24?24:t,n=Math.random().toString().substring(2),e=Math.random().toString().substring(2);return n.concat(e).substring(0,r)}function A(){return function t(r){return r?(r^16*Math.random()>>r/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var N=Object.freeze({__proto__:null,uid:b,uuid:A,suid:function(){return Symbol(b())},suuid:function(){return Symbol(A())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/_:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?_]+=[^=?_]*(&[^=?_]+=[^=?_]*)*(_.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});export{y as C,w as L,p as M,N as R,_ as Y,e as a,s as c,u as h,g as j,i as o,t}
1
+ class t{static isNull(t){return null===t}static isEmpty(r){return t.isString(r)&&""===r||t.isArray(r)&&r.length<1||t.isObjectLiteral(r)&&Object.keys(r).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(r){return!(t.isUndefined(r)||t.isNull(r))}static isNullOrEmpty(r){return!t.exists(r)||t.isEmpty(r)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(r){return t.isBool(r)&&!0===r}static isFalse(r){return t.isBool(r)&&!1===r}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(r){try{return"AsyncFunction"===Object.getPrototypeOf(r).constructor.name||t.isFunction(r)&&/^async/.test(r.toString())||t.isFunction(r().then)}catch(t){return!1}}static isPromise(t){return t instanceof Promise}static isObject(r){return t.exists(r)&&"object"==typeof r&&!(t.isBool(r)||t.isNumber(r)||t.isDate(r)||t.isArray(r)||t.isString(r)||t.isFunction(r))}static isObjectLiteral(r){return t.isObject(r)&&r.constructor==={}.constructor}static isTruthy(r){return!t.isFalsy(r)}static isFalsy(r){return t.isZero(r)||t.isFalse(r)||t.isNullOrEmpty(r)||isNaN(r)}}function r(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/^[\s\n]*/,""):r}function n(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/[\s\n]*$/,""):r}var e=Object.freeze({__proto__:null,build:function(...t){return"".concat(...t)},chunk:function(r,n=0){if(!t.isString(r)||Number.isNaN(n)||n<0)return[];if(n<r.length){let t=0;const e=n||r.length,i=[];for(;t<r.length;)i.push(r.slice(t,t+e)),t+=e;return i}return[r]},format:function(t,...r){return r.reduce(((t,r,n)=>t.replace(new RegExp(`\\{${n}\\}`,"g"),r&&r.toString?r.toString():r)),t)},trim:function(t){return r(n(t))},trimStart:r,trimEnd:n,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(r,n,e="_"){const i=r.toString().split(""),s=new RegExp(e);return t.isFunction(n)?n(r):t.isString(n)&&n.split("").reduce(((t,e)=>i.length>0&&(s.test(e)||i[0]===e&&r.indexOf(i[0])===n.indexOf(e))?t+i.shift():t+e),"")},unmask:function(r,n,e="_"){const i=new RegExp(e);return t.isFunction(n)?n(r):t.isString(n)&&r.split("").reduce(((t,r,e)=>i.test(r)||!i.test(n.charAt(e))&&n.charAt(e)===r?t:t+r),"")}}),i=t=>t.reduce(((t,r)=>(t.includes(r)||t.push(r),t)),[]);class s{_list;_head;constructor(t){this._list=t,this._head=0}get isEmpty(){return this.length<1}get index(){return this._head}get length(){return this._list.length}get current(){return this._list[this._head]}get next(){const{length:t}=this;let r=this._head;return this._head=r++<t-1?r:0,this.current}get prev(){const{length:t}=this;let r=this._head;return this._head=--r<0?t-1:r,this.current}get peekNext(){const{length:t}=this,r=this._head;return this._list[r+1<t?r+1:0]}get peekPrev(){const{length:t}=this,r=this._head;return this._list[r-1<0?t-1:r-1]}}function u(t,r){try{return t()}catch{return r}}function a(t,r=0){const n=Math.pow(10,-r);return Math.round(parseFloat((t*n).toFixed(Math.abs(r))))/n}function h(t,r=0){return a(t+5*Math.pow(10,r-1),r)}function c(t,r=0){return 0===t?0:a(t-5*Math.pow(10,r-1),r)}function o(t){const r=(t,n=0,e=1)=>0<t?r(--t,e,n+e):n;return r(t)}function l(t){let r=0,n=1,e=0;for(;t>1;)e=r,r=n,n+=e,t--;return t<1?r:n}u.async=async(t,r)=>{try{return await t()}catch{return r}},Object.freeze({__proto__:null,random:function(t=0,r=1){return Math.random()*(r-t)+t},round:a,roundUp:h,roundDown:c,roundTowardZero:function(t,r=0){return t<0?h(t,r):c(t,r)},gcd:function t(r,n){return 0===n?Math.abs(r):t(n,r%n)},fib:o,fib2:l,fibArray:function(t){return Array(t).fill(0).map((()=>o(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>l(--t))).reverse()},tryParseInt:function(t,r=0){const n=parseInt(t);return Number.isNaN(n)?r:n},tryParseFloat:function(t,r=0){const n=parseFloat(t);return Number.isNaN(n)?r:n}});class f{constructor(r=0,n=0){if(!t.isNumber(r)||!t.isNumber(n))throw new Error("Coord requires numeric x and y values");this._x=r,this._y=n}get x(){return this._x}get y(){return this._y}get value(){return{x:this.x,y:this.y}}get half(){return this.divide(new f(2,2))}get abs(){return new f(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new f(this.x+t.x,this.y+t.y)}subtract(t){return new f(this.x-t.x,this.y-t.y)}multiply(t){return new f(this.x*t.x,this.y*t.y)}divide(t){return new f(this.x/t.x,this.y/t.y)}round(t=0){return new f(a(this.x,t),a(this.y,t))}toString(){return`(${this.x},${this.y})`}static canParse(r){return t.isArray(r)?!(Number.isNaN(r[0])||Number.isNaN(r[1])):t.isObjectLiteral(r)&&"x"in r&&"y"in r?!(Number.isNaN(r.x)||Number.isNaN(r.y)):r instanceof f}static parse(r){return t.exists(r)?r instanceof f?r:t.isArray(r)?new f(r[0],r[1]):t.isObjectLiteral(r)&&t.exists(r.x)&&t.exists(r.y)?new f(r.x,r.y):null:null}static tryParse(t){return u((()=>f.parse(t)),null)}}class d extends f{constructor(t=0,r=0){super(t,r),this._lengthSquared=Math.pow(t,2)+Math.pow(r,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===r?0:t/this._magnitude,this._unitNormalY=0===t&&0===r?0:r/this._magnitude}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new d(this._unitNormalX,this._unitNormalY)}get invert(){return new d(-this.x,-this.y)}get norm(){return new d(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new d(-this.y,this.x)}equals(t){return t instanceof d&&this.x===t.x&&this.y===t.y}add(t){return t instanceof d?new d(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof d?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof d))return null;const r=t.add(this.projectionOfOnto(t).invert);return new d(r.x,r.y)}projectionOfOnto(t){if(!(t instanceof d))return null;const r=t.normal.scale(this.dot(t.normal));return new d(r.x,r.y)}scale(t){return new d(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof d?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof d))return null;if(t.isZero)return this;const r=t.normal;return this.add(r.scale(2*r.dot(this)).invert)}round(t=0){return new d(a(this.x,t),a(this.y,t))}}class m extends f{constructor(t,r){super(t,r)}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new d(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof m||f.canParse(t)}static parse(t){if(t instanceof m)return t;const r=f.parse(t);return new m(r.x,r.y)}static tryParse(t){return u((()=>m.parse(t)),null)}}class p{constructor(t=0,r=0,n=0,e=0){this.origin=new m(t,r),this.dimensions=new f(n,e),this.diagonal=m.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half}contains(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)}aspectToFit(t){const r=this.dimensions,n=t.dimensions,e=n.x,i=n.y;let s=r.x,u=r.y;return s>u&&0!==s?(u*=e/s,s=e,u>i&&(u=i,s*=u/r.y)):u>i&&(s*=i/u,u=i),new p(this.origin.x,this.origin.y,s,u)}}var g=(t,r,n=!1)=>{let e;return(...i)=>{const s=n&&!e;clearTimeout(e),e=setTimeout((()=>{e=null,n||t(...i)}),r),s&&t(...i)}};class w{_milliseconds;_intervalId;_didInterval;constructor(t){this._milliseconds=t}get isRunning(){return t.exists(this._intervalId)}onInterval(t){return this.clear(),this._didInterval=t,this}start(){return this.clear(),this._intervalId=setInterval((()=>{this._didInterval()}),this._milliseconds),this}clear(){return clearInterval(this._intervalId),this._intervalId=null,this}}class y{_milliseconds;_timeoutId;_didTimeout;constructor(t){this._milliseconds=t}get isRunning(){return t.exists(this._timeoutId)}onTimeout(t){return this.clear(),this._didTimeout=t,this}start(){return this.clear(),this._timeoutId=setTimeout((()=>{this._didTimeout()}),this._milliseconds),this}clear(){return clearTimeout(this._timeoutId),this._timeoutId=null,this}}var b=t=>new Promise((r=>setTimeout(r,t)));function _(t){const r=isNaN(parseInt(t))||t<0||t>24?24:t,n=Math.random().toString().substring(2),e=Math.random().toString().substring(2);return n.concat(e).substring(0,r)}function A(){return function t(r){return r?(r^16*Math.random()>>r/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var N=Object.freeze({__proto__:null,uid:_,uuid:A,suid:function(){return Symbol(_())},suuid:function(){return Symbol(A())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/_:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?]+=[^=?]*(&[^=?]+=[^=?]*)*(_.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});export{y as C,w as L,p as M,N as R,b as Y,e as a,s as c,u as h,g as j,i as o,t}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function s(e){try{u(n.next(e))}catch(t){a(t)}}function o(e){try{u(n["throw"](e))}catch(t){a(t)}}function u(e){e.done?r(e.value):i(e.value).then(s,o)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(o){s=[6,o];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-556e08d2.system.js","./p-e9482cb1.system.js","./p-c7ab12de.system.js"],(function(e){"use strict";var t,r,n,i,a,s,o;return{setters:[function(e){t=e.r;r=e.h;n=e.g},function(e){i=e.t;a=e.o},function(e){s=e.E;o=e.K}],execute:function(){var u=function(e,t){if(!t){e.forEach((function(e){if(!e.currentAriaHidden){e.removeAttribute("aria-hidden")}else{e.setAttribute("aria-hidden",e.currentAriaHidden)}}))}else{e.forEach((function(e){e.currentAriaHidden=e.getAttribute("aria-hidden");e.setAttribute("aria-hidden",t)}))}};var l=["A","BUTTON","INPUT","SELECT","TEXTAREA"];var c=function(e){var t=e.getAttribute("tabindex");return(l.includes(e.tagName.toUpperCase())||e.getAttribute("href"))&&(!t||isNaN(t)||parseInt(t)>-1)};var h=function(e){return[].slice.call(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))};var d=function(e){return[].slice.call(e.querySelectorAll(':not([tabindex="-1"])'))};var f=":host{position:static}";var p=o.tab;var v=o.tab.shift;var m=o.tab.alt;var y=o.tab.alt.shift;var E=e("ku4_focus_trap",function(){function e(e){t(this,e);this.iframes=[];this.active=false;this.include=undefined;this.exclude=undefined;this.excludeShadow=undefined;this.initial=undefined;this.return=undefined;this.handleKeyDown=this.handleKeyDown.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleMouse=this.handleMouse.bind(this)}e.prototype.activeHandler=function(e){e?this.handleActivate():this.handleDeactivate()};e.prototype.activate=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.lastActiveElement=e||document.querySelector(this.return||null);this.active=true;return[2]}))}))};e.prototype.deactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.active=false;return[2]}))}))};e.prototype.handleActivate=function(){var e=this;this.lastActiveElement=this.lastActiveElement||document.activeElement;if(this.lastActiveElement&&this.lastActiveElement.blur){this.lastActiveElement.blur()}this.addEventListeners(this.elements);u(this.outerElements,true);window.requestAnimationFrame((function(){var t=document.querySelector(e.initial||null)||e.focusableElements[0]||e.trapElements[0];t.blur();t.focus();e.activateTraps()}))};e.prototype.handleDeactivate=function(){this.removeEventListeners(this.elements);this.deactivateTraps();u(this.outerElements);if(this.lastActiveElement&&this.lastActiveElement.focus){this.lastActiveElement.focus()}this.lastActiveElement=null};e.prototype.handleKeyDown=function(e){if(v.didFire(e)||y.didFire(e)){try{if(this.iframes.length>0&&(this.trapElements[1]===e.target||!i.isNull(e.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(t){return t.contains(e.target)})))){return}if(this.trapElements[0]===e.target){this.trapElements[1].focus();return s.mute(e)}var t=this.focusableElements.indexOf(e.target)-1;var r=t<0?this.focusableElements.length-1:t;this.focusableElements[r].focus();return s.mute(e)}catch(e){return s.mute(e)}}if(p.didFire(e)||m.didFire(e)){try{if(this.iframes.length>0&&(this.trapElements[0]===e.target||!i.isNull(e.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(t){return t.contains(e.target)})))){return}if(this.trapElements[1]===e.target){this.trapElements[0].focus();return s.mute(e)}var t=this.focusableElements.indexOf(e.target)+1;var r=t>=this.focusableElements.length?0:t;this.focusableElements[r].focus();return s.mute(e)}catch(e){return s.mute(e)}}};e.prototype.handleKeyUp=function(e){var t=this.trapElements.indexOf(e.target);if(t===0&&(v.didFire(e)||y.didFire(e))){var r=this.focusableElements[this.focusableElements.length-1]||this.trapElements[1];r.focus();return s.mute(e)}if(t===1&&(p.didFire(e)||m.didFire(e))){var r=this.focusableElements[0]||this.trapElements[0];r.focus();return s.mute(e)}};e.prototype.handleMouse=function(e){if(!this.elements.some((function(t){return t===e.target}))){s.mute(e)}};e.prototype.addEventListeners=function(e){var t=this;e.forEach((function(e){return e.addEventListener("keydown",t.handleKeyDown,{passive:true})}));e.forEach((function(e){return e.addEventListener("keyup",t.handleKeyUp,{passive:true})}));window.addEventListener("click",this.handleMouse,{passive:true});window.addEventListener("mousedown",this.handleMouse,{passive:true});window.addEventListener("mouseup",this.handleMouse,{passive:true});window.addEventListener("touchstart",this.handleMouse,{passive:true})};e.prototype.removeEventListeners=function(e){var t=this;e.forEach((function(e){return e.removeEventListener("keydown",t.handleKeyDown)}));e.forEach((function(e){return e.removeEventListener("keyup",t.handleKeyUp)}));window.removeEventListener("click",this.handleMouse);window.removeEventListener("mousedown",this.handleMouse);window.removeEventListener("mouseup",this.handleMouse);window.addEventListener("touchstart",this.handleMouse,{passive:true})};e.prototype.activateTraps=function(){this.setTraps(0)};e.prototype.deactivateTraps=function(){this.setTraps(-1)};e.prototype.setTraps=function(e){[].slice.call(this.host.querySelectorAll("[ku4-focus-trap], [ku4-focus-wrap]")).forEach((function(t){return t.setAttribute("tabindex",e)}))};e.prototype.wrap=function(e){var t=document.createDocumentFragment();t.appendChild(this.createWrapTag());t.appendChild(e.cloneNode());t.appendChild(this.createWrapTag());e.parentNode.replaceChild(t,e)};e.prototype.createTrapTag=function(){return this.createTag("ku4-focus-trap")};e.prototype.createWrapTag=function(){return this.createTag("ku4-focus-wrap")};e.prototype.createTag=function(e){var t=document.createElement("button");t.setAttribute(e,"");t.setAttribute("tabindex","0");t.setAttribute("aria-hidden","true");t.style.position="static";t.style.display="block";t.style.width="0";t.style.height="0";t.style.margin="0";t.style.padding="0";t.style.border="none";t.style.outline="none";return t};e.prototype.initialize=function(){var e=this;var t=[].slice.call(this.host.querySelectorAll("*"));var r=[].slice.call(document.querySelectorAll(this.include||null)||[]);var n=[].slice.call(document.querySelectorAll(this.exclude)||[]);var s=[];(this.excludeShadow||"").split(",").forEach((function(e){if(i.isNullOrEmpty(e)){return}try{var t=e.trim().replace(/\s/,"|").split("|");var r=document.querySelector(t[0]).shadowRoot.querySelectorAll(t[1]);s=s.concat([].slice.call(r||[]))}catch(n){console.error("Invalid shadow selector",e)}}));this.iframes=[].slice.call(this.host.querySelectorAll("iframe")||[]);this.iframes.forEach((function(t){return e.wrap(t)}));this.elements=a(__spreadArray(__spreadArray([],d(this.host),true),r,true));this.focusableElements=this.elements.reduce((function(t,r){if(c(r)&&!e.trapElements.includes(r)){t.push(r)}return t}),[]);this.outerElements=__spreadArray(__spreadArray(__spreadArray([],h(document.body),true),n,true),s,true).filter((function(n){return!(n===e.host||t.includes(n)||r.includes(n))}))};e.prototype.componentDidLoad=function(){var e=this.createTrapTag();var t=this.createTrapTag();this.trapElements=[e,t];this.host.insertBefore(e,this.host.firstChild);this.host.appendChild(t);this.initialize();if(this.active){this.handleActivate()}else{this.handleDeactivate()}};e.prototype.disconnectedCallback=function(){if(this.active){this.handleDeactivate()}};e.prototype.render=function(){return r("slot",null)};Object.defineProperty(e.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{active:["activeHandler"]}},enumerable:false,configurable:true});return e}());E.style=f}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function s(e){try{u(n.next(e))}catch(t){a(t)}}function o(e){try{u(n["throw"](e))}catch(t){a(t)}}function u(e){e.done?r(e.value):i(e.value).then(s,o)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(o){s=[6,o];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-d808aef5.system.js","./p-5759a316.system.js","./p-d7289b1a.system.js"],(function(e){"use strict";var t,r,n,i,a,s,o;return{setters:[function(e){t=e.r;r=e.h;n=e.g},function(e){i=e.t;a=e.o},function(e){s=e.E;o=e.K}],execute:function(){var u=function(e,t){if(!t){e.forEach((function(e){if(!e.currentAriaHidden){e.removeAttribute("aria-hidden")}else{e.setAttribute("aria-hidden",e.currentAriaHidden)}}))}else{e.forEach((function(e){e.currentAriaHidden=e.getAttribute("aria-hidden");e.setAttribute("aria-hidden",t)}))}};var l=["A","BUTTON","INPUT","SELECT","TEXTAREA"];var c=function(e){var t=e.getAttribute("tabindex");return(l.includes(e.tagName.toUpperCase())||e.getAttribute("href"))&&(!t||isNaN(t)||parseInt(t)>-1)};var h=function(e){return[].slice.call(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))};var d=function(e){return[].slice.call(e.querySelectorAll(':not([tabindex="-1"])'))};var f=":host{position:static}";var p=o.tab;var v=o.tab.shift;var m=o.tab.alt;var y=o.tab.alt.shift;var E=e("ku4_focus_trap",function(){function e(e){t(this,e);this.iframes=[];this.active=false;this.include=undefined;this.exclude=undefined;this.excludeShadow=undefined;this.initial=undefined;this.return=undefined;this.handleKeyDown=this.handleKeyDown.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleMouse=this.handleMouse.bind(this)}e.prototype.activeHandler=function(e){e?this.handleActivate():this.handleDeactivate()};e.prototype.activate=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.lastActiveElement=e||document.querySelector(this.return||null);this.active=true;return[2]}))}))};e.prototype.deactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.active=false;return[2]}))}))};e.prototype.handleActivate=function(){var e=this;this.lastActiveElement=this.lastActiveElement||document.activeElement;if(this.lastActiveElement&&this.lastActiveElement.blur){this.lastActiveElement.blur()}this.addEventListeners(this.elements);u(this.outerElements,true);window.requestAnimationFrame((function(){var t=document.querySelector(e.initial||null)||e.focusableElements[0]||e.trapElements[0];t.blur();t.focus();e.activateTraps()}))};e.prototype.handleDeactivate=function(){this.removeEventListeners(this.elements);this.deactivateTraps();u(this.outerElements);if(this.lastActiveElement&&this.lastActiveElement.focus){this.lastActiveElement.focus()}this.lastActiveElement=null};e.prototype.handleKeyDown=function(e){if(v.didFire(e)||y.didFire(e)){try{if(this.iframes.length>0&&(this.trapElements[1]===e.target||!i.isNull(e.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(t){return t.contains(e.target)})))){return}if(this.trapElements[0]===e.target){this.trapElements[1].focus();return s.mute(e)}var t=this.focusableElements.indexOf(e.target)-1;var r=t<0?this.focusableElements.length-1:t;this.focusableElements[r].focus();return s.mute(e)}catch(e){return s.mute(e)}}if(p.didFire(e)||m.didFire(e)){try{if(this.iframes.length>0&&(this.trapElements[0]===e.target||!i.isNull(e.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(t){return t.contains(e.target)})))){return}if(this.trapElements[1]===e.target){this.trapElements[0].focus();return s.mute(e)}var t=this.focusableElements.indexOf(e.target)+1;var r=t>=this.focusableElements.length?0:t;this.focusableElements[r].focus();return s.mute(e)}catch(e){return s.mute(e)}}};e.prototype.handleKeyUp=function(e){var t=this.trapElements.indexOf(e.target);if(t===0&&(v.didFire(e)||y.didFire(e))){var r=this.focusableElements[this.focusableElements.length-1]||this.trapElements[1];r.focus();return s.mute(e)}if(t===1&&(p.didFire(e)||m.didFire(e))){var r=this.focusableElements[0]||this.trapElements[0];r.focus();return s.mute(e)}};e.prototype.handleMouse=function(e){if(!this.elements.some((function(t){return t===e.target}))){s.mute(e)}};e.prototype.addEventListeners=function(e){var t=this;e.forEach((function(e){return e.addEventListener("keydown",t.handleKeyDown,{passive:true})}));e.forEach((function(e){return e.addEventListener("keyup",t.handleKeyUp,{passive:true})}));window.addEventListener("click",this.handleMouse,{passive:true});window.addEventListener("mousedown",this.handleMouse,{passive:true});window.addEventListener("mouseup",this.handleMouse,{passive:true});window.addEventListener("touchstart",this.handleMouse,{passive:true})};e.prototype.removeEventListeners=function(e){var t=this;e.forEach((function(e){return e.removeEventListener("keydown",t.handleKeyDown)}));e.forEach((function(e){return e.removeEventListener("keyup",t.handleKeyUp)}));window.removeEventListener("click",this.handleMouse);window.removeEventListener("mousedown",this.handleMouse);window.removeEventListener("mouseup",this.handleMouse);window.addEventListener("touchstart",this.handleMouse,{passive:true})};e.prototype.activateTraps=function(){this.setTraps(0)};e.prototype.deactivateTraps=function(){this.setTraps(-1)};e.prototype.setTraps=function(e){[].slice.call(this.host.querySelectorAll("[ku4-focus-trap], [ku4-focus-wrap]")).forEach((function(t){return t.setAttribute("tabindex",e)}))};e.prototype.wrap=function(e){var t=document.createDocumentFragment();t.appendChild(this.createWrapTag());t.appendChild(e.cloneNode());t.appendChild(this.createWrapTag());e.parentNode.replaceChild(t,e)};e.prototype.createTrapTag=function(){return this.createTag("ku4-focus-trap")};e.prototype.createWrapTag=function(){return this.createTag("ku4-focus-wrap")};e.prototype.createTag=function(e){var t=document.createElement("button");t.setAttribute(e,"");t.setAttribute("tabindex","0");t.setAttribute("aria-hidden","true");t.style.position="static";t.style.display="block";t.style.width="0";t.style.height="0";t.style.margin="0";t.style.padding="0";t.style.border="none";t.style.outline="none";return t};e.prototype.initialize=function(){var e=this;var t=[].slice.call(this.host.querySelectorAll("*"));var r=[].slice.call(document.querySelectorAll(this.include||null)||[]);var n=[].slice.call(document.querySelectorAll(this.exclude)||[]);var s=[];(this.excludeShadow||"").split(",").forEach((function(e){if(i.isNullOrEmpty(e)){return}try{var t=e.trim().replace(/\s/,"|").split("|");var r=document.querySelector(t[0]).shadowRoot.querySelectorAll(t[1]);s=s.concat([].slice.call(r||[]))}catch(n){console.error("Invalid shadow selector",e)}}));this.iframes=[].slice.call(this.host.querySelectorAll("iframe")||[]);this.iframes.forEach((function(t){return e.wrap(t)}));this.elements=a(__spreadArray(__spreadArray([],d(this.host),true),r,true));this.focusableElements=this.elements.reduce((function(t,r){if(c(r)&&!e.trapElements.includes(r)){t.push(r)}return t}),[]);this.outerElements=__spreadArray(__spreadArray(__spreadArray([],h(document.body),true),n,true),s,true).filter((function(n){return!(n===e.host||t.includes(n)||r.includes(n))}))};e.prototype.componentDidLoad=function(){var e=this.createTrapTag();var t=this.createTrapTag();this.trapElements=[e,t];this.host.insertBefore(e,this.host.firstChild);this.host.appendChild(t);this.initialize();if(this.active){this.handleActivate()}else{this.handleDeactivate()}};e.prototype.disconnectedCallback=function(){if(this.active){this.handleDeactivate()}};e.prototype.render=function(){return r("slot",null)};Object.defineProperty(e.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{active:["activeHandler"]}},enumerable:false,configurable:true});return e}());E.style=f}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,i){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function s(t){try{h(i.next(t))}catch(e){r(e)}}function a(t){try{h(i["throw"](t))}catch(e){r(e)}}function h(t){t.done?o(t.value):n(t.value).then(s,a)}h((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return h([t,e])}}function h(s){if(i)throw new TypeError("Generator is already executing.");while(o)try{if(i=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;n=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(s[0]===6&&o.label<r[1]){o.label=r[1];r=s;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(s);break}if(r[2])o.ops.pop();o.trys.pop();continue}s=e.call(t,o)}catch(a){s=[6,a];n=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-556e08d2.system.js","./p-e9482cb1.system.js"],(function(t){"use strict";var e,o,i,n,r,s,a;return{setters:[function(t){e=t.r;o=t.h;i=t.H;n=t.g},function(t){r=t.C;s=t.j;a=t.M}],execute:function(){var h=":host{position:fixed;display:none;opacity:0;z-index:2;background-color:#fff;border:solid 1px #ccc}:host([visible]){display:block;opacity:1;-webkit-transition:opacity 0.4s;transition:opacity 0.4s}:host .arrow{position:absolute;width:var(--ku4-tooltip-arrow-size, 14px);height:var(--ku4-tooltip-arrow-size, 14px);background-color:inherit;-webkit-transform:rotate(45deg);transform:rotate(45deg);border:inherit;-webkit-box-shadow:var(--ku4-tooltip-arrow-box-shadow, none);box-shadow:var(--ku4-tooltip-arrow-box-shadow, none)}:host .content{position:relative}:host([top]) .arrow{top:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-left:none !important}:host([left]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-left:none !important;border-bottom:none !important}:host([bottom]) .arrow{left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));bottom:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-bottom:none !important;border-right:none !important}:host([right]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));right:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-right:none !important}";var l=t("ku4_tooltip",function(){function t(t){e(this,t);this.isShowing=false;this.element=undefined;this.top=undefined;this.left=undefined;this.bottom=undefined;this.right=undefined;this.debug=undefined;this.show=this.show.bind(this);this.hide=this.hide.bind(this);this._show=this._show.bind(this);this._hide=this._hide.bind(this);this._toggle=this._toggle.bind(this);this.hideTimeout=new r(200).onTimeout(this._hide)}t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(o){this.hideTimeout.clear();if(this.host.contains(t)){return[2]}else{this.isShowing=true;this.host.setAttribute("visible","true");this.calcualatePosition(t);this.scrollListener=s((function(){return e.calcualatePosition(t)}));window.addEventListener("scroll",this.scrollListener,{passive:true})}return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.hideTimeout.clear().start();return[2]}))}))};t.prototype._show=function(t){this.show(t.target)};t.prototype._hide=function(){window.removeEventListener("scroll",this.scrollListener);this.host.removeAttribute("visible");this.isShowing=false};t.prototype._toggle=function(t){this.isShowing?this._hide():this._show(t)};t.prototype.calcualatePosition=function(t){var e=t.getBoundingClientRect(),o=e.left,i=e.top,n=e.width,r=e.height;var s=this.host.getBoundingClientRect(),h=s.left,l=s.top,c=s.width,u=s.height;var d=new a(o,i,n,r);var f=new a(h,l,c,u);if(this.top){this.host.style.left="".concat(d.origin.x+d.dimensions.x/2-f.dimensions.x/2,"px");this.host.style.top="".concat(d.origin.y-f.dimensions.y-15,"px")}else if(this.left){this.host.style.left="".concat(d.origin.x-f.dimensions.x-15,"px");this.host.style.top="".concat(d.origin.y+d.dimensions.y/2-f.dimensions.y/2,"px")}else if(this.bottom){this.host.style.left="".concat(d.origin.x+d.dimensions.x/2-f.dimensions.x/2,"px");this.host.style.top="".concat(d.origin.y+d.dimensions.y+15,"px")}else if(this.right){this.host.style.left="".concat(d.origin.x+d.dimensions.x+15,"px");this.host.style.top="".concat(d.origin.y+d.dimensions.y/2-f.dimensions.y/2,"px")}else{this.host.style.left="".concat(d.origin.x+d.dimensions.x/2-f.dimensions.x/2,"px");this.host.style.top="".concat(d.origin.y+d.dimensions.y+15,"px")}};t.prototype.componentWillLoad=function(){var t=this;var e=this,o=e.debug,i=e.element,n=e.host,r=e.top,s=e.left,a=e.bottom,h=e.right;if(!(r||s||a||h)){this.host.setAttribute("bottom","")}document.querySelectorAll(i).forEach((function(e){n.addEventListener("mouseover",t._show);e.addEventListener("mouseover",t._show);e.addEventListener("touchstart",t._toggle,{passive:true});if(o){return}n.addEventListener("mouseout",t.hide);e.addEventListener("mouseout",t.hide)}))};t.prototype.disconnectedCallback=function(){var t=this;var e=this,o=e.debug,i=e.element,n=e.hideTimeout,r=e.host;document.querySelectorAll(i).forEach((function(e){r.removeEventListener("mouseover",t._show);e.removeEventListener("mouseover",t._show);e.removeEventListener("touchstart",t._toggle);if(o){return}r.removeEventListener("mouseout",t.hide);e.removeEventListener("mouseout",t.hide)}));n.clear()};t.prototype.render=function(){return o(i,{role:"tooltip"},o("div",{class:"arrow"}),o("div",{class:"content"},o("slot",null)))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());l.style=h}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,i){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function s(t){try{h(i.next(t))}catch(e){r(e)}}function a(t){try{h(i["throw"](t))}catch(e){r(e)}}function h(t){t.done?o(t.value):n(t.value).then(s,a)}h((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return h([t,e])}}function h(s){if(i)throw new TypeError("Generator is already executing.");while(o)try{if(i=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;n=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(s[0]===6&&o.label<r[1]){o.label=r[1];r=s;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(s);break}if(r[2])o.ops.pop();o.trys.pop();continue}s=e.call(t,o)}catch(a){s=[6,a];n=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-d808aef5.system.js","./p-5759a316.system.js"],(function(t){"use strict";var e,o,i,n,r,s,a;return{setters:[function(t){e=t.r;o=t.h;i=t.H;n=t.g},function(t){r=t.C;s=t.j;a=t.M}],execute:function(){var h=":host{position:fixed;display:none;opacity:0;z-index:2;background-color:#fff;border:solid 1px #ccc}:host([visible]){display:block;opacity:1;-webkit-transition:opacity 0.4s;transition:opacity 0.4s}:host .arrow{position:absolute;width:var(--ku4-tooltip-arrow-size, 14px);height:var(--ku4-tooltip-arrow-size, 14px);background-color:inherit;-webkit-transform:rotate(45deg);transform:rotate(45deg);border:inherit;-webkit-box-shadow:var(--ku4-tooltip-arrow-box-shadow, none);box-shadow:var(--ku4-tooltip-arrow-box-shadow, none)}:host .content{position:relative}:host([top]) .arrow{top:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-left:none !important}:host([left]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-left:none !important;border-bottom:none !important}:host([bottom]) .arrow{left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));bottom:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-bottom:none !important;border-right:none !important}:host([right]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));right:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-right:none !important}";var l=t("ku4_tooltip",function(){function t(t){e(this,t);this.isShowing=false;this.element=undefined;this.top=undefined;this.left=undefined;this.bottom=undefined;this.right=undefined;this.debug=undefined;this.show=this.show.bind(this);this.hide=this.hide.bind(this);this._show=this._show.bind(this);this._hide=this._hide.bind(this);this._toggle=this._toggle.bind(this);this.hideTimeout=new r(200).onTimeout(this._hide)}t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(o){this.hideTimeout.clear();if(this.host.contains(t)){return[2]}else{this.isShowing=true;this.host.setAttribute("visible","true");this.calcualatePosition(t);this.scrollListener=s((function(){return e.calcualatePosition(t)}));window.addEventListener("scroll",this.scrollListener,{passive:true})}return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.hideTimeout.clear().start();return[2]}))}))};t.prototype._show=function(t){this.show(t.target)};t.prototype._hide=function(){window.removeEventListener("scroll",this.scrollListener);this.host.removeAttribute("visible");this.isShowing=false};t.prototype._toggle=function(t){this.isShowing?this._hide():this._show(t)};t.prototype.calcualatePosition=function(t){var e=t.getBoundingClientRect(),o=e.left,i=e.top,n=e.width,r=e.height;var s=this.host.getBoundingClientRect(),h=s.left,l=s.top,c=s.width,u=s.height;var d=new a(o,i,n,r);var f=new a(h,l,c,u);if(this.top){this.host.style.left="".concat(d.origin.x+d.dimensions.x/2-f.dimensions.x/2,"px");this.host.style.top="".concat(d.origin.y-f.dimensions.y-15,"px")}else if(this.left){this.host.style.left="".concat(d.origin.x-f.dimensions.x-15,"px");this.host.style.top="".concat(d.origin.y+d.dimensions.y/2-f.dimensions.y/2,"px")}else if(this.bottom){this.host.style.left="".concat(d.origin.x+d.dimensions.x/2-f.dimensions.x/2,"px");this.host.style.top="".concat(d.origin.y+d.dimensions.y+15,"px")}else if(this.right){this.host.style.left="".concat(d.origin.x+d.dimensions.x+15,"px");this.host.style.top="".concat(d.origin.y+d.dimensions.y/2-f.dimensions.y/2,"px")}else{this.host.style.left="".concat(d.origin.x+d.dimensions.x/2-f.dimensions.x/2,"px");this.host.style.top="".concat(d.origin.y+d.dimensions.y+15,"px")}};t.prototype.componentWillLoad=function(){var t=this;var e=this,o=e.debug,i=e.element,n=e.host,r=e.top,s=e.left,a=e.bottom,h=e.right;if(!(r||s||a||h)){this.host.setAttribute("bottom","")}document.querySelectorAll(i).forEach((function(e){n.addEventListener("mouseover",t._show);e.addEventListener("mouseover",t._show);e.addEventListener("touchstart",t._toggle,{passive:true});if(o){return}n.addEventListener("mouseout",t.hide);e.addEventListener("mouseout",t.hide)}))};t.prototype.disconnectedCallback=function(){var t=this;var e=this,o=e.debug,i=e.element,n=e.hideTimeout,r=e.host;document.querySelectorAll(i).forEach((function(e){r.removeEventListener("mouseover",t._show);e.removeEventListener("mouseover",t._show);e.removeEventListener("touchstart",t._toggle);if(o){return}r.removeEventListener("mouseout",t.hide);e.removeEventListener("mouseout",t.hide)}));n.clear()};t.prototype.render=function(){return o(i,{role:"tooltip"},o("div",{class:"arrow"}),o("div",{class:"content"},o("slot",null)))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());l.style=h}}}));
@@ -1 +1 @@
1
- class t{static isNull(t){return null===t}static isEmpty(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(e){return!(t.isUndefined(e)||t.isNull(e))}static isNullOrEmpty(e){return!t.exists(e)||t.isEmpty(e)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(e){return t.isBool(e)&&!0===e}static isFalse(e){return t.isBool(e)&&!1===e}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(e){try{return"AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(e){return!1}}static isPromise(t){return t instanceof Promise}static isObject(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))}static isObjectLiteral(e){return t.isObject(e)&&e.constructor==={}.constructor}static isTruthy(e){return!t.isFalsy(e)}static isFalsy(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)}}function e(...t){return"".concat(...t)}function n(t,...e){return e.reduce(((t,e,n)=>t.replace(new RegExp(`\\{${n}\\}`,"g"),e&&e.toString?e.toString():e)),t)}function r(t){return s(i(t))}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function i(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}function u(t,e){try{return t()}catch{return e}}let a;Object.freeze({__proto__:null,build:e,chunk:function(e,n=0){if(!t.isString(e)||Number.isNaN(n)||n<0)return[];if(n<e.length){let t=0;const r=n||e.length,s=[];for(;t<e.length;)s.push(e.slice(t,t+r)),t+=r;return s}return[e]},format:n,trim:r,trimStart:s,trimEnd:i,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(e,n,r="_"){const s=e.toString().split(""),i=new RegExp(r);return t.isFunction(n)?n(e):t.isString(n)&&n.split("").reduce(((t,r)=>s.length>0&&(i.test(r)||s[0]===r&&e.indexOf(s[0])===n.indexOf(r))?t+s.shift():t+r),"")},unmask:function(e,n,r="_"){const s=new RegExp(r);return t.isFunction(n)?n(e):t.isString(n)&&e.split("").reduce(((t,e,r)=>s.test(e)||!s.test(n.charAt(r))&&n.charAt(r)===e?t:t+e),"")}}),u.async=async(t,e)=>{try{return await t()}catch{return e}};class o{constructor(t,e,n){if(e<1||e>12)throw new Error("Invalid month at Assert.DayPoint");if(n<1||n>c(e,t))throw new Error("Invalid date at DayPoint");this._value=arguments.length>=3?new Date(t,e-1,n):new Date,this._day=this._value.getDay(),this._date=n,this._month=e,this._year=t}get value(){return this._value}get day(){return this._day}get date(){return this._date}get month(){return this._month}get year(){return this._year}get shortYear(){const t=this._year.toString();return parseInt(t.substr(t.length-2))}get isWeekday(){const t=this._day;return t>0&&t<6}get isWeekend(){return!this.isWeekday}get isLeapYear(){return h(this._year)}get nextDay(){return l(this,1,0,0)}get prevDay(){return l(this,-1,0,0)}get nextMonth(){return l(this,0,1,0)}get prevMonth(){return l(this,0,-1,0)}get nextYear(){return l(this,0,0,1)}get prevYear(){return l(this,0,0,-1)}get firstDayOfMonth(){return new o(this._year,this._month,1)}get lastDayOfMonth(){return new o(this._year,this._month,c(this._month,this._year))}add(t,e,n){function r(t,e,n){let r=t,s=e;for(;s--;)r=r[n];return r}const{abs:s}=Math,i=s(t),u=s(n),a=s(e),o=n<0?"prevDay":"nextDay",c=e<0?"prevMonth":"nextMonth";return r(r(r(this,i,t<0?"prevYear":"nextYear"),a,c),u,o)}isBefore(t){return!(this.isAfter(t)||this.equals(t))}isAfter(t){const e=this._year,n=t.year,r=this._month,s=t.month;return e>n||e===n&&r>s||e===n&&r===s&&this._date>t.date}equals(t){return this._year===t.year&&this._month===t.month&&this._date===t.date}toString(t="mm/dd/yyyy"){const e=/y{3,}/i.test(t)?this._year:this.shortYear,r=this._month,s=this._date,i=/m{2}/i.test(t)&&r<10?"0{1}":"{1}",u=/d{2}/i.test(t)&&s<10?"0{2}":"{2}";return n(t.replace(/y+/gi,"{0}").replace(/m+/gi,i).replace(/d+/gi,u),e,r,s)}toDate(){return this._value}toJson(){return this._value.toJSON()}static canParse(e){return t.isString(e)||t.isNumber(e)||t.isDate(e)?!isNaN(new Date(e).valueOf()):e instanceof o}static parse(e){if(e instanceof o)return e;let s=t.isString(e)?r(e).replace(/T\d{2}:\d{2}:\d{2}(.\d+)?Z/,""):e;if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(s)){const t=s.split("-"),[e]=t;t.push(e),t.shift(),s=t.join("/")}const i=new Date(s);if(!t.exists(s)||Number.isNaN(i.valueOf()))throw new Error(n("Cannot parse value= {0}",s));return new o(i.getFullYear(),i.getMonth()+1,i.getDate())}static tryParse(t){return u((()=>o.parse(t)),null)}static assumeNow(t){a=o.parse(t)}static get today(){return a||o.parse(new Date)}}function c(e,n){return 2===e?h(n)?29:28:e<8&&t.isEven(e)||e>7&&t.isOdd(e)?30:31}function h(t){const n=t.toString().split(/\B/);return parseFloat(e(n[n.length-2],n[n.length-1]))%4==0}function l(t,e,n,r){const s=t.month,i=t.year,u=t.date,a=n,h=r;let l=u+e,d=s+a,w=i+h;if(u+e>c(s,i)&&(l=1,d=s+a+1),u+e<1){const e=t.prevMonth;l=c(e.month,e.year),d=s+a-1}return d>12&&(d=1,w=i+h+1),d<1&&(d=12,w=i+h-1),new o(w,d,l)}function d(t,e=0){const n=Math.pow(10,-e);return Math.round(parseFloat((t*n).toFixed(Math.abs(e))))/n}function w(t,e=0){return d(t+5*Math.pow(10,e-1),e)}function y(t,e=0){return 0===t?0:d(t-5*Math.pow(10,e-1),e)}function f(t){const e=(t,n=0,r=1)=>0<t?e(--t,r,n+r):n;return e(t)}function m(t){let e=0,n=1,r=0;for(;t>1;)r=e,e=n,n+=r,t--;return t<1?e:n}Object.freeze({__proto__:null,random:function(t=0,e=1){return Math.random()*(e-t)+t},round:d,roundUp:w,roundDown:y,roundTowardZero:function(t,e=0){return t<0?w(t,e):y(t,e)},gcd:function t(e,n){return 0===n?Math.abs(e):t(n,e%n)},fib:f,fib2:m,fibArray:function(t){return Array(t).fill(0).map((()=>f(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>m(--t))).reverse()},tryParseInt:function(t,e=0){const n=parseInt(t);return Number.isNaN(n)?e:n},tryParseFloat:function(t,e=0){const n=parseFloat(t);return Number.isNaN(n)?e:n}});class p{constructor(e=0,n=0){if(!t.isNumber(e)||!t.isNumber(n))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=n}get x(){return this._x}get y(){return this._y}get value(){return{x:this.x,y:this.y}}get half(){return this.divide(new p(2,2))}get abs(){return new p(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new p(this.x+t.x,this.y+t.y)}subtract(t){return new p(this.x-t.x,this.y-t.y)}multiply(t){return new p(this.x*t.x,this.y*t.y)}divide(t){return new p(this.x/t.x,this.y/t.y)}round(t=0){return new p(d(this.x,t),d(this.y,t))}toString(){return`(${this.x},${this.y})`}static canParse(e){return t.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):t.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof p}static parse(e){return t.exists(e)?e instanceof p?e:t.isArray(e)?new p(e[0],e[1]):t.isObjectLiteral(e)&&t.exists(e.x)&&t.exists(e.y)?new p(e.x,e.y):null:null}static tryParse(t){return u((()=>p.parse(t)),null)}}class g extends p{constructor(t=0,e=0){super(t,e),this._lengthSquared=Math.pow(t,2)+Math.pow(e,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===e?0:t/this._magnitude,this._unitNormalY=0===t&&0===e?0:e/this._magnitude}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new g(this._unitNormalX,this._unitNormalY)}get invert(){return new g(-this.x,-this.y)}get norm(){return new g(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new g(-this.y,this.x)}equals(t){return t instanceof g&&this.x===t.x&&this.y===t.y}add(t){return t instanceof g?new g(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof g?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof g))return null;const e=t.add(this.projectionOfOnto(t).invert);return new g(e.x,e.y)}projectionOfOnto(t){if(!(t instanceof g))return null;const e=t.normal.scale(this.dot(t.normal));return new g(e.x,e.y)}scale(t){return new g(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof g?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof g))return null;if(t.isZero)return this;const e=t.normal;return this.add(e.scale(2*e.dot(this)).invert)}round(t=0){return new g(d(this.x,t),d(this.y,t))}}class b extends p{constructor(t,e){super(t,e)}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new g(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof b||p.canParse(t)}static parse(t){if(t instanceof b)return t;const e=p.parse(t);return new b(e.x,e.y)}static tryParse(t){return u((()=>b.parse(t)),null)}}function K(t){const e=isNaN(parseInt(t))||t<0||t>24?24:t,n=Math.random().toString().substring(2),r=Math.random().toString().substring(2);return n.concat(r).substring(0,e)}function v(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var M=Object.freeze({__proto__:null,uid:K,uuid:v,suid:function(){return Symbol(K())},suuid:function(){return Symbol(v())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/_:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?_]+=[^=?_]*(&[^=?_]+=[^=?_]*)*(_.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i}),M.uid(),o.today.nextYear.toDate();class ${static get orientation(){const{screen:t}=window,e=(t.orientation||{}).type||t.mozOrientation||t.msOrientation,n=window.orientation;return e===$.landscapePrimary||90===n?$.landscapePrimary:e===$.landscapeSecondary||-90===n?$.landscapeSecondary:e===$.portraitPrimary||0===n?$.portraitPrimary:e===$.portraitSecondary||180===n?$.portraitSecondary:void 0}static get landscapePrimary(){return"landscape-primary"}static get landscapeSecondary(){return"landscape-secondary"}static get portraitPrimary(){return"portrait-primary"}static get portraitSecondary(){return"portrait-secondary"}static get isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(window.navigator.userAgent)}}const A=new Set,N=new Set;let S,_,P,x=!1,D=!1,O=!1,k=!1;class E{static get scrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}static get isScrollPrevented(){return t.exists(E.scrollY)}static preventScroll(){if(E.isScrollPrevented)return;E.position=document.body.style.position,E.offsetY=document.body.style.top,E.offsetX=document.body.style.left,E.width=document.body.style.width,E.height=document.body.style.height,E.documentWidth=document.documentElement.style.width,E.documentWidth=document.documentElement.style.width,E.documentHeight=document.documentElement.style.height,E.overflowY=document.documentElement.style.overflowY,E.scrollX=window.scrollX||window.pageXOffset,E.scrollY=window.scrollY||window.pageYOffset;const{scrollbarWidth:t}=E;document.body.style.position="fixed",document.body.style.left=`-${E.scrollX}px`,document.body.style.top=`calc(-${E.scrollY}px - ${window.getComputedStyle(document.body)["padding-top"]} - ${window.getComputedStyle(document.body)["margin-top"]})`,document.body.style.width=`calc(100vw - ${t}px - ${window.getComputedStyle(document.body)["padding-left"]} - ${window.getComputedStyle(document.body)["padding-right"]} - ${window.getComputedStyle(document.body)["margin-left"]} - ${window.getComputedStyle(document.body)["margin-right"]})`,document.documentElement.style.width="100wh",document.documentElement.style.height="100vh",document.documentElement.style.overflowY=t&&"scroll",A.forEach((t=>{try{t()}catch(t){console.error("Document.onPreventScroll",t)}}))}static resumeScroll(){this.isScrollPrevented&&(document.body.style.position=E.position,document.body.style.top=E.offsetY,document.body.style.left=E.offsetX,document.body.style.width=E.width,document.body.style.height=E.height,document.documentElement.style.width=E.documentWidth,document.documentElement.style.height=E.documentHeight,document.documentElement.style.overflowY=E.overflowY,window.scrollTo(E.scrollX,E.scrollY),E.position=null,E.offsetY=null,E.offsetX=null,E.width=null,E.height=null,E.documentWidth=null,E.documentHeight=null,E.overflowY=null,E.scrollX=null,E.scrollY=null,N.forEach((t=>{try{t()}catch(t){console.error("Document.onResumeScroll",t)}})))}static onPreventScroll(t){A.add(t)}static onResumeScroll(t){N.add(t)}static get scroll(){return S||(S=new z,_=window.pageYOffset,P=window.pageXOffset,x=!1,D=!1,O=!1,k=!1,window.addEventListener("unload",(()=>S.unload()))),S}}const F=()=>{const t=window.pageYOffset,e=window.pageXOffset;x=t>_,D=t<_,k=e>P,O=e<P,_=t||window.pageYOffset,P=e||window.pageXOffset};class z{constructor(){document.addEventListener("scroll",F,{passive:!0})}get down(){return x}get up(){return D}get left(){return O}get right(){return k}unload(){document.removeEventListener("scroll",F),x=!1,D=!1,O=!1,k=!1,_=window.pageYOffset,P=window.pageXOffset,S=null}}class j{static mute(e){return!!t.exists(e)&&(t.isFunction(e.preventDefault)&&e.preventDefault(),t.isFunction(e.stopPropagation)&&e.stopPropagation(),t.isFunction(e.stopImmediatePropagation)&&e.stopImmediatePropagation(),t.exists(e.cancelBubble)&&(e.cancelBubble=!0),!1)}}const T=t=>new window.FormData(t),B=e=>{const n={};try{T(e).forEach(((e,r)=>{const s=n[r];t.isArray(s)?n[r].push(e):n[r]=t.exists(s)?[n[r],e]:e}))}catch(t){[...e.elements].forEach((t=>{const{name:e,type:r,value:s,files:i}=t;if("file"===r)n[e]=i[0];else if("checkbox"===r||"radio"===r)t.checked&&(n[e]=s);else if(t.multiple){const r=[];t.querySelectorAll("option").forEach((t=>t.selected&&r.push(t.value))),n[e]=r.length<2?r[0]:r}else n[e]=s}))}return n};var R={readFieldNames:t=>{const e=t.getAttribute("id");return[...[...t.querySelectorAll("[name]")].map((t=>t.name)),...e?[...document.querySelectorAll(`[form="${e}"]`)].map((t=>t.name)):[]]},read:B,readData:T,readJson:t=>JSON.stringify(B(t)),write:(e,n)=>{[...e.elements].forEach((e=>{/^select$/i.test(e.nodeName)?t.isArray(n[e.name])?[...e.options].forEach((t=>{t.selected=n[e.name].indexOf(t.value)>=0})):t.exists(n[e.name])&&(e.value=n[e.name]):t.exists(n[e.name])&&("checkbox"===e.type||"radio"===e.type?e.checked=n[e.name]===e.value:e.value=n[e.name])}))}};class Y{constructor(t,e,n={}){this.key=t,this.msKey=e||t,this.altKey=n.altKey||!1,this.ctrlKey=n.ctrlKey||!1,this.metaKey=n.metaKey||!1,this.shiftKey=n.shiftKey||!1}get alt(){const{key:t,msKey:e,ctrlKey:n,metaKey:r,shiftKey:s}=this;return new Y(t,e,{altKey:!0,ctrlKey:n,metaKey:r,shiftKey:s})}get ctrl(){const{key:t,msKey:e,altKey:n,metaKey:r,shiftKey:s}=this;return new Y(t,e,{altKey:n,ctrlKey:!0,metaKey:r,shiftKey:s})}get meta(){const{key:t,msKey:e,altKey:n,ctrlKey:r,shiftKey:s}=this;return new Y(t,e,{altKey:n,ctrlKey:r,metaKey:!0,shiftKey:s})}get shift(){const{key:t,msKey:e,altKey:n,ctrlKey:r,metaKey:s}=this;return new Y(t,e,{altKey:n,ctrlKey:r,metaKey:s,shiftKey:!0})}equals(t){return t instanceof Y&&this.altKey===t.altKey&&this.ctrlKey===t.ctrlKey&&this.metaKey===t.metaKey&&this.shiftKey===t.shiftKey&&(this.key===t.key||this.msKey===t.msKey)}didFire(t){const{code:e,key:n,altKey:r,ctrlKey:s,metaKey:i,shiftKey:u}=t,a="Dead"===n?e:n;return t&&("ANY"===this.key||this.equals(new Y(a,a,{altKey:r,ctrlKey:s,metaKey:i,shiftKey:u})))}static get press(){return"keypress"}static get down(){return"keydown"}static get up(){return"keyup"}static get any(){return new Y("ANY")}static get esc(){return new Y("Escape","Esc")}static get enter(){return new Y("Enter")}static get space(){return new Y(" ","Spacebar")}static get tab(){return new Y("Tab")}static get left(){return new Y("ArrowLeft","Left")}static get right(){return new Y("ArrowRight","Right")}}class I{constructor(t,e=0){this.didTouchStart=this.didTouchStart.bind(this),this.didTouchEnd=this.didTouchEnd.bind(this),this.didTouchMove=this.didTouchMove.bind(this),t.addEventListener("touchstart",this.didTouchStart,{capture:!1,passive:!0}),t.addEventListener("touchend",this.didTouchEnd,{capture:!1,passive:!0}),t.addEventListener("touchmove",this.didTouchMove,{capture:!1,passive:!0}),this.element=t,this.tolerance=e,this.didSwipeLeft=()=>{},this.didSwipeRight=()=>{},this.didMove=()=>{}}onLeft(t){return this.didSwipeLeft=t,this}onRight(t){return this.didSwipeRight=t,this}onMove(t){return this.didMove=t,this}destroy(){const{element:t}=this;return t.removeEventListener("touchstart",this.didTouchStart,{capture:!1}),t.removeEventListener("touchend",this.didTouchEnd,{capture:!1}),t.removeEventListener("touchmove",this.didTouchMove,{capture:!1}),this}didTouchStart({touches:[t]}){this.touchStartPoint=new b(t.pageX,t.pageY)}didTouchEnd(t){const[e]=t.changedTouches,{touchStartPoint:n}=this,r=new b(e.pageX,e.pageY);r.isLeftOf(n)&&Math.abs(r.distanceFrom(n).x)>this.tolerance&&this.didSwipeLeft(t),r.isRightOf(n)&&Math.abs(r.distanceFrom(n).x)>this.tolerance&&this.didSwipeRight(t)}didTouchMove(t){const[e]=t.touches,{touchStartPoint:n}=this,r=new b(e.pageX,e.pageY);this.didMove({distance:r.distanceFrom(n),up:r.isAbove(n),down:r.isBelow(n),left:r.isLeftOf(n),right:r.isRightOf(n)})}}export{E as D,j as E,Y as K,I as S,$ as a,R as i}
1
+ class t{static isNull(t){return null===t}static isEmpty(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(e){return!(t.isUndefined(e)||t.isNull(e))}static isNullOrEmpty(e){return!t.exists(e)||t.isEmpty(e)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(e){return t.isBool(e)&&!0===e}static isFalse(e){return t.isBool(e)&&!1===e}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(e){try{return"AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(e){return!1}}static isPromise(t){return t instanceof Promise}static isObject(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))}static isObjectLiteral(e){return t.isObject(e)&&e.constructor==={}.constructor}static isTruthy(e){return!t.isFalsy(e)}static isFalsy(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)}}function e(...t){return"".concat(...t)}function n(t,...e){return e.reduce(((t,e,n)=>t.replace(new RegExp(`\\{${n}\\}`,"g"),e&&e.toString?e.toString():e)),t)}function r(t){return s(i(t))}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function i(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}function u(t,e){try{return t()}catch{return e}}let a;Object.freeze({__proto__:null,build:e,chunk:function(e,n=0){if(!t.isString(e)||Number.isNaN(n)||n<0)return[];if(n<e.length){let t=0;const r=n||e.length,s=[];for(;t<e.length;)s.push(e.slice(t,t+r)),t+=r;return s}return[e]},format:n,trim:r,trimStart:s,trimEnd:i,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(e,n,r="_"){const s=e.toString().split(""),i=new RegExp(r);return t.isFunction(n)?n(e):t.isString(n)&&n.split("").reduce(((t,r)=>s.length>0&&(i.test(r)||s[0]===r&&e.indexOf(s[0])===n.indexOf(r))?t+s.shift():t+r),"")},unmask:function(e,n,r="_"){const s=new RegExp(r);return t.isFunction(n)?n(e):t.isString(n)&&e.split("").reduce(((t,e,r)=>s.test(e)||!s.test(n.charAt(r))&&n.charAt(r)===e?t:t+e),"")}}),u.async=async(t,e)=>{try{return await t()}catch{return e}};class o{constructor(t,e,n){if(e<1||e>12)throw new Error("Invalid month at Assert.DayPoint");if(n<1||n>c(e,t))throw new Error("Invalid date at DayPoint");this._value=arguments.length>=3?new Date(t,e-1,n):new Date,this._day=this._value.getDay(),this._date=n,this._month=e,this._year=t}get value(){return this._value}get day(){return this._day}get date(){return this._date}get month(){return this._month}get year(){return this._year}get shortYear(){const t=this._year.toString();return parseInt(t.substr(t.length-2))}get isWeekday(){const t=this._day;return t>0&&t<6}get isWeekend(){return!this.isWeekday}get isLeapYear(){return h(this._year)}get nextDay(){return l(this,1,0,0)}get prevDay(){return l(this,-1,0,0)}get nextMonth(){return l(this,0,1,0)}get prevMonth(){return l(this,0,-1,0)}get nextYear(){return l(this,0,0,1)}get prevYear(){return l(this,0,0,-1)}get firstDayOfMonth(){return new o(this._year,this._month,1)}get lastDayOfMonth(){return new o(this._year,this._month,c(this._month,this._year))}add(t,e,n){function r(t,e,n){let r=t,s=e;for(;s--;)r=r[n];return r}const{abs:s}=Math,i=s(t),u=s(n),a=s(e),o=n<0?"prevDay":"nextDay",c=e<0?"prevMonth":"nextMonth";return r(r(r(this,i,t<0?"prevYear":"nextYear"),a,c),u,o)}isBefore(t){return!(this.isAfter(t)||this.equals(t))}isAfter(t){const e=this._year,n=t.year,r=this._month,s=t.month;return e>n||e===n&&r>s||e===n&&r===s&&this._date>t.date}equals(t){return this._year===t.year&&this._month===t.month&&this._date===t.date}toString(t="mm/dd/yyyy"){const e=/y{3,}/i.test(t)?this._year:this.shortYear,r=this._month,s=this._date,i=/m{2}/i.test(t)&&r<10?"0{1}":"{1}",u=/d{2}/i.test(t)&&s<10?"0{2}":"{2}";return n(t.replace(/y+/gi,"{0}").replace(/m+/gi,i).replace(/d+/gi,u),e,r,s)}toDate(){return this._value}toJson(){return this._value.toJSON()}static canParse(e){return t.isString(e)||t.isNumber(e)||t.isDate(e)?!isNaN(new Date(e).valueOf()):e instanceof o}static parse(e){if(e instanceof o)return e;let s=t.isString(e)?r(e).replace(/T\d{2}:\d{2}:\d{2}(.\d+)?Z/,""):e;if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(s)){const t=s.split("-"),[e]=t;t.push(e),t.shift(),s=t.join("/")}const i=new Date(s);if(!t.exists(s)||Number.isNaN(i.valueOf()))throw new Error(n("Cannot parse value= {0}",s));return new o(i.getFullYear(),i.getMonth()+1,i.getDate())}static tryParse(t){return u((()=>o.parse(t)),null)}static assumeNow(t){a=o.parse(t)}static get today(){return a||o.parse(new Date)}}function c(e,n){return 2===e?h(n)?29:28:e<8&&t.isEven(e)||e>7&&t.isOdd(e)?30:31}function h(t){const n=t.toString().split(/\B/);return parseFloat(e(n[n.length-2],n[n.length-1]))%4==0}function l(t,e,n,r){const s=t.month,i=t.year,u=t.date,a=n,h=r;let l=u+e,d=s+a,w=i+h;if(u+e>c(s,i)&&(l=1,d=s+a+1),u+e<1){const e=t.prevMonth;l=c(e.month,e.year),d=s+a-1}return d>12&&(d=1,w=i+h+1),d<1&&(d=12,w=i+h-1),new o(w,d,l)}function d(t,e=0){const n=Math.pow(10,-e);return Math.round(parseFloat((t*n).toFixed(Math.abs(e))))/n}function w(t,e=0){return d(t+5*Math.pow(10,e-1),e)}function y(t,e=0){return 0===t?0:d(t-5*Math.pow(10,e-1),e)}function f(t){const e=(t,n=0,r=1)=>0<t?e(--t,r,n+r):n;return e(t)}function m(t){let e=0,n=1,r=0;for(;t>1;)r=e,e=n,n+=r,t--;return t<1?e:n}Object.freeze({__proto__:null,random:function(t=0,e=1){return Math.random()*(e-t)+t},round:d,roundUp:w,roundDown:y,roundTowardZero:function(t,e=0){return t<0?w(t,e):y(t,e)},gcd:function t(e,n){return 0===n?Math.abs(e):t(n,e%n)},fib:f,fib2:m,fibArray:function(t){return Array(t).fill(0).map((()=>f(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>m(--t))).reverse()},tryParseInt:function(t,e=0){const n=parseInt(t);return Number.isNaN(n)?e:n},tryParseFloat:function(t,e=0){const n=parseFloat(t);return Number.isNaN(n)?e:n}});class p{constructor(e=0,n=0){if(!t.isNumber(e)||!t.isNumber(n))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=n}get x(){return this._x}get y(){return this._y}get value(){return{x:this.x,y:this.y}}get half(){return this.divide(new p(2,2))}get abs(){return new p(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new p(this.x+t.x,this.y+t.y)}subtract(t){return new p(this.x-t.x,this.y-t.y)}multiply(t){return new p(this.x*t.x,this.y*t.y)}divide(t){return new p(this.x/t.x,this.y/t.y)}round(t=0){return new p(d(this.x,t),d(this.y,t))}toString(){return`(${this.x},${this.y})`}static canParse(e){return t.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):t.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof p}static parse(e){return t.exists(e)?e instanceof p?e:t.isArray(e)?new p(e[0],e[1]):t.isObjectLiteral(e)&&t.exists(e.x)&&t.exists(e.y)?new p(e.x,e.y):null:null}static tryParse(t){return u((()=>p.parse(t)),null)}}class g extends p{constructor(t=0,e=0){super(t,e),this._lengthSquared=Math.pow(t,2)+Math.pow(e,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===e?0:t/this._magnitude,this._unitNormalY=0===t&&0===e?0:e/this._magnitude}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new g(this._unitNormalX,this._unitNormalY)}get invert(){return new g(-this.x,-this.y)}get norm(){return new g(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new g(-this.y,this.x)}equals(t){return t instanceof g&&this.x===t.x&&this.y===t.y}add(t){return t instanceof g?new g(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof g?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof g))return null;const e=t.add(this.projectionOfOnto(t).invert);return new g(e.x,e.y)}projectionOfOnto(t){if(!(t instanceof g))return null;const e=t.normal.scale(this.dot(t.normal));return new g(e.x,e.y)}scale(t){return new g(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof g?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof g))return null;if(t.isZero)return this;const e=t.normal;return this.add(e.scale(2*e.dot(this)).invert)}round(t=0){return new g(d(this.x,t),d(this.y,t))}}class b extends p{constructor(t,e){super(t,e)}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new g(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof b||p.canParse(t)}static parse(t){if(t instanceof b)return t;const e=p.parse(t);return new b(e.x,e.y)}static tryParse(t){return u((()=>b.parse(t)),null)}}function K(t){const e=isNaN(parseInt(t))||t<0||t>24?24:t,n=Math.random().toString().substring(2),r=Math.random().toString().substring(2);return n.concat(r).substring(0,e)}function v(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var M=Object.freeze({__proto__:null,uid:K,uuid:v,suid:function(){return Symbol(K())},suuid:function(){return Symbol(v())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/_:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?]+=[^=?]*(&[^=?]+=[^=?]*)*(_.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i}),M.uid(),o.today.nextYear.toDate();class ${static get orientation(){const{screen:t}=window,e=(t.orientation||{}).type||t.mozOrientation||t.msOrientation,n=window.orientation;return e===$.landscapePrimary||90===n?$.landscapePrimary:e===$.landscapeSecondary||-90===n?$.landscapeSecondary:e===$.portraitPrimary||0===n?$.portraitPrimary:e===$.portraitSecondary||180===n?$.portraitSecondary:void 0}static get landscapePrimary(){return"landscape-primary"}static get landscapeSecondary(){return"landscape-secondary"}static get portraitPrimary(){return"portrait-primary"}static get portraitSecondary(){return"portrait-secondary"}static get isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(window.navigator.userAgent)}}const A=new Set,N=new Set;let S,P,x,D=!1,_=!1,O=!1,k=!1;class E{static get scrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}static get isScrollPrevented(){return t.exists(E.scrollY)}static preventScroll(){if(E.isScrollPrevented)return;E.position=document.body.style.position,E.offsetY=document.body.style.top,E.offsetX=document.body.style.left,E.width=document.body.style.width,E.height=document.body.style.height,E.documentWidth=document.documentElement.style.width,E.documentWidth=document.documentElement.style.width,E.documentHeight=document.documentElement.style.height,E.overflowY=document.documentElement.style.overflowY,E.scrollX=window.scrollX||window.pageXOffset,E.scrollY=window.scrollY||window.pageYOffset;const{scrollbarWidth:t}=E;document.body.style.position="fixed",document.body.style.left=`-${E.scrollX}px`,document.body.style.top=`calc(-${E.scrollY}px - ${window.getComputedStyle(document.body)["padding-top"]} - ${window.getComputedStyle(document.body)["margin-top"]})`,document.body.style.width=`calc(100vw - ${t}px - ${window.getComputedStyle(document.body)["padding-left"]} - ${window.getComputedStyle(document.body)["padding-right"]} - ${window.getComputedStyle(document.body)["margin-left"]} - ${window.getComputedStyle(document.body)["margin-right"]})`,document.documentElement.style.width="100wh",document.documentElement.style.height="100vh",document.documentElement.style.overflowY=t&&"scroll",A.forEach((t=>{try{t()}catch(t){console.error("Document.onPreventScroll",t)}}))}static resumeScroll(){this.isScrollPrevented&&(document.body.style.position=E.position,document.body.style.top=E.offsetY,document.body.style.left=E.offsetX,document.body.style.width=E.width,document.body.style.height=E.height,document.documentElement.style.width=E.documentWidth,document.documentElement.style.height=E.documentHeight,document.documentElement.style.overflowY=E.overflowY,window.scrollTo(E.scrollX,E.scrollY),E.position=null,E.offsetY=null,E.offsetX=null,E.width=null,E.height=null,E.documentWidth=null,E.documentHeight=null,E.overflowY=null,E.scrollX=null,E.scrollY=null,N.forEach((t=>{try{t()}catch(t){console.error("Document.onResumeScroll",t)}})))}static onPreventScroll(t){A.add(t)}static onResumeScroll(t){N.add(t)}static get scroll(){return S||(S=new z,P=window.pageYOffset,x=window.pageXOffset,D=!1,_=!1,O=!1,k=!1,window.addEventListener("unload",(()=>S.unload()))),S}}const F=()=>{const t=window.pageYOffset,e=window.pageXOffset;D=t>P,_=t<P,k=e>x,O=e<x,P=t||window.pageYOffset,x=e||window.pageXOffset};class z{constructor(){document.addEventListener("scroll",F,{passive:!0})}get down(){return D}get up(){return _}get left(){return O}get right(){return k}unload(){document.removeEventListener("scroll",F),D=!1,_=!1,O=!1,k=!1,P=window.pageYOffset,x=window.pageXOffset,S=null}}class j{static mute(e){return!!t.exists(e)&&(t.isFunction(e.preventDefault)&&e.preventDefault(),t.isFunction(e.stopPropagation)&&e.stopPropagation(),t.isFunction(e.stopImmediatePropagation)&&e.stopImmediatePropagation(),t.exists(e.cancelBubble)&&(e.cancelBubble=!0),!1)}}const T=t=>new window.FormData(t),B=e=>{const n={};try{T(e).forEach(((e,r)=>{const s=n[r];t.isArray(s)?n[r].push(e):n[r]=t.exists(s)?[n[r],e]:e}))}catch(t){[...e.elements].forEach((t=>{const{name:e,type:r,value:s,files:i}=t;if("file"===r)n[e]=i[0];else if("checkbox"===r||"radio"===r)t.checked&&(n[e]=s);else if(t.multiple){const r=[];t.querySelectorAll("option").forEach((t=>t.selected&&r.push(t.value))),n[e]=r.length<2?r[0]:r}else n[e]=s}))}return n};var R={readFieldNames:t=>{const e=t.getAttribute("id");return[...[...t.querySelectorAll("[name]")].map((t=>t.name)),...e?[...document.querySelectorAll(`[form="${e}"]`)].map((t=>t.name)):[]]},read:B,readData:T,readJson:t=>JSON.stringify(B(t)),write:(e,n)=>{[...e.elements].forEach((e=>{/^select$/i.test(e.nodeName)?t.isArray(n[e.name])?[...e.options].forEach((t=>{t.selected=n[e.name].indexOf(t.value)>=0})):t.exists(n[e.name])&&(e.value=n[e.name]):t.exists(n[e.name])&&("checkbox"===e.type||"radio"===e.type?e.checked=n[e.name]===e.value:e.value=n[e.name])}))}};class Y{constructor(t,e,n={}){this.key=t,this.msKey=e||t,this.altKey=n.altKey||!1,this.ctrlKey=n.ctrlKey||!1,this.metaKey=n.metaKey||!1,this.shiftKey=n.shiftKey||!1}get alt(){const{key:t,msKey:e,ctrlKey:n,metaKey:r,shiftKey:s}=this;return new Y(t,e,{altKey:!0,ctrlKey:n,metaKey:r,shiftKey:s})}get ctrl(){const{key:t,msKey:e,altKey:n,metaKey:r,shiftKey:s}=this;return new Y(t,e,{altKey:n,ctrlKey:!0,metaKey:r,shiftKey:s})}get meta(){const{key:t,msKey:e,altKey:n,ctrlKey:r,shiftKey:s}=this;return new Y(t,e,{altKey:n,ctrlKey:r,metaKey:!0,shiftKey:s})}get shift(){const{key:t,msKey:e,altKey:n,ctrlKey:r,metaKey:s}=this;return new Y(t,e,{altKey:n,ctrlKey:r,metaKey:s,shiftKey:!0})}equals(t){return t instanceof Y&&this.altKey===t.altKey&&this.ctrlKey===t.ctrlKey&&this.metaKey===t.metaKey&&this.shiftKey===t.shiftKey&&(this.key===t.key||this.msKey===t.msKey)}didFire(t){const{code:e,key:n,altKey:r,ctrlKey:s,metaKey:i,shiftKey:u}=t,a="Dead"===n?e:n;return t&&("ANY"===this.key||this.equals(new Y(a,a,{altKey:r,ctrlKey:s,metaKey:i,shiftKey:u})))}static get press(){return"keypress"}static get down(){return"keydown"}static get up(){return"keyup"}static get any(){return new Y("ANY")}static get esc(){return new Y("Escape","Esc")}static get enter(){return new Y("Enter")}static get space(){return new Y(" ","Spacebar")}static get tab(){return new Y("Tab")}static get left(){return new Y("ArrowLeft","Left")}static get right(){return new Y("ArrowRight","Right")}}class I{constructor(t,e=0){this.didTouchStart=this.didTouchStart.bind(this),this.didTouchEnd=this.didTouchEnd.bind(this),this.didTouchMove=this.didTouchMove.bind(this),t.addEventListener("touchstart",this.didTouchStart,{capture:!1,passive:!0}),t.addEventListener("touchend",this.didTouchEnd,{capture:!1,passive:!0}),t.addEventListener("touchmove",this.didTouchMove,{capture:!1,passive:!0}),this.element=t,this.tolerance=e,this.didSwipeLeft=()=>{},this.didSwipeRight=()=>{},this.didMove=()=>{}}onLeft(t){return this.didSwipeLeft=t,this}onRight(t){return this.didSwipeRight=t,this}onMove(t){return this.didMove=t,this}destroy(){const{element:t}=this;return t.removeEventListener("touchstart",this.didTouchStart,{capture:!1}),t.removeEventListener("touchend",this.didTouchEnd,{capture:!1}),t.removeEventListener("touchmove",this.didTouchMove,{capture:!1}),this}didTouchStart({touches:[t]}){this.touchStartPoint=new b(t.pageX,t.pageY)}didTouchEnd(t){const[e]=t.changedTouches,{touchStartPoint:n}=this,r=new b(e.pageX,e.pageY);r.isLeftOf(n)&&Math.abs(r.distanceFrom(n).x)>this.tolerance&&this.didSwipeLeft(t),r.isRightOf(n)&&Math.abs(r.distanceFrom(n).x)>this.tolerance&&this.didSwipeRight(t)}didTouchMove(t){const[e]=t.touches,{touchStartPoint:n}=this,r=new b(e.pageX,e.pageY);this.didMove({distance:r.distanceFrom(n),up:r.isAbove(n),down:r.isBelow(n),left:r.isLeftOf(n),right:r.isRightOf(n)})}}export{E as D,j as E,Y as K,I as S,$ as a,R as i}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):r(t.value).then(a,s)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return u([t,e])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(s){a=[6,s];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-556e08d2.system.js"],(function(t){"use strict";var e,n,i,r;return{setters:[function(t){e=t.r;n=t.h;i=t.H;r=t.g}],execute:function(){var o=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:hidden}:host([open]){padding-top:inherit;padding-bottom:inherit}";var a=t("ku4_panel",function(){function t(t){e(this,t);this.open=false;this.maxHeight=this.open?"none":"0px"}t.prototype.openHandler=function(t){if(t){this.maxHeight="".concat(this.host.scrollHeight,"px")}else{this.host.style.maxHeight="".concat(this.host.scrollHeight,"px");this.maxHeight="0px"}};t.prototype.handleTransitionEnd=function(){this.maxHeight=this.open?"none":"0px"};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=!this.open;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;return[2]}))}))};t.prototype.render=function(){var t=this,e=t.open,r=t.maxHeight;return n(i,{"aria-hidden":e?"false":"true",tabIndex:e?0:-1,style:{maxHeight:r}},n("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openHandler"]}},enumerable:false,configurable:true});return t}());a.style=o}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(i.next(t))}catch(e){o(e)}}function s(t){try{u(i["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):r(t.value).then(a,s)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return u([t,e])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(s){a=[6,s];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-d808aef5.system.js"],(function(t){"use strict";var e,n,i,r;return{setters:[function(t){e=t.r;n=t.h;i=t.H;r=t.g}],execute:function(){var o=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:hidden}:host([open]){padding-top:inherit;padding-bottom:inherit}";var a=t("ku4_panel",function(){function t(t){e(this,t);this.open=false;this.maxHeight=this.open?"none":"0px"}t.prototype.openHandler=function(t){if(t){this.maxHeight="".concat(this.host.scrollHeight,"px")}else{this.host.style.maxHeight="".concat(this.host.scrollHeight,"px");this.maxHeight="0px"}};t.prototype.handleTransitionEnd=function(){this.maxHeight=this.open?"none":"0px"};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=!this.open;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;return[2]}))}))};t.prototype.render=function(){var t=this,e=t.open,r=t.maxHeight;return n(i,{"aria-hidden":e?"false":"true",tabIndex:e?0:-1,style:{maxHeight:r}},n("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openHandler"]}},enumerable:false,configurable:true});return t}());a.style=o}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{a(o.next(t))}catch(e){r(e)}}function h(t){try{a(o["throw"](t))}catch(e){r(e)}}function a(t){t.done?n(t.value):i(t.value).then(s,h)}a((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,s;return s={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function h(t){return function(e){return a([t,e])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=s[0]&2?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;if(i=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(h){s=[6,h];i=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-556e08d2.system.js"],(function(t){"use strict";var e,n,o;return{setters:[function(t){e=t.r;n=t.h;o=t.H}],execute:function(){var i=":host{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;z-index:1}:host([top]),:host([bottom]){width:100%;height:0;-webkit-transition:height 0.4s;transition:height 0.4s}:host([left]),:host([right]){width:0;height:100%;-webkit-transition:width 0.4s;transition:width 0.4s}:host([top][open]),:host([bottom][open]){height:100%}:host([left][open]),:host([right][open]){width:100%}:host([top][open=false]),:host([bottom][open=false]){height:0}:host([left][open=false]),:host([right][open=false]){width:0}:host([top]),:host([left]){top:0;left:0}:host([bottom]){left:0;bottom:0}:host([right]){right:0;bottom:0}";var r=t("ku4_drawer",function(){function t(t){e(this,t);this.bottom=undefined;this.left=undefined;this.right=undefined;this.top=undefined;this.size="20%";this.open=undefined}t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=!this.open;return[2]}))}))};Object.defineProperty(t.prototype,"sizeValue",{get:function(){var t=this,e=t.bottom,n=t.top,o=t.right,i=t.size;switch(true){case e:return{"max-height":i};case n:return{"max-height":i};case o:return{"max-width":i};default:return{"max-width":i}}},enumerable:false,configurable:true});t.prototype.render=function(){var t=this,e=t.sizeValue,i=t.open;return n(o,{style:e,"aria-hidden":i?"false":"true"},n("slot",null))};return t}());r.style=i}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{a(o.next(t))}catch(e){r(e)}}function h(t){try{a(o["throw"](t))}catch(e){r(e)}}function a(t){t.done?n(t.value):i(t.value).then(s,h)}a((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,s;return s={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function h(t){return function(e){return a([t,e])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=s[0]&2?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;if(i=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(h){s=[6,h];i=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-d808aef5.system.js"],(function(t){"use strict";var e,n,o;return{setters:[function(t){e=t.r;n=t.h;o=t.H}],execute:function(){var i=":host{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;z-index:1}:host([top]),:host([bottom]){width:100%;height:0;-webkit-transition:height 0.4s;transition:height 0.4s}:host([left]),:host([right]){width:0;height:100%;-webkit-transition:width 0.4s;transition:width 0.4s}:host([top][open]),:host([bottom][open]){height:100%}:host([left][open]),:host([right][open]){width:100%}:host([top][open=false]),:host([bottom][open=false]){height:0}:host([left][open=false]),:host([right][open=false]){width:0}:host([top]),:host([left]){top:0;left:0}:host([bottom]){left:0;bottom:0}:host([right]){right:0;bottom:0}";var r=t("ku4_drawer",function(){function t(t){e(this,t);this.bottom=undefined;this.left=undefined;this.right=undefined;this.top=undefined;this.size="20%";this.open=undefined}t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=!this.open;return[2]}))}))};Object.defineProperty(t.prototype,"sizeValue",{get:function(){var t=this,e=t.bottom,n=t.top,o=t.right,i=t.size;switch(true){case e:return{"max-height":i};case n:return{"max-height":i};case o:return{"max-width":i};default:return{"max-width":i}}},enumerable:false,configurable:true});t.prototype.render=function(){var t=this,e=t.sizeValue,i=t.open;return n(o,{style:e,"aria-hidden":i?"false":"true"},n("slot",null))};return t}());r.style=i}}}));
@@ -1 +1 @@
1
- import{r as o,c as t,h as a,H as r,g as e}from"./p-558f5446.js";import{L as i,Y as n,c as s}from"./p-54fb5b7d.js";import{S as u}from"./p-5d8e9dd5.js";const c=class{constructor(a){o(this,a),this.didSlide=t(this,"slide",7),this.swipeTolerance=44,this.auto=!1,this.noSwipe=!1,this.delay=8e3,this.slideState=void 0,this.interval=new i(this.delay).onInterval((()=>{this.host.isConnected?this.display("next"):this.disconnectedCallback()})),this.handleMouse=this.handleMouse.bind(this)}async next(){return this.hasSlides?(await this.pause(),this.display("next")):this}async previous(){return this.hasSlides?(await this.pause(),this.display("prev")):this}async slideTo(o){await this.pause();const{slides:t}=this,a=isNaN(o)?t.findIndex((t=>t.getAttribute("name")===o))+1:parseInt(o);if(!(a===this.currentSlideNumber||a<1||this.rolodex.length<a)){const o=a-this.currentSlideNumber,t=o<0?"prev":"next";let r=Math.abs(o);for(;0<--r;)await n(10).then((()=>this.rolodex[t]));this.display(t)}}async pause(){this.interval.clear()}async play(){const{auto:o,interval:t}=this;o&&t.start()}get slides(){return[].slice.call(this.host.children)}get hasSlides(){return this.rolodex&&this.rolodex.length>1}get currentSlideNumber(){const{rolodex:o}=this;return o&&(o.isEmpty?0:o.index+1)}display(o){return window.requestAnimationFrame((()=>{const{previous:t,current:a}=this.slideState,r=this.rolodex[o];t&&t.deactivate(),a.slideOut(o),r.slideIn(o),this.slideState={previous:a,current:r},this.didSlide.emit(this.currentSlideNumber)})),this}handleMouse(o){this.host.contains(o.relatedTarget)||this.play()}componentWillLoad(){let o;this.noSwipe||(this.swipe=new u(this.host,this.swipeTolerance).onLeft((()=>this.next())).onRight((()=>this.previous())));try{o=this.host.querySelectorAll(":scope > ku4-carousel-slide")}catch(t){o=[].slice.call(this.host.querySelectorAll("ku4-carousel-slide")).reduce(((o,t)=>(t.parentNode===this.host&&o.push(t),o)),[])}this.rolodex=new s(o),this.rolodex.current&&this.rolodex.current.activate&&this.rolodex.current.activate(),this.slideState={current:this.rolodex.current},this.auto&&(this.host.addEventListener("mouseout",this.handleMouse),this.play())}connectedCallback(){this.swipe&&this.swipe.destroy(),this.host.removeEventListener("mouseout",this.handleMouse),this.interval.clear()}disconnectedCallback(){this.swipe&&this.swipe.destroy(),this.host.removeEventListener("mouseout",this.handleMouse),this.interval.clear()}render(){const{hasSlides:o,currentSlideNumber:t=1}=this;return a(r,{"aria-roledescription":"carousel",current:t},o&&a("section",{class:"controls"},a("button",{type:"button",class:"prev",onClick:()=>this.previous(),"aria-label":"previous slide"}),a("button",{type:"button",class:"next",onClick:()=>this.next(),"aria-label":"next slide"})),a("section",{class:"slide-container","aria-live":"polite"},a("slot",null)),o&&a("section",{class:"pages"},a("span",{class:"pages-text"},`${t} of ${this.rolodex.length}`)))}get host(){return e(this)}};c.style="@-webkit-keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@-webkit-keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;overflow:hidden;background-color:var(--ku4-carousel-background-color, #fff)}.slide-container{position:relative;width:100%;height:100%;overflow:hidden}.controls .next,.controls .prev{position:absolute;display:var(--ku4-carousel-controls-display, block);top:var(--ku4-carousel-controls-top, 0);border:var(--ku4-carousel-controls-border, none);background-color:var(--ku4-carousel-controls-background-color, #fff);font-family:var(--ku4-carousel-controls-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-controls-font-weight, 400);font-size:var(--ku4-carousel-controls-font-size, 8px);line-height:var(--ku4-carousel-controls-line-height, 12px);opacity:var(--ku4-carousel-controls-opacity, 0.2);z-index:var(--ku4-carousel-controls-z-index, 2)}.controls .next:focus,.controls .prev:focus{background-color:var(--ku4-carousel-controls-focus-background-color, transparent);outline:var(--ku4-carousel-controls-focus-outline, none);opacity:var(--ku4-carousel-controls-focus-opacity, 0.2)}.controls .next:hover,.controls .prev:hover{background-color:var(--ku4-carousel-controls-hover-background-color, transparent);opacity:var(--ku4-carousel-controls-hover-opacity, 1)}.controls .next{right:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-next-background-image);background-repeat:var(--ku4-carousel-controls-next-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-background-size, 100% 100%)}.controls .next:focus{background-image:var(--ku4-carousel-controls-next-focus-background-image);background-repeat:var(--ku4-carousel-controls-next-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-focus-background-size, 100% 100%)}.controls .next:hover{background-image:var(--ku4-carousel-controls-next-hover-background-image);background-repeat:var(--ku4-carousel-controls-next-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-hover-background-size, 100% 100%)}.controls .prev{left:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-previous-background-image);background-repeat:var(--ku4-carousel-controls-previous-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-background-size, 100% 100%)}.controls .prev:focus{background-image:var(--ku4-carousel-controls-previous-focus-background-image);background-repeat:var(--ku4-carousel-controls-previous-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-focus-background-size, 100% 100%)}.controls .prev:hover{background-image:var(--ku4-carousel-controls-previous-hover-background-image);background-repeat:var(--ku4-carousel-controls-previous-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-hover-background-size, 100% 100%)}.pages{position:absolute;display:var(--ku4-carousel-pages-display, block);top:var(--ku4-carousel-pages-top, auto);bottom:var(--ku4-carousel-pages-bottom, 4px);width:var(--ku4-carousel-pages-width, auto);height:var(--ku4-carousel-pages-height, 20px);background-color:var(--ku4-carousel-pages-background-color, transparent);opacity:var(--ku4-carousel-pages-opacity, 0.5);text-align:center;z-index:3}.pages-text{display:inline-block;padding:var(--ku4-carousel-pages-text-padding, 4px);font-family:var(--ku4-carousel-pages-text-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-pages-text-font-weight, 600);font-size:var(--ku4-carousel-pages-text-font-size, 14px);line-height:var(--ku4-carousel-pages-text-line-height, 16px);color:var(--ku4-carousel-pages-text-color, #aaa)}::slotted(*){position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;top:0;left:-100%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(.inactive){position:absolute;height:100%;left:0}::slotted(.inactive.prev){-webkit-animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.inactive.next){-webkit-animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active){position:relative;top:0;left:0;width:auto;height:100%;z-index:1}::slotted(.active.prev){-webkit-animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active.next){-webkit-animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (hover: hover){.controls:hover{background-color:var(--ku4-carousel-controls-focus-background-color, #fff)}}";export{c as ku4_carousel}
1
+ import{r as o,c as t,h as a,H as r,g as e}from"./p-1e3ad132.js";import{L as i,Y as n,c as s}from"./p-9f6d3640.js";import{S as u}from"./p-ae9a5549.js";const c=class{constructor(a){o(this,a),this.didSlide=t(this,"slide",7),this.swipeTolerance=44,this.auto=!1,this.noSwipe=!1,this.delay=8e3,this.slideState=void 0,this.interval=new i(this.delay).onInterval((()=>{this.host.isConnected?this.display("next"):this.disconnectedCallback()})),this.handleMouse=this.handleMouse.bind(this)}async next(){return this.hasSlides?(await this.pause(),this.display("next")):this}async previous(){return this.hasSlides?(await this.pause(),this.display("prev")):this}async slideTo(o){await this.pause();const{slides:t}=this,a=isNaN(o)?t.findIndex((t=>t.getAttribute("name")===o))+1:parseInt(o);if(!(a===this.currentSlideNumber||a<1||this.rolodex.length<a)){const o=a-this.currentSlideNumber,t=o<0?"prev":"next";let r=Math.abs(o);for(;0<--r;)await n(10).then((()=>this.rolodex[t]));this.display(t)}}async pause(){this.interval.clear()}async play(){const{auto:o,interval:t}=this;o&&t.start()}get slides(){return[].slice.call(this.host.children)}get hasSlides(){return this.rolodex&&this.rolodex.length>1}get currentSlideNumber(){const{rolodex:o}=this;return o&&(o.isEmpty?0:o.index+1)}display(o){return window.requestAnimationFrame((()=>{const{previous:t,current:a}=this.slideState,r=this.rolodex[o];t&&t.deactivate(),a.slideOut(o),r.slideIn(o),this.slideState={previous:a,current:r},this.didSlide.emit(this.currentSlideNumber)})),this}handleMouse(o){this.host.contains(o.relatedTarget)||this.play()}componentWillLoad(){let o;this.noSwipe||(this.swipe=new u(this.host,this.swipeTolerance).onLeft((()=>this.next())).onRight((()=>this.previous())));try{o=this.host.querySelectorAll(":scope > ku4-carousel-slide")}catch(t){o=[].slice.call(this.host.querySelectorAll("ku4-carousel-slide")).reduce(((o,t)=>(t.parentNode===this.host&&o.push(t),o)),[])}this.rolodex=new s(o),this.rolodex.current&&this.rolodex.current.activate&&this.rolodex.current.activate(),this.slideState={current:this.rolodex.current},this.auto&&(this.host.addEventListener("mouseout",this.handleMouse),this.play())}connectedCallback(){this.swipe&&this.swipe.destroy(),this.host.removeEventListener("mouseout",this.handleMouse),this.interval.clear()}disconnectedCallback(){this.swipe&&this.swipe.destroy(),this.host.removeEventListener("mouseout",this.handleMouse),this.interval.clear()}render(){const{hasSlides:o,currentSlideNumber:t=1}=this;return a(r,{"aria-roledescription":"carousel",current:t},o&&a("section",{class:"controls"},a("button",{type:"button",class:"prev",onClick:()=>this.previous(),"aria-label":"previous slide"}),a("button",{type:"button",class:"next",onClick:()=>this.next(),"aria-label":"next slide"})),a("section",{class:"slide-container","aria-live":"polite"},a("slot",null)),o&&a("section",{class:"pages"},a("span",{class:"pages-text"},`${t} of ${this.rolodex.length}`)))}get host(){return e(this)}};c.style="@-webkit-keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@-webkit-keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;overflow:hidden;background-color:var(--ku4-carousel-background-color, #fff)}.slide-container{position:relative;width:100%;height:100%;overflow:hidden}.controls .next,.controls .prev{position:absolute;display:var(--ku4-carousel-controls-display, block);top:var(--ku4-carousel-controls-top, 0);border:var(--ku4-carousel-controls-border, none);background-color:var(--ku4-carousel-controls-background-color, #fff);font-family:var(--ku4-carousel-controls-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-controls-font-weight, 400);font-size:var(--ku4-carousel-controls-font-size, 8px);line-height:var(--ku4-carousel-controls-line-height, 12px);opacity:var(--ku4-carousel-controls-opacity, 0.2);z-index:var(--ku4-carousel-controls-z-index, 2)}.controls .next:focus,.controls .prev:focus{background-color:var(--ku4-carousel-controls-focus-background-color, transparent);outline:var(--ku4-carousel-controls-focus-outline, none);opacity:var(--ku4-carousel-controls-focus-opacity, 0.2)}.controls .next:hover,.controls .prev:hover{background-color:var(--ku4-carousel-controls-hover-background-color, transparent);opacity:var(--ku4-carousel-controls-hover-opacity, 1)}.controls .next{right:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-next-background-image);background-repeat:var(--ku4-carousel-controls-next-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-background-size, 100% 100%)}.controls .next:focus{background-image:var(--ku4-carousel-controls-next-focus-background-image);background-repeat:var(--ku4-carousel-controls-next-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-focus-background-size, 100% 100%)}.controls .next:hover{background-image:var(--ku4-carousel-controls-next-hover-background-image);background-repeat:var(--ku4-carousel-controls-next-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-hover-background-size, 100% 100%)}.controls .prev{left:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-previous-background-image);background-repeat:var(--ku4-carousel-controls-previous-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-background-size, 100% 100%)}.controls .prev:focus{background-image:var(--ku4-carousel-controls-previous-focus-background-image);background-repeat:var(--ku4-carousel-controls-previous-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-focus-background-size, 100% 100%)}.controls .prev:hover{background-image:var(--ku4-carousel-controls-previous-hover-background-image);background-repeat:var(--ku4-carousel-controls-previous-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-hover-background-size, 100% 100%)}.pages{position:absolute;display:var(--ku4-carousel-pages-display, block);top:var(--ku4-carousel-pages-top, auto);bottom:var(--ku4-carousel-pages-bottom, 4px);width:var(--ku4-carousel-pages-width, auto);height:var(--ku4-carousel-pages-height, 20px);background-color:var(--ku4-carousel-pages-background-color, transparent);opacity:var(--ku4-carousel-pages-opacity, 0.5);text-align:center;z-index:3}.pages-text{display:inline-block;padding:var(--ku4-carousel-pages-text-padding, 4px);font-family:var(--ku4-carousel-pages-text-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-pages-text-font-weight, 600);font-size:var(--ku4-carousel-pages-text-font-size, 14px);line-height:var(--ku4-carousel-pages-text-line-height, 16px);color:var(--ku4-carousel-pages-text-color, #aaa)}::slotted(*){position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;top:0;left:-100%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(.inactive){position:absolute;height:100%;left:0}::slotted(.inactive.prev){-webkit-animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.inactive.next){-webkit-animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active){position:relative;top:0;left:0;width:auto;height:100%;z-index:1}::slotted(.active.prev){-webkit-animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active.next){-webkit-animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (hover: hover){.controls:hover{background-color:var(--ku4-carousel-controls-focus-background-color, #fff)}}";export{c as ku4_carousel}
@@ -1 +1 @@
1
- System.register(["./p-556e08d2.system.js","./p-e9482cb1.system.js"],(function(t){"use strict";var e,n,r,i,o;return{setters:[function(t){e=t.r;n=t.h;r=t.g;i=t.H},function(t){o=t.t}],execute:function(){var s=t("ku4_feature",function(){function t(t){e(this,t);this.on=undefined;this.policy="";this.enabled=false;var n=this.policy.trim();this.featurePolicy=o.isNullOrEmpty(n)?function(){return false}:new Function(/^return/.test(n)?n:"return ".concat(n))}t.prototype.componentWillLoad=function(){var t=this,e=t.on,r=t.featurePolicy;e||r.call(this.host)?this.render=function(){return n("slot",null)}:this.host.parentNode.removeChild(this.host)};t.prototype.render=function(){return n(i,null)};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}())}}}));
1
+ System.register(["./p-d808aef5.system.js","./p-5759a316.system.js"],(function(t){"use strict";var e,n,r,i,o;return{setters:[function(t){e=t.r;n=t.h;r=t.g;i=t.H},function(t){o=t.t}],execute:function(){var s=t("ku4_feature",function(){function t(t){e(this,t);this.on=undefined;this.policy="";this.enabled=false;var n=this.policy.trim();this.featurePolicy=o.isNullOrEmpty(n)?function(){return false}:new Function(/^return/.test(n)?n:"return ".concat(n))}t.prototype.componentWillLoad=function(){var t=this,e=t.on,r=t.featurePolicy;e||r.call(this.host)?this.render=function(){return n("slot",null)}:this.host.parentNode.removeChild(this.host)};t.prototype.render=function(){return n(i,null)};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}())}}}));