ember-inspector 4.5.2 → 4.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -2
- package/.github/workflows/build.yml +0 -10
- package/.tool-versions +1 -1
- package/CHANGELOG.md +53 -0
- package/README.md +3 -3
- package/app/controllers/application.js +17 -7
- package/app/routes/whats-new.js +10 -3
- package/app/templates/application.hbs +1 -1
- package/babel.config.js +12 -0
- package/dist/bookmarklet/panes-3-4-0/assets/chunk.143.270940edacdd577ffc3a.js +9 -0
- package/dist/{chrome/panes-3-4-0/assets/chunk.178.5b0ef53154b4f03c1ddf.js → bookmarklet/panes-3-4-0/assets/chunk.178.c1ce9d69d5e5184cb8b8.js} +3 -3
- package/dist/{chrome/panes-3-4-0/assets/chunk.916.cfdae71ef87e943d7ad0.js → bookmarklet/panes-3-4-0/assets/chunk.916.10195c168143dde80f98.js} +1 -1
- package/dist/bookmarklet/panes-3-4-0/assets/{chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt → chunk.916.10195c168143dde80f98.js.LICENSE.txt} +0 -0
- package/dist/bookmarklet/panes-3-4-0/assets/ember-inspector.js +211 -188
- package/dist/bookmarklet/panes-3-4-0/assets/vendor.css +35 -4
- package/dist/bookmarklet/panes-3-4-0/assets/vendor.js +1691 -1849
- package/dist/bookmarklet/panes-3-4-0/ember_debug.js +7 -7
- package/dist/bookmarklet/panes-3-4-0/index.html +1 -2
- package/dist/chrome/manifest.json +1 -1
- package/dist/chrome/panes-3-4-0/assets/chunk.143.270940edacdd577ffc3a.js +9 -0
- package/dist/{firefox/panes-3-4-0/assets/chunk.178.5b0ef53154b4f03c1ddf.js → chrome/panes-3-4-0/assets/chunk.178.c1ce9d69d5e5184cb8b8.js} +3 -3
- package/dist/{firefox/panes-3-4-0/assets/chunk.916.cfdae71ef87e943d7ad0.js → chrome/panes-3-4-0/assets/chunk.916.10195c168143dde80f98.js} +1 -1
- package/dist/chrome/panes-3-4-0/assets/{chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt → chunk.916.10195c168143dde80f98.js.LICENSE.txt} +0 -0
- package/dist/chrome/panes-3-4-0/assets/ember-inspector.js +211 -188
- package/dist/chrome/panes-3-4-0/assets/vendor.css +35 -4
- package/dist/chrome/panes-3-4-0/assets/vendor.js +1691 -1849
- package/dist/chrome/panes-3-4-0/ember_debug.js +7 -7
- package/dist/chrome/panes-3-4-0/index.html +1 -2
- package/dist/firefox/manifest.json +1 -1
- package/dist/firefox/panes-3-4-0/assets/chunk.143.270940edacdd577ffc3a.js +9 -0
- package/dist/{bookmarklet/panes-3-4-0/assets/chunk.178.5b0ef53154b4f03c1ddf.js → firefox/panes-3-4-0/assets/chunk.178.c1ce9d69d5e5184cb8b8.js} +3 -3
- package/dist/{websocket/assets/chunk.916.cfdae71ef87e943d7ad0.js → firefox/panes-3-4-0/assets/chunk.916.10195c168143dde80f98.js} +1 -1
- package/dist/firefox/panes-3-4-0/assets/{chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt → chunk.916.10195c168143dde80f98.js.LICENSE.txt} +0 -0
- package/dist/firefox/panes-3-4-0/assets/ember-inspector.js +211 -188
- package/dist/firefox/panes-3-4-0/assets/vendor.css +35 -4
- package/dist/firefox/panes-3-4-0/assets/vendor.js +1691 -1849
- package/dist/firefox/panes-3-4-0/ember_debug.js +7 -7
- package/dist/firefox/panes-3-4-0/index.html +1 -2
- package/dist/websocket/assets/chunk.143.270940edacdd577ffc3a.js +9 -0
- package/dist/websocket/assets/{chunk.178.5b0ef53154b4f03c1ddf.js → chunk.178.c1ce9d69d5e5184cb8b8.js} +3 -3
- package/dist/{bookmarklet/panes-3-4-0/assets/chunk.916.cfdae71ef87e943d7ad0.js → websocket/assets/chunk.916.10195c168143dde80f98.js} +1 -1
- package/dist/websocket/assets/{chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt → chunk.916.10195c168143dde80f98.js.LICENSE.txt} +0 -0
- package/dist/websocket/assets/ember-inspector.js +211 -188
- package/dist/websocket/assets/vendor.css +35 -4
- package/dist/websocket/assets/vendor.js +1691 -1849
- package/dist/websocket/ember_debug.js +7 -7
- package/dist/websocket/index.html +1 -2
- package/ember_debug/object-inspector.js +4 -5
- package/ember_debug/vendor/startup-wrapper.js +5 -0
- package/package.json +12 -10
- package/tests/acceptance/whats-new-test.js +14 -6
- package/tests/ember_debug/container-debug-test.js +10 -3
- package/tests/helpers/setup-ember-debug-test.js +3 -2
- package/app/modifiers/did-resize.js +0 -76
- package/dist/bookmarklet/panes-3-4-0/assets/chunk.143.2d97860a6e5f313b08e6.js +0 -146
- package/dist/chrome/panes-3-4-0/assets/chunk.143.2d97860a6e5f313b08e6.js +0 -146
- package/dist/firefox/panes-3-4-0/assets/chunk.143.2d97860a6e5f313b08e6.js +0 -146
- package/dist/websocket/assets/chunk.143.2d97860a6e5f313b08e6.js +0 -146
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
var __ember_auto_import__;(()=>{var e={62:(e,t,n)=>{"use strict"
|
|
2
|
-
var i=n(389)
|
|
3
|
-
function r(){var e={},t=0,n=0,i=0
|
|
4
|
-
return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),e[r]||(e[r]=[]),e[r].push(o),t++},process:function(){for(var t=i;t<=n;t++)for(var r=e[t],o=0;o<r.length;o++)(0,r[o])()},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=i.getOption(e,"async",!0),o=i.getOption(e,"auto",!0)
|
|
5
|
-
o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0)
|
|
6
|
-
var a,s=r(),l=!1
|
|
7
|
-
function c(){for(l=!0;s.size();){var e=s
|
|
8
|
-
s=r(),e.process()}l=!1}function d(){a=setTimeout(c,0)}return{add:function(e,t){!l&&o&&n&&0===s.size()&&d(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?d():c())}}}},389:e=>{"use strict";(e.exports={}).getOption=function(e,t,n){var i=e[t]
|
|
9
|
-
return null==i&&void 0!==n?n:i}},422:e=>{"use strict"
|
|
10
|
-
var t=e.exports={}
|
|
11
|
-
t.isIE=function(e){return!(-1===(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===t.indexOf("trident")&&-1===t.indexOf(" edge/")||e&&e!==function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i")
|
|
12
|
-
do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0])
|
|
13
|
-
return e>4?e:void 0}())
|
|
14
|
-
var t},t.isLegacyOpera=function(){return!!window.opera}},785:e=>{"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var i=t(e[n])
|
|
15
|
-
if(i)return i}}},325:(e,t,n)=>{"use strict"
|
|
16
|
-
var i=n(422)
|
|
17
|
-
e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState
|
|
18
|
-
if(!t)throw new Error("Missing required dependency: reporter.")
|
|
19
|
-
function o(t){var n=e.important?" !important; ":"; "
|
|
20
|
-
return(t.join(n)+n).trim()}function a(e){return r(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,i.isIE(8)?s(a):function(a,s){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,d=window.getComputedStyle(a),u=a.offsetWidth,f=a.offsetHeight
|
|
21
|
-
function h(){function n(){if("static"===d.position){a.style.setProperty("position","relative",e.important?"important":"")
|
|
22
|
-
var n=function(t,n,i,r){var o=i[r]
|
|
23
|
-
"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",e.important?"important":""))}
|
|
24
|
-
n(t,a,d,"top"),n(t,a,d,"right"),n(t,a,d,"bottom"),n(t,a,d,"left")}}""!==d.position&&(n(),c=!0)
|
|
25
|
-
var o=document.createElement("object")
|
|
26
|
-
o.style.cssText=l,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){c||n(),function e(t,n){if(!t.contentDocument){var i=r(t)
|
|
27
|
-
return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},i.isIE()||(o.data="about:blank"),r(a)&&(a.appendChild(o),r(a).object=o,i.isIE()&&(o.data="about:blank"))}r(a).startSize={width:u,height:f},n?n.add(h):h()}(a,s)},addListener:function(e,t){function n(){t(e)}if(i.isIE(8))r(e).object={proxy:n},e.attachEvent("onresize",n)
|
|
28
|
-
else{var o=a(e)
|
|
29
|
-
if(!o)throw new Error("Element is not detectable by this strategy.")
|
|
30
|
-
o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(r(e)){var t=a(e)
|
|
31
|
-
t&&(i.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),r(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(e).checkForObjectDocumentTimeoutId),delete r(e).object)}}}}},659:(e,t,n)=>{"use strict"
|
|
32
|
-
var i=n(785).forEach
|
|
33
|
-
e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler)
|
|
34
|
-
if(!n)throw new Error("Missing required dependency: batchProcessor")
|
|
35
|
-
if(!t)throw new Error("Missing required dependency: reporter.")
|
|
36
|
-
var a=function(){var e=document.createElement("div")
|
|
37
|
-
e.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"])
|
|
38
|
-
var t=document.createElement("div")
|
|
39
|
-
t.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild)
|
|
40
|
-
var n=500-t.clientWidth,i=500-t.clientHeight
|
|
41
|
-
return document.body.removeChild(t),{width:n,height:i}}(),s="erd_scroll_detection_container"
|
|
42
|
-
function l(e){!function(e,t,n){if(!e.getElementById(t)){var i=n+"_animation",r="/* Created by the element-resize-detector library. */\n"
|
|
43
|
-
r+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",r+=".erd_scroll_detection_container_animation_active { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",r+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(t){e.head.appendChild(t)}
|
|
44
|
-
var r=e.createElement("style")
|
|
45
|
-
r.innerHTML=n,r.id=t,i(r)}(r+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function c(t){var n=e.important?" !important; ":"; "
|
|
46
|
-
return(t.join(n)+n).trim()}function d(e,n,i){if(e.addEventListener)e.addEventListener(n,i)
|
|
47
|
-
else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.")
|
|
48
|
-
e.attachEvent("on"+n,i)}}function u(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i)
|
|
49
|
-
else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.")
|
|
50
|
-
e.detachEvent("on"+n,i)}}function f(e){return r(e).container.childNodes[0].childNodes[0].childNodes[0]}function h(e){return r(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,u){function p(){if(e.debug){var n=Array.prototype.slice.call(arguments)
|
|
51
|
-
if(n.unshift(o.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n)
|
|
52
|
-
else for(var i=0;i<n.length;i++)t.log(n[i])}}function m(e){var t=r(e).container.childNodes[0],n=window.getComputedStyle(t)
|
|
53
|
-
return!n.width||-1===n.width.indexOf("px")}function g(){var e=window.getComputedStyle(l),t={}
|
|
54
|
-
return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(p("storeStyle invoked."),r(l)){var e=g()
|
|
55
|
-
r(l).style=e}else p("Aborting because element has been uninstalled")}function b(e,t,n){r(e).lastWidth=t,r(e).lastHeight=n}function y(){return 2*a.width+1}function w(){return 2*a.height+1}function x(e){return e+10+y()}function E(e){return e+10+w()}function S(e,t,n){var i=f(e),r=h(e),o=x(t),a=E(n),s=function(e){return 2*e+y()}(t),l=function(e){return 2*e+w()}(n)
|
|
56
|
-
i.scrollLeft=o,i.scrollTop=a,r.scrollLeft=s,r.scrollTop=l}function _(){var e=r(l).container
|
|
57
|
-
if(!e){(e=document.createElement("div")).className=s,e.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),l.appendChild(e)
|
|
58
|
-
var t=function(){r(l).onRendered&&r(l).onRendered()}
|
|
59
|
-
d(e,"animationstart",t),r(l).onAnimationStart=t}return e}function A(){if(p("Injecting elements"),r(l)){!function(){var n=r(l).style
|
|
60
|
-
if("static"===n.position){l.style.setProperty("position","relative",e.important?"important":"")
|
|
61
|
-
var i=function(e,t,n,i){var r=n[i]
|
|
62
|
-
"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)}
|
|
63
|
-
i(t,l,n,"top"),i(t,l,n,"right"),i(t,l,n,"bottom"),i(t,l,n,"left")}}()
|
|
64
|
-
var n=r(l).container
|
|
65
|
-
n||(n=_())
|
|
66
|
-
var i,o,u,f,h=a.width,m=a.height,g=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(i=(i=-(1+h))?i+"px":"0"),"top: "+(o=(o=-(1+m))?o+"px":"0"),"right: "+(f=(f=-h)?f+"px":"0"),"bottom: "+(u=(u=-m)?u+"px":"0")])),b=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=c(["position: absolute","left: 0","top: 0"]),x=c(["position: absolute","width: 200%","height: 200%"]),E=document.createElement("div"),S=document.createElement("div"),A=document.createElement("div"),k=document.createElement("div"),z=document.createElement("div"),D=document.createElement("div")
|
|
67
|
-
E.dir="ltr",E.style.cssText=g,E.className=s,S.className=s,S.style.cssText=v,A.style.cssText=b,k.style.cssText=w,z.style.cssText=y,D.style.cssText=x,A.appendChild(k),z.appendChild(D),S.appendChild(A),S.appendChild(z),E.appendChild(S),n.appendChild(E),d(A,"scroll",T),d(z,"scroll",I),r(l).onExpandScroll=T,r(l).onShrinkScroll=I}else p("Aborting because element has been uninstalled")
|
|
68
|
-
function T(){r(l).onExpand&&r(l).onExpand()}function I(){r(l).onShrink&&r(l).onShrink()}}function k(){function a(t,n,i){var r=function(e){return f(e).childNodes[0]}(t),o=x(n),a=E(i)
|
|
69
|
-
r.style.setProperty("width",o+"px",e.important?"important":""),r.style.setProperty("height",a+"px",e.important?"important":"")}function s(i){var s=l.offsetWidth,d=l.offsetHeight,u=s!==r(l).lastWidth||d!==r(l).lastHeight
|
|
70
|
-
p("Storing current size",s,d),b(l,s,d),n.add(0,(function(){if(u)if(r(l))if(c()){if(e.debug){var n=l.offsetWidth,i=l.offsetHeight
|
|
71
|
-
n===s&&i===d||t.warn(o.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,d)}else p("Aborting because element container has not been initialized")
|
|
72
|
-
else p("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?c()?S(l,s,d):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})),u&&i&&n.add(2,(function(){r(l)?c()?i():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}))}function c(){return!!r(l).container}function d(){p("notifyListenersIfNeeded invoked")
|
|
73
|
-
var e=r(l)
|
|
74
|
-
return void 0===r(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void i(r(l).listeners,(function(e){e(l)})))}function u(){p("Scroll detected."),m(l)?p("Scroll event fired while unrendered. Ignoring..."):s(d)}if(p("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(p("startanimation triggered."),m(l))p("Ignoring since element is still unrendered...")
|
|
75
|
-
else{p("Element rendered.")
|
|
76
|
-
var e=f(l),t=h(l)
|
|
77
|
-
0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(d))}},r(l).onExpand=u,r(l).onShrink=u
|
|
78
|
-
var g=r(l).style
|
|
79
|
-
a(l,g.width,g.height)}else p("Aborting because element has been uninstalled")}function z(){if(p("finalizeDomMutation invoked."),r(l)){var e=r(l).style
|
|
80
|
-
b(l,e.width,e.height),S(l,e.width,e.height)}else p("Aborting because element has been uninstalled")}function D(){u(l)}function T(){var e
|
|
81
|
-
p("Installing..."),r(l).listeners=[],e=g(),r(l).startSize={width:e.width,height:e.height},p("Element start size",r(l).startSize),n.add(0,v),n.add(1,A),n.add(2,k),n.add(3,z),n.add(4,D)}u||(u=l,l=e,e=null),e=e||{},p("Making detectable..."),function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e)
|
|
82
|
-
return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(l)?(p("Element is detached"),_(),p("Waiting until element is attached..."),r(l).onRendered=function(){p("Element is now attached"),T()}):T()},addListener:function(e,t){if(!r(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.")
|
|
83
|
-
r(e).listeners.push(t)},uninstall:function(e){var t=r(e)
|
|
84
|
-
t&&(t.onExpandScroll&&u(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&u(h(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&u(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},923:(e,t,n)=>{"use strict"
|
|
85
|
-
var i=n(785).forEach,r=n(234),o=n(382),a=n(383),s=n(318),l=n(962),c=n(422),d=n(62),u=n(510),f=n(325),h=n(659)
|
|
86
|
-
function p(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e
|
|
87
|
-
var t=[]
|
|
88
|
-
return i(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function v(e,t,n){var i=e[t]
|
|
89
|
-
return null==i&&void 0!==n?n:i}e.exports=function(e){var t
|
|
90
|
-
if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set}
|
|
91
|
-
else{var n=a(),b=s({idGenerator:n,stateHandler:u})
|
|
92
|
-
t=b}var y=e.reporter
|
|
93
|
-
y||(y=l(!1===y))
|
|
94
|
-
var w=v(e,"batchProcessor",d({reporter:y})),x={}
|
|
95
|
-
x.callOnAdd=!!v(e,"callOnAdd",!0),x.debug=!!v(e,"debug",!1)
|
|
96
|
-
var E,S=o(t),_=r({stateHandler:u}),A=v(e,"strategy","object"),k=v(e,"important",!1),z={reporter:y,batchProcessor:w,stateHandler:u,idHandler:t,important:k}
|
|
97
|
-
if("scroll"===A&&(c.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),A="object"):c.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),A="object")),"scroll"===A)E=h(z)
|
|
98
|
-
else{if("object"!==A)throw new Error("Invalid strategy name: "+A)
|
|
99
|
-
E=f(z)}var D={}
|
|
100
|
-
return{listenTo:function(e,n,r){function o(e){var t=S.get(e)
|
|
101
|
-
i(t,(function(t){t(e)}))}function a(e,t,n){S.add(t,n),e&&n(t)}if(r||(r=n,n=e,e={}),!n)throw new Error("At least one element required.")
|
|
102
|
-
if(!r)throw new Error("Listener required.")
|
|
103
|
-
if(g(n))n=[n]
|
|
104
|
-
else{if(!p(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.")
|
|
105
|
-
n=m(n)}var s=0,l=v(e,"callOnAdd",x.callOnAdd),c=v(e,"onReady",(function(){})),d=v(e,"debug",x.debug)
|
|
106
|
-
i(n,(function(e){u.getState(e)||(u.initState(e),t.set(e))
|
|
107
|
-
var f=t.get(e)
|
|
108
|
-
if(d&&y.log("Attaching listener to element",f,e),!_.isDetectable(e))return d&&y.log(f,"Not detectable."),_.isBusy(e)?(d&&y.log(f,"System busy making it detectable"),a(l,e,r),D[f]=D[f]||[],void D[f].push((function(){++s===n.length&&c()}))):(d&&y.log(f,"Making detectable..."),_.markBusy(e,!0),E.makeDetectable({debug:d,important:k},e,(function(e){if(d&&y.log(f,"onElementDetectable"),u.getState(e)){_.markAsDetectable(e),_.markBusy(e,!1),E.addListener(e,o),a(l,e,r)
|
|
109
|
-
var t=u.getState(e)
|
|
110
|
-
if(t&&t.startSize){var h=e.offsetWidth,p=e.offsetHeight
|
|
111
|
-
t.startSize.width===h&&t.startSize.height===p||o(e)}D[f]&&i(D[f],(function(e){e()}))}else d&&y.log(f,"Element uninstalled before being detectable.")
|
|
112
|
-
delete D[f],++s===n.length&&c()})))
|
|
113
|
-
d&&y.log(f,"Already detecable, adding listener."),a(l,e,r),s++})),s===n.length&&c()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(e){if(!e)return y.error("At least one element is required.")
|
|
114
|
-
if(g(e))e=[e]
|
|
115
|
-
else{if(!p(e))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.")
|
|
116
|
-
e=m(e)}i(e,(function(e){S.removeAllListeners(e),E.uninstall(e),u.cleanState(e)}))},initDocument:function(e){E.initDocument&&E.initDocument(e)}}}},234:e=>{"use strict"
|
|
117
|
-
e.exports=function(e){var t=e.stateHandler.getState
|
|
118
|
-
return{isDetectable:function(e){var n=t(e)
|
|
119
|
-
return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},383:e=>{"use strict"
|
|
120
|
-
e.exports=function(){var e=1
|
|
121
|
-
return{generate:function(){return e++}}}},318:e=>{"use strict"
|
|
122
|
-
e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState
|
|
123
|
-
return{get:function(e){var t=n(e)
|
|
124
|
-
return t&&void 0!==t.id?t.id:null},set:function(e){var i=n(e)
|
|
125
|
-
if(!i)throw new Error("setId required the element to have a resize detection state.")
|
|
126
|
-
var r=t.generate()
|
|
127
|
-
return i.id=r,r}}}},382:e=>{"use strict"
|
|
128
|
-
e.exports=function(e){var t={}
|
|
129
|
-
function n(n){var i=e.get(n)
|
|
130
|
-
return void 0===i?[]:t[i]||[]}return{get:n,add:function(n,i){var r=e.get(n)
|
|
131
|
-
t[r]||(t[r]=[]),t[r].push(i)},removeListener:function(e,t){for(var i=n(e),r=0,o=i.length;r<o;++r)if(i[r]===t){i.splice(r,1)
|
|
132
|
-
break}},removeAllListeners:function(e){var t=n(e)
|
|
133
|
-
t&&(t.length=0)}}}},962:e=>{"use strict"
|
|
134
|
-
e.exports=function(e){function t(){}var n={log:t,warn:t,error:t}
|
|
135
|
-
if(!e&&window.console){var i=function(e,t){e[t]=function(){var e=console[t]
|
|
136
|
-
if(e.apply)e.apply(console,arguments)
|
|
137
|
-
else for(var n=0;n<arguments.length;n++)e(arguments[n])}}
|
|
138
|
-
i(n,"log"),i(n,"warn"),i(n,"error")}return n}},510:e=>{"use strict"
|
|
139
|
-
function t(e){return e._erd}e.exports={initState:function(e){return e._erd={},t(e)},getState:t,cleanState:function(e){delete e._erd}}},984:(e,t,n)=>{var i,r
|
|
140
|
-
e.exports=(i=_eai_d,r=_eai_r,window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},void i("element-resize-detector",[],(function(){return n(923)})))},384:function(e,t){window._eai_r=require,window._eai_d=define}},t={}
|
|
141
|
-
function n(i){var r=t[i]
|
|
142
|
-
if(void 0!==r)return r.exports
|
|
143
|
-
var o=t[i]={exports:{}}
|
|
144
|
-
return e[i].call(o.exports,o,o.exports,n),o.exports}n(384)
|
|
145
|
-
var i=n(984)
|
|
146
|
-
__ember_auto_import__=i})()
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
var __ember_auto_import__;(()=>{var e={62:(e,t,n)=>{"use strict"
|
|
2
|
-
var i=n(389)
|
|
3
|
-
function r(){var e={},t=0,n=0,i=0
|
|
4
|
-
return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),e[r]||(e[r]=[]),e[r].push(o),t++},process:function(){for(var t=i;t<=n;t++)for(var r=e[t],o=0;o<r.length;o++)(0,r[o])()},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=i.getOption(e,"async",!0),o=i.getOption(e,"auto",!0)
|
|
5
|
-
o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0)
|
|
6
|
-
var a,s=r(),l=!1
|
|
7
|
-
function c(){for(l=!0;s.size();){var e=s
|
|
8
|
-
s=r(),e.process()}l=!1}function d(){a=setTimeout(c,0)}return{add:function(e,t){!l&&o&&n&&0===s.size()&&d(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?d():c())}}}},389:e=>{"use strict";(e.exports={}).getOption=function(e,t,n){var i=e[t]
|
|
9
|
-
return null==i&&void 0!==n?n:i}},422:e=>{"use strict"
|
|
10
|
-
var t=e.exports={}
|
|
11
|
-
t.isIE=function(e){return!(-1===(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===t.indexOf("trident")&&-1===t.indexOf(" edge/")||e&&e!==function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i")
|
|
12
|
-
do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0])
|
|
13
|
-
return e>4?e:void 0}())
|
|
14
|
-
var t},t.isLegacyOpera=function(){return!!window.opera}},785:e=>{"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var i=t(e[n])
|
|
15
|
-
if(i)return i}}},325:(e,t,n)=>{"use strict"
|
|
16
|
-
var i=n(422)
|
|
17
|
-
e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState
|
|
18
|
-
if(!t)throw new Error("Missing required dependency: reporter.")
|
|
19
|
-
function o(t){var n=e.important?" !important; ":"; "
|
|
20
|
-
return(t.join(n)+n).trim()}function a(e){return r(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,i.isIE(8)?s(a):function(a,s){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,d=window.getComputedStyle(a),u=a.offsetWidth,f=a.offsetHeight
|
|
21
|
-
function h(){function n(){if("static"===d.position){a.style.setProperty("position","relative",e.important?"important":"")
|
|
22
|
-
var n=function(t,n,i,r){var o=i[r]
|
|
23
|
-
"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",e.important?"important":""))}
|
|
24
|
-
n(t,a,d,"top"),n(t,a,d,"right"),n(t,a,d,"bottom"),n(t,a,d,"left")}}""!==d.position&&(n(),c=!0)
|
|
25
|
-
var o=document.createElement("object")
|
|
26
|
-
o.style.cssText=l,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){c||n(),function e(t,n){if(!t.contentDocument){var i=r(t)
|
|
27
|
-
return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},i.isIE()||(o.data="about:blank"),r(a)&&(a.appendChild(o),r(a).object=o,i.isIE()&&(o.data="about:blank"))}r(a).startSize={width:u,height:f},n?n.add(h):h()}(a,s)},addListener:function(e,t){function n(){t(e)}if(i.isIE(8))r(e).object={proxy:n},e.attachEvent("onresize",n)
|
|
28
|
-
else{var o=a(e)
|
|
29
|
-
if(!o)throw new Error("Element is not detectable by this strategy.")
|
|
30
|
-
o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(r(e)){var t=a(e)
|
|
31
|
-
t&&(i.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),r(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(e).checkForObjectDocumentTimeoutId),delete r(e).object)}}}}},659:(e,t,n)=>{"use strict"
|
|
32
|
-
var i=n(785).forEach
|
|
33
|
-
e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler)
|
|
34
|
-
if(!n)throw new Error("Missing required dependency: batchProcessor")
|
|
35
|
-
if(!t)throw new Error("Missing required dependency: reporter.")
|
|
36
|
-
var a=function(){var e=document.createElement("div")
|
|
37
|
-
e.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"])
|
|
38
|
-
var t=document.createElement("div")
|
|
39
|
-
t.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild)
|
|
40
|
-
var n=500-t.clientWidth,i=500-t.clientHeight
|
|
41
|
-
return document.body.removeChild(t),{width:n,height:i}}(),s="erd_scroll_detection_container"
|
|
42
|
-
function l(e){!function(e,t,n){if(!e.getElementById(t)){var i=n+"_animation",r="/* Created by the element-resize-detector library. */\n"
|
|
43
|
-
r+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",r+=".erd_scroll_detection_container_animation_active { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",r+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(t){e.head.appendChild(t)}
|
|
44
|
-
var r=e.createElement("style")
|
|
45
|
-
r.innerHTML=n,r.id=t,i(r)}(r+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function c(t){var n=e.important?" !important; ":"; "
|
|
46
|
-
return(t.join(n)+n).trim()}function d(e,n,i){if(e.addEventListener)e.addEventListener(n,i)
|
|
47
|
-
else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.")
|
|
48
|
-
e.attachEvent("on"+n,i)}}function u(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i)
|
|
49
|
-
else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.")
|
|
50
|
-
e.detachEvent("on"+n,i)}}function f(e){return r(e).container.childNodes[0].childNodes[0].childNodes[0]}function h(e){return r(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,u){function p(){if(e.debug){var n=Array.prototype.slice.call(arguments)
|
|
51
|
-
if(n.unshift(o.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n)
|
|
52
|
-
else for(var i=0;i<n.length;i++)t.log(n[i])}}function m(e){var t=r(e).container.childNodes[0],n=window.getComputedStyle(t)
|
|
53
|
-
return!n.width||-1===n.width.indexOf("px")}function g(){var e=window.getComputedStyle(l),t={}
|
|
54
|
-
return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(p("storeStyle invoked."),r(l)){var e=g()
|
|
55
|
-
r(l).style=e}else p("Aborting because element has been uninstalled")}function b(e,t,n){r(e).lastWidth=t,r(e).lastHeight=n}function y(){return 2*a.width+1}function w(){return 2*a.height+1}function x(e){return e+10+y()}function E(e){return e+10+w()}function S(e,t,n){var i=f(e),r=h(e),o=x(t),a=E(n),s=function(e){return 2*e+y()}(t),l=function(e){return 2*e+w()}(n)
|
|
56
|
-
i.scrollLeft=o,i.scrollTop=a,r.scrollLeft=s,r.scrollTop=l}function _(){var e=r(l).container
|
|
57
|
-
if(!e){(e=document.createElement("div")).className=s,e.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),l.appendChild(e)
|
|
58
|
-
var t=function(){r(l).onRendered&&r(l).onRendered()}
|
|
59
|
-
d(e,"animationstart",t),r(l).onAnimationStart=t}return e}function A(){if(p("Injecting elements"),r(l)){!function(){var n=r(l).style
|
|
60
|
-
if("static"===n.position){l.style.setProperty("position","relative",e.important?"important":"")
|
|
61
|
-
var i=function(e,t,n,i){var r=n[i]
|
|
62
|
-
"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)}
|
|
63
|
-
i(t,l,n,"top"),i(t,l,n,"right"),i(t,l,n,"bottom"),i(t,l,n,"left")}}()
|
|
64
|
-
var n=r(l).container
|
|
65
|
-
n||(n=_())
|
|
66
|
-
var i,o,u,f,h=a.width,m=a.height,g=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(i=(i=-(1+h))?i+"px":"0"),"top: "+(o=(o=-(1+m))?o+"px":"0"),"right: "+(f=(f=-h)?f+"px":"0"),"bottom: "+(u=(u=-m)?u+"px":"0")])),b=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=c(["position: absolute","left: 0","top: 0"]),x=c(["position: absolute","width: 200%","height: 200%"]),E=document.createElement("div"),S=document.createElement("div"),A=document.createElement("div"),k=document.createElement("div"),z=document.createElement("div"),D=document.createElement("div")
|
|
67
|
-
E.dir="ltr",E.style.cssText=g,E.className=s,S.className=s,S.style.cssText=v,A.style.cssText=b,k.style.cssText=w,z.style.cssText=y,D.style.cssText=x,A.appendChild(k),z.appendChild(D),S.appendChild(A),S.appendChild(z),E.appendChild(S),n.appendChild(E),d(A,"scroll",T),d(z,"scroll",I),r(l).onExpandScroll=T,r(l).onShrinkScroll=I}else p("Aborting because element has been uninstalled")
|
|
68
|
-
function T(){r(l).onExpand&&r(l).onExpand()}function I(){r(l).onShrink&&r(l).onShrink()}}function k(){function a(t,n,i){var r=function(e){return f(e).childNodes[0]}(t),o=x(n),a=E(i)
|
|
69
|
-
r.style.setProperty("width",o+"px",e.important?"important":""),r.style.setProperty("height",a+"px",e.important?"important":"")}function s(i){var s=l.offsetWidth,d=l.offsetHeight,u=s!==r(l).lastWidth||d!==r(l).lastHeight
|
|
70
|
-
p("Storing current size",s,d),b(l,s,d),n.add(0,(function(){if(u)if(r(l))if(c()){if(e.debug){var n=l.offsetWidth,i=l.offsetHeight
|
|
71
|
-
n===s&&i===d||t.warn(o.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,d)}else p("Aborting because element container has not been initialized")
|
|
72
|
-
else p("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?c()?S(l,s,d):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})),u&&i&&n.add(2,(function(){r(l)?c()?i():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}))}function c(){return!!r(l).container}function d(){p("notifyListenersIfNeeded invoked")
|
|
73
|
-
var e=r(l)
|
|
74
|
-
return void 0===r(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void i(r(l).listeners,(function(e){e(l)})))}function u(){p("Scroll detected."),m(l)?p("Scroll event fired while unrendered. Ignoring..."):s(d)}if(p("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(p("startanimation triggered."),m(l))p("Ignoring since element is still unrendered...")
|
|
75
|
-
else{p("Element rendered.")
|
|
76
|
-
var e=f(l),t=h(l)
|
|
77
|
-
0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(d))}},r(l).onExpand=u,r(l).onShrink=u
|
|
78
|
-
var g=r(l).style
|
|
79
|
-
a(l,g.width,g.height)}else p("Aborting because element has been uninstalled")}function z(){if(p("finalizeDomMutation invoked."),r(l)){var e=r(l).style
|
|
80
|
-
b(l,e.width,e.height),S(l,e.width,e.height)}else p("Aborting because element has been uninstalled")}function D(){u(l)}function T(){var e
|
|
81
|
-
p("Installing..."),r(l).listeners=[],e=g(),r(l).startSize={width:e.width,height:e.height},p("Element start size",r(l).startSize),n.add(0,v),n.add(1,A),n.add(2,k),n.add(3,z),n.add(4,D)}u||(u=l,l=e,e=null),e=e||{},p("Making detectable..."),function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e)
|
|
82
|
-
return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(l)?(p("Element is detached"),_(),p("Waiting until element is attached..."),r(l).onRendered=function(){p("Element is now attached"),T()}):T()},addListener:function(e,t){if(!r(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.")
|
|
83
|
-
r(e).listeners.push(t)},uninstall:function(e){var t=r(e)
|
|
84
|
-
t&&(t.onExpandScroll&&u(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&u(h(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&u(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},923:(e,t,n)=>{"use strict"
|
|
85
|
-
var i=n(785).forEach,r=n(234),o=n(382),a=n(383),s=n(318),l=n(962),c=n(422),d=n(62),u=n(510),f=n(325),h=n(659)
|
|
86
|
-
function p(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e
|
|
87
|
-
var t=[]
|
|
88
|
-
return i(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function v(e,t,n){var i=e[t]
|
|
89
|
-
return null==i&&void 0!==n?n:i}e.exports=function(e){var t
|
|
90
|
-
if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set}
|
|
91
|
-
else{var n=a(),b=s({idGenerator:n,stateHandler:u})
|
|
92
|
-
t=b}var y=e.reporter
|
|
93
|
-
y||(y=l(!1===y))
|
|
94
|
-
var w=v(e,"batchProcessor",d({reporter:y})),x={}
|
|
95
|
-
x.callOnAdd=!!v(e,"callOnAdd",!0),x.debug=!!v(e,"debug",!1)
|
|
96
|
-
var E,S=o(t),_=r({stateHandler:u}),A=v(e,"strategy","object"),k=v(e,"important",!1),z={reporter:y,batchProcessor:w,stateHandler:u,idHandler:t,important:k}
|
|
97
|
-
if("scroll"===A&&(c.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),A="object"):c.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),A="object")),"scroll"===A)E=h(z)
|
|
98
|
-
else{if("object"!==A)throw new Error("Invalid strategy name: "+A)
|
|
99
|
-
E=f(z)}var D={}
|
|
100
|
-
return{listenTo:function(e,n,r){function o(e){var t=S.get(e)
|
|
101
|
-
i(t,(function(t){t(e)}))}function a(e,t,n){S.add(t,n),e&&n(t)}if(r||(r=n,n=e,e={}),!n)throw new Error("At least one element required.")
|
|
102
|
-
if(!r)throw new Error("Listener required.")
|
|
103
|
-
if(g(n))n=[n]
|
|
104
|
-
else{if(!p(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.")
|
|
105
|
-
n=m(n)}var s=0,l=v(e,"callOnAdd",x.callOnAdd),c=v(e,"onReady",(function(){})),d=v(e,"debug",x.debug)
|
|
106
|
-
i(n,(function(e){u.getState(e)||(u.initState(e),t.set(e))
|
|
107
|
-
var f=t.get(e)
|
|
108
|
-
if(d&&y.log("Attaching listener to element",f,e),!_.isDetectable(e))return d&&y.log(f,"Not detectable."),_.isBusy(e)?(d&&y.log(f,"System busy making it detectable"),a(l,e,r),D[f]=D[f]||[],void D[f].push((function(){++s===n.length&&c()}))):(d&&y.log(f,"Making detectable..."),_.markBusy(e,!0),E.makeDetectable({debug:d,important:k},e,(function(e){if(d&&y.log(f,"onElementDetectable"),u.getState(e)){_.markAsDetectable(e),_.markBusy(e,!1),E.addListener(e,o),a(l,e,r)
|
|
109
|
-
var t=u.getState(e)
|
|
110
|
-
if(t&&t.startSize){var h=e.offsetWidth,p=e.offsetHeight
|
|
111
|
-
t.startSize.width===h&&t.startSize.height===p||o(e)}D[f]&&i(D[f],(function(e){e()}))}else d&&y.log(f,"Element uninstalled before being detectable.")
|
|
112
|
-
delete D[f],++s===n.length&&c()})))
|
|
113
|
-
d&&y.log(f,"Already detecable, adding listener."),a(l,e,r),s++})),s===n.length&&c()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(e){if(!e)return y.error("At least one element is required.")
|
|
114
|
-
if(g(e))e=[e]
|
|
115
|
-
else{if(!p(e))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.")
|
|
116
|
-
e=m(e)}i(e,(function(e){S.removeAllListeners(e),E.uninstall(e),u.cleanState(e)}))},initDocument:function(e){E.initDocument&&E.initDocument(e)}}}},234:e=>{"use strict"
|
|
117
|
-
e.exports=function(e){var t=e.stateHandler.getState
|
|
118
|
-
return{isDetectable:function(e){var n=t(e)
|
|
119
|
-
return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},383:e=>{"use strict"
|
|
120
|
-
e.exports=function(){var e=1
|
|
121
|
-
return{generate:function(){return e++}}}},318:e=>{"use strict"
|
|
122
|
-
e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState
|
|
123
|
-
return{get:function(e){var t=n(e)
|
|
124
|
-
return t&&void 0!==t.id?t.id:null},set:function(e){var i=n(e)
|
|
125
|
-
if(!i)throw new Error("setId required the element to have a resize detection state.")
|
|
126
|
-
var r=t.generate()
|
|
127
|
-
return i.id=r,r}}}},382:e=>{"use strict"
|
|
128
|
-
e.exports=function(e){var t={}
|
|
129
|
-
function n(n){var i=e.get(n)
|
|
130
|
-
return void 0===i?[]:t[i]||[]}return{get:n,add:function(n,i){var r=e.get(n)
|
|
131
|
-
t[r]||(t[r]=[]),t[r].push(i)},removeListener:function(e,t){for(var i=n(e),r=0,o=i.length;r<o;++r)if(i[r]===t){i.splice(r,1)
|
|
132
|
-
break}},removeAllListeners:function(e){var t=n(e)
|
|
133
|
-
t&&(t.length=0)}}}},962:e=>{"use strict"
|
|
134
|
-
e.exports=function(e){function t(){}var n={log:t,warn:t,error:t}
|
|
135
|
-
if(!e&&window.console){var i=function(e,t){e[t]=function(){var e=console[t]
|
|
136
|
-
if(e.apply)e.apply(console,arguments)
|
|
137
|
-
else for(var n=0;n<arguments.length;n++)e(arguments[n])}}
|
|
138
|
-
i(n,"log"),i(n,"warn"),i(n,"error")}return n}},510:e=>{"use strict"
|
|
139
|
-
function t(e){return e._erd}e.exports={initState:function(e){return e._erd={},t(e)},getState:t,cleanState:function(e){delete e._erd}}},984:(e,t,n)=>{var i,r
|
|
140
|
-
e.exports=(i=_eai_d,r=_eai_r,window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},void i("element-resize-detector",[],(function(){return n(923)})))},384:function(e,t){window._eai_r=require,window._eai_d=define}},t={}
|
|
141
|
-
function n(i){var r=t[i]
|
|
142
|
-
if(void 0!==r)return r.exports
|
|
143
|
-
var o=t[i]={exports:{}}
|
|
144
|
-
return e[i].call(o.exports,o,o.exports,n),o.exports}n(384)
|
|
145
|
-
var i=n(984)
|
|
146
|
-
__ember_auto_import__=i})()
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
var __ember_auto_import__;(()=>{var e={62:(e,t,n)=>{"use strict"
|
|
2
|
-
var i=n(389)
|
|
3
|
-
function r(){var e={},t=0,n=0,i=0
|
|
4
|
-
return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),e[r]||(e[r]=[]),e[r].push(o),t++},process:function(){for(var t=i;t<=n;t++)for(var r=e[t],o=0;o<r.length;o++)(0,r[o])()},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=i.getOption(e,"async",!0),o=i.getOption(e,"auto",!0)
|
|
5
|
-
o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0)
|
|
6
|
-
var a,s=r(),l=!1
|
|
7
|
-
function c(){for(l=!0;s.size();){var e=s
|
|
8
|
-
s=r(),e.process()}l=!1}function d(){a=setTimeout(c,0)}return{add:function(e,t){!l&&o&&n&&0===s.size()&&d(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?d():c())}}}},389:e=>{"use strict";(e.exports={}).getOption=function(e,t,n){var i=e[t]
|
|
9
|
-
return null==i&&void 0!==n?n:i}},422:e=>{"use strict"
|
|
10
|
-
var t=e.exports={}
|
|
11
|
-
t.isIE=function(e){return!(-1===(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===t.indexOf("trident")&&-1===t.indexOf(" edge/")||e&&e!==function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i")
|
|
12
|
-
do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0])
|
|
13
|
-
return e>4?e:void 0}())
|
|
14
|
-
var t},t.isLegacyOpera=function(){return!!window.opera}},785:e=>{"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var i=t(e[n])
|
|
15
|
-
if(i)return i}}},325:(e,t,n)=>{"use strict"
|
|
16
|
-
var i=n(422)
|
|
17
|
-
e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState
|
|
18
|
-
if(!t)throw new Error("Missing required dependency: reporter.")
|
|
19
|
-
function o(t){var n=e.important?" !important; ":"; "
|
|
20
|
-
return(t.join(n)+n).trim()}function a(e){return r(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,i.isIE(8)?s(a):function(a,s){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,d=window.getComputedStyle(a),u=a.offsetWidth,f=a.offsetHeight
|
|
21
|
-
function h(){function n(){if("static"===d.position){a.style.setProperty("position","relative",e.important?"important":"")
|
|
22
|
-
var n=function(t,n,i,r){var o=i[r]
|
|
23
|
-
"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",e.important?"important":""))}
|
|
24
|
-
n(t,a,d,"top"),n(t,a,d,"right"),n(t,a,d,"bottom"),n(t,a,d,"left")}}""!==d.position&&(n(),c=!0)
|
|
25
|
-
var o=document.createElement("object")
|
|
26
|
-
o.style.cssText=l,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){c||n(),function e(t,n){if(!t.contentDocument){var i=r(t)
|
|
27
|
-
return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},i.isIE()||(o.data="about:blank"),r(a)&&(a.appendChild(o),r(a).object=o,i.isIE()&&(o.data="about:blank"))}r(a).startSize={width:u,height:f},n?n.add(h):h()}(a,s)},addListener:function(e,t){function n(){t(e)}if(i.isIE(8))r(e).object={proxy:n},e.attachEvent("onresize",n)
|
|
28
|
-
else{var o=a(e)
|
|
29
|
-
if(!o)throw new Error("Element is not detectable by this strategy.")
|
|
30
|
-
o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(r(e)){var t=a(e)
|
|
31
|
-
t&&(i.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),r(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(e).checkForObjectDocumentTimeoutId),delete r(e).object)}}}}},659:(e,t,n)=>{"use strict"
|
|
32
|
-
var i=n(785).forEach
|
|
33
|
-
e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler)
|
|
34
|
-
if(!n)throw new Error("Missing required dependency: batchProcessor")
|
|
35
|
-
if(!t)throw new Error("Missing required dependency: reporter.")
|
|
36
|
-
var a=function(){var e=document.createElement("div")
|
|
37
|
-
e.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"])
|
|
38
|
-
var t=document.createElement("div")
|
|
39
|
-
t.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild)
|
|
40
|
-
var n=500-t.clientWidth,i=500-t.clientHeight
|
|
41
|
-
return document.body.removeChild(t),{width:n,height:i}}(),s="erd_scroll_detection_container"
|
|
42
|
-
function l(e){!function(e,t,n){if(!e.getElementById(t)){var i=n+"_animation",r="/* Created by the element-resize-detector library. */\n"
|
|
43
|
-
r+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",r+=".erd_scroll_detection_container_animation_active { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",r+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(t){e.head.appendChild(t)}
|
|
44
|
-
var r=e.createElement("style")
|
|
45
|
-
r.innerHTML=n,r.id=t,i(r)}(r+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function c(t){var n=e.important?" !important; ":"; "
|
|
46
|
-
return(t.join(n)+n).trim()}function d(e,n,i){if(e.addEventListener)e.addEventListener(n,i)
|
|
47
|
-
else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.")
|
|
48
|
-
e.attachEvent("on"+n,i)}}function u(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i)
|
|
49
|
-
else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.")
|
|
50
|
-
e.detachEvent("on"+n,i)}}function f(e){return r(e).container.childNodes[0].childNodes[0].childNodes[0]}function h(e){return r(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,u){function p(){if(e.debug){var n=Array.prototype.slice.call(arguments)
|
|
51
|
-
if(n.unshift(o.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n)
|
|
52
|
-
else for(var i=0;i<n.length;i++)t.log(n[i])}}function m(e){var t=r(e).container.childNodes[0],n=window.getComputedStyle(t)
|
|
53
|
-
return!n.width||-1===n.width.indexOf("px")}function g(){var e=window.getComputedStyle(l),t={}
|
|
54
|
-
return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(p("storeStyle invoked."),r(l)){var e=g()
|
|
55
|
-
r(l).style=e}else p("Aborting because element has been uninstalled")}function b(e,t,n){r(e).lastWidth=t,r(e).lastHeight=n}function y(){return 2*a.width+1}function w(){return 2*a.height+1}function x(e){return e+10+y()}function E(e){return e+10+w()}function S(e,t,n){var i=f(e),r=h(e),o=x(t),a=E(n),s=function(e){return 2*e+y()}(t),l=function(e){return 2*e+w()}(n)
|
|
56
|
-
i.scrollLeft=o,i.scrollTop=a,r.scrollLeft=s,r.scrollTop=l}function _(){var e=r(l).container
|
|
57
|
-
if(!e){(e=document.createElement("div")).className=s,e.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),l.appendChild(e)
|
|
58
|
-
var t=function(){r(l).onRendered&&r(l).onRendered()}
|
|
59
|
-
d(e,"animationstart",t),r(l).onAnimationStart=t}return e}function A(){if(p("Injecting elements"),r(l)){!function(){var n=r(l).style
|
|
60
|
-
if("static"===n.position){l.style.setProperty("position","relative",e.important?"important":"")
|
|
61
|
-
var i=function(e,t,n,i){var r=n[i]
|
|
62
|
-
"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)}
|
|
63
|
-
i(t,l,n,"top"),i(t,l,n,"right"),i(t,l,n,"bottom"),i(t,l,n,"left")}}()
|
|
64
|
-
var n=r(l).container
|
|
65
|
-
n||(n=_())
|
|
66
|
-
var i,o,u,f,h=a.width,m=a.height,g=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(i=(i=-(1+h))?i+"px":"0"),"top: "+(o=(o=-(1+m))?o+"px":"0"),"right: "+(f=(f=-h)?f+"px":"0"),"bottom: "+(u=(u=-m)?u+"px":"0")])),b=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=c(["position: absolute","left: 0","top: 0"]),x=c(["position: absolute","width: 200%","height: 200%"]),E=document.createElement("div"),S=document.createElement("div"),A=document.createElement("div"),k=document.createElement("div"),z=document.createElement("div"),D=document.createElement("div")
|
|
67
|
-
E.dir="ltr",E.style.cssText=g,E.className=s,S.className=s,S.style.cssText=v,A.style.cssText=b,k.style.cssText=w,z.style.cssText=y,D.style.cssText=x,A.appendChild(k),z.appendChild(D),S.appendChild(A),S.appendChild(z),E.appendChild(S),n.appendChild(E),d(A,"scroll",T),d(z,"scroll",I),r(l).onExpandScroll=T,r(l).onShrinkScroll=I}else p("Aborting because element has been uninstalled")
|
|
68
|
-
function T(){r(l).onExpand&&r(l).onExpand()}function I(){r(l).onShrink&&r(l).onShrink()}}function k(){function a(t,n,i){var r=function(e){return f(e).childNodes[0]}(t),o=x(n),a=E(i)
|
|
69
|
-
r.style.setProperty("width",o+"px",e.important?"important":""),r.style.setProperty("height",a+"px",e.important?"important":"")}function s(i){var s=l.offsetWidth,d=l.offsetHeight,u=s!==r(l).lastWidth||d!==r(l).lastHeight
|
|
70
|
-
p("Storing current size",s,d),b(l,s,d),n.add(0,(function(){if(u)if(r(l))if(c()){if(e.debug){var n=l.offsetWidth,i=l.offsetHeight
|
|
71
|
-
n===s&&i===d||t.warn(o.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,d)}else p("Aborting because element container has not been initialized")
|
|
72
|
-
else p("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?c()?S(l,s,d):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})),u&&i&&n.add(2,(function(){r(l)?c()?i():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}))}function c(){return!!r(l).container}function d(){p("notifyListenersIfNeeded invoked")
|
|
73
|
-
var e=r(l)
|
|
74
|
-
return void 0===r(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void i(r(l).listeners,(function(e){e(l)})))}function u(){p("Scroll detected."),m(l)?p("Scroll event fired while unrendered. Ignoring..."):s(d)}if(p("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(p("startanimation triggered."),m(l))p("Ignoring since element is still unrendered...")
|
|
75
|
-
else{p("Element rendered.")
|
|
76
|
-
var e=f(l),t=h(l)
|
|
77
|
-
0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(d))}},r(l).onExpand=u,r(l).onShrink=u
|
|
78
|
-
var g=r(l).style
|
|
79
|
-
a(l,g.width,g.height)}else p("Aborting because element has been uninstalled")}function z(){if(p("finalizeDomMutation invoked."),r(l)){var e=r(l).style
|
|
80
|
-
b(l,e.width,e.height),S(l,e.width,e.height)}else p("Aborting because element has been uninstalled")}function D(){u(l)}function T(){var e
|
|
81
|
-
p("Installing..."),r(l).listeners=[],e=g(),r(l).startSize={width:e.width,height:e.height},p("Element start size",r(l).startSize),n.add(0,v),n.add(1,A),n.add(2,k),n.add(3,z),n.add(4,D)}u||(u=l,l=e,e=null),e=e||{},p("Making detectable..."),function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e)
|
|
82
|
-
return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(l)?(p("Element is detached"),_(),p("Waiting until element is attached..."),r(l).onRendered=function(){p("Element is now attached"),T()}):T()},addListener:function(e,t){if(!r(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.")
|
|
83
|
-
r(e).listeners.push(t)},uninstall:function(e){var t=r(e)
|
|
84
|
-
t&&(t.onExpandScroll&&u(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&u(h(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&u(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},923:(e,t,n)=>{"use strict"
|
|
85
|
-
var i=n(785).forEach,r=n(234),o=n(382),a=n(383),s=n(318),l=n(962),c=n(422),d=n(62),u=n(510),f=n(325),h=n(659)
|
|
86
|
-
function p(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e
|
|
87
|
-
var t=[]
|
|
88
|
-
return i(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function v(e,t,n){var i=e[t]
|
|
89
|
-
return null==i&&void 0!==n?n:i}e.exports=function(e){var t
|
|
90
|
-
if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set}
|
|
91
|
-
else{var n=a(),b=s({idGenerator:n,stateHandler:u})
|
|
92
|
-
t=b}var y=e.reporter
|
|
93
|
-
y||(y=l(!1===y))
|
|
94
|
-
var w=v(e,"batchProcessor",d({reporter:y})),x={}
|
|
95
|
-
x.callOnAdd=!!v(e,"callOnAdd",!0),x.debug=!!v(e,"debug",!1)
|
|
96
|
-
var E,S=o(t),_=r({stateHandler:u}),A=v(e,"strategy","object"),k=v(e,"important",!1),z={reporter:y,batchProcessor:w,stateHandler:u,idHandler:t,important:k}
|
|
97
|
-
if("scroll"===A&&(c.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),A="object"):c.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),A="object")),"scroll"===A)E=h(z)
|
|
98
|
-
else{if("object"!==A)throw new Error("Invalid strategy name: "+A)
|
|
99
|
-
E=f(z)}var D={}
|
|
100
|
-
return{listenTo:function(e,n,r){function o(e){var t=S.get(e)
|
|
101
|
-
i(t,(function(t){t(e)}))}function a(e,t,n){S.add(t,n),e&&n(t)}if(r||(r=n,n=e,e={}),!n)throw new Error("At least one element required.")
|
|
102
|
-
if(!r)throw new Error("Listener required.")
|
|
103
|
-
if(g(n))n=[n]
|
|
104
|
-
else{if(!p(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.")
|
|
105
|
-
n=m(n)}var s=0,l=v(e,"callOnAdd",x.callOnAdd),c=v(e,"onReady",(function(){})),d=v(e,"debug",x.debug)
|
|
106
|
-
i(n,(function(e){u.getState(e)||(u.initState(e),t.set(e))
|
|
107
|
-
var f=t.get(e)
|
|
108
|
-
if(d&&y.log("Attaching listener to element",f,e),!_.isDetectable(e))return d&&y.log(f,"Not detectable."),_.isBusy(e)?(d&&y.log(f,"System busy making it detectable"),a(l,e,r),D[f]=D[f]||[],void D[f].push((function(){++s===n.length&&c()}))):(d&&y.log(f,"Making detectable..."),_.markBusy(e,!0),E.makeDetectable({debug:d,important:k},e,(function(e){if(d&&y.log(f,"onElementDetectable"),u.getState(e)){_.markAsDetectable(e),_.markBusy(e,!1),E.addListener(e,o),a(l,e,r)
|
|
109
|
-
var t=u.getState(e)
|
|
110
|
-
if(t&&t.startSize){var h=e.offsetWidth,p=e.offsetHeight
|
|
111
|
-
t.startSize.width===h&&t.startSize.height===p||o(e)}D[f]&&i(D[f],(function(e){e()}))}else d&&y.log(f,"Element uninstalled before being detectable.")
|
|
112
|
-
delete D[f],++s===n.length&&c()})))
|
|
113
|
-
d&&y.log(f,"Already detecable, adding listener."),a(l,e,r),s++})),s===n.length&&c()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(e){if(!e)return y.error("At least one element is required.")
|
|
114
|
-
if(g(e))e=[e]
|
|
115
|
-
else{if(!p(e))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.")
|
|
116
|
-
e=m(e)}i(e,(function(e){S.removeAllListeners(e),E.uninstall(e),u.cleanState(e)}))},initDocument:function(e){E.initDocument&&E.initDocument(e)}}}},234:e=>{"use strict"
|
|
117
|
-
e.exports=function(e){var t=e.stateHandler.getState
|
|
118
|
-
return{isDetectable:function(e){var n=t(e)
|
|
119
|
-
return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},383:e=>{"use strict"
|
|
120
|
-
e.exports=function(){var e=1
|
|
121
|
-
return{generate:function(){return e++}}}},318:e=>{"use strict"
|
|
122
|
-
e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState
|
|
123
|
-
return{get:function(e){var t=n(e)
|
|
124
|
-
return t&&void 0!==t.id?t.id:null},set:function(e){var i=n(e)
|
|
125
|
-
if(!i)throw new Error("setId required the element to have a resize detection state.")
|
|
126
|
-
var r=t.generate()
|
|
127
|
-
return i.id=r,r}}}},382:e=>{"use strict"
|
|
128
|
-
e.exports=function(e){var t={}
|
|
129
|
-
function n(n){var i=e.get(n)
|
|
130
|
-
return void 0===i?[]:t[i]||[]}return{get:n,add:function(n,i){var r=e.get(n)
|
|
131
|
-
t[r]||(t[r]=[]),t[r].push(i)},removeListener:function(e,t){for(var i=n(e),r=0,o=i.length;r<o;++r)if(i[r]===t){i.splice(r,1)
|
|
132
|
-
break}},removeAllListeners:function(e){var t=n(e)
|
|
133
|
-
t&&(t.length=0)}}}},962:e=>{"use strict"
|
|
134
|
-
e.exports=function(e){function t(){}var n={log:t,warn:t,error:t}
|
|
135
|
-
if(!e&&window.console){var i=function(e,t){e[t]=function(){var e=console[t]
|
|
136
|
-
if(e.apply)e.apply(console,arguments)
|
|
137
|
-
else for(var n=0;n<arguments.length;n++)e(arguments[n])}}
|
|
138
|
-
i(n,"log"),i(n,"warn"),i(n,"error")}return n}},510:e=>{"use strict"
|
|
139
|
-
function t(e){return e._erd}e.exports={initState:function(e){return e._erd={},t(e)},getState:t,cleanState:function(e){delete e._erd}}},984:(e,t,n)=>{var i,r
|
|
140
|
-
e.exports=(i=_eai_d,r=_eai_r,window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},void i("element-resize-detector",[],(function(){return n(923)})))},384:function(e,t){window._eai_r=require,window._eai_d=define}},t={}
|
|
141
|
-
function n(i){var r=t[i]
|
|
142
|
-
if(void 0!==r)return r.exports
|
|
143
|
-
var o=t[i]={exports:{}}
|
|
144
|
-
return e[i].call(o.exports,o,o.exports,n),o.exports}n(384)
|
|
145
|
-
var i=n(984)
|
|
146
|
-
__ember_auto_import__=i})()
|