芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy.com/wp-content/themes/customizr/assets/front/js/libs/holder.min.js
!function(a,b,c){b[a]=c}("onDomReady",this,function(a){"use strict";function b(a){if(!v){if(!g.body)return e(b);for(v=!0;a=w.shift();)e(a)}}function c(a){(t||a.type===i||g[m]===l)&&(d(),b())}function d(){t?(g[s](q,c,j),a[s](i,c,j)):(g[o](r,c),a[o](k,c))}function e(a,b){setTimeout(a,+b>=0?b:1)}function f(a){v?e(a):w.push(a)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function y(){document.removeEventListener("DOMContentLoaded",y,!1),document.readyState="complete"},!1),document.readyState="loading");var g=a.document,h=g.documentElement,i="load",j=!1,k="on"+i,l="complete",m="readyState",n="attachEvent",o="detachEvent",p="addEventListener",q="DOMContentLoaded",r="onreadystatechange",s="removeEventListener",t=p in g,u=j,v=j,w=[];if(g[m]===l)e(b);else if(t)g[p](q,c,j),a[p](i,c,j);else{g[n](r,c),a[n](k,c);try{u=null==a.frameElement&&h}catch(x){}u&&u.doScroll&&!function z(){if(!v){try{u.doScroll("left")}catch(a){return e(z,50)}d(),b()}}()}return f.version="1.4.0",f.isReady=function(){return v},f}(this)),document.querySelectorAll||(document.querySelectorAll=function(a){var b,c=document.createElement("style"),d=[];for(document.documentElement.firstChild.appendChild(c),document._qsa=[],c.styleSheet.cssText=a+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),c.parentNode.removeChild(c);document._qsa.length;)b=document._qsa.shift(),b.style.removeAttribute("x-qsa"),d.push(b);return document._qsa=null,d}),document.querySelector||(document.querySelector=function(a){var b=document.querySelectorAll(a);return b.length?b[0]:null}),document.getElementsByClassName||(document.getElementsByClassName=function(a){return a=String(a).replace(/^|\s+/g,"."),document.querySelectorAll(a)}),Object.keys||(Object.keys=function(a){if(a!==Object(a))throw TypeError("Object.keys called on non-object");var b,c=[];for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&c.push(b);return c}),function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.atob=a.atob||function(a){a=String(a);var c,d=0,e=[],f=0,g=0;if(a=a.replace(/\s/g,""),a.length%4===0&&(a=a.replace(/=+$/,"")),a.length%4===1)throw Error("InvalidCharacterError");if(/[^+/0-9A-Za-z]/.test(a))throw Error("InvalidCharacterError");for(;d
>16&255)),e.push(String.fromCharCode(f>>8&255)),e.push(String.fromCharCode(255&f)),g=0,f=0),d+=1;return 12===g?(f>>=4,e.push(String.fromCharCode(255&f))):18===g&&(f>>=2,e.push(String.fromCharCode(f>>8&255)),e.push(String.fromCharCode(255&f))),e.join("")},a.btoa=a.btoa||function(a){a=String(a);var c,d,e,f,g,h,i,j=0,k=[];if(/[^\x00-\xFF]/.test(a))throw Error("InvalidCharacterError");for(;j
>2,g=(3&c)<<4|d>>4,h=(15&d)<<2|e>>6,i=63&e,j===a.length+2?(h=64,i=64):j===a.length+1&&(i=64),k.push(b.charAt(f),b.charAt(g),b.charAt(h),b.charAt(i));return k.join("")}}(this),function(){function a(b,c,d){b.document;var e,f=b.currentStyle[c].match(/([\d\.]+)(%|cm|em|in|mm|pc|pt|)/)||[0,0,""],g=f[1],h=f[2];return d=d?/%|em/.test(h)&&b.parentElement?a(b.parentElement,"fontSize",null):16:d,e="fontSize"==c?d:/width/i.test(c)?b.clientWidth:b.clientHeight,"%"==h?g/100*e:"cm"==h?.3937*g*96:"em"==h?g*d:"in"==h?96*g:"mm"==h?.3937*g*96/10:"pc"==h?12*g*96/72:"pt"==h?96*g/72:g}function b(a,b){var c="border"==b?"Width":"",d=b+"Top"+c,e=b+"Right"+c,f=b+"Bottom"+c,g=b+"Left"+c;a[b]=(a[d]==a[e]&&a[d]==a[f]&&a[d]==a[g]?[a[d]]:a[d]==a[f]&&a[g]==a[e]?[a[d],a[e]]:a[g]==a[e]?[a[d],a[e],a[f]]:[a[d],a[e],a[f],a[g]]).join(" ")}function c(c){var d,e=this,f=c.currentStyle,g=a(c,"fontSize"),h=function(a){return"-"+a.toLowerCase()};for(d in f)if(Array.prototype.push.call(e,"styleFloat"==d?"float":d.replace(/[A-Z]/,h)),"width"==d)e[d]=c.offsetWidth+"px";else if("height"==d)e[d]=c.offsetHeight+"px";else if("styleFloat"==d)e["float"]=f[d];else if(/margin.|padding.|border.+W/.test(d)&&"auto"!=e[d])e[d]=Math.round(a(c,d,g))+"px";else if(/^outline/.test(d))try{e[d]=f[d]}catch(i){e.outlineColor=f.color,e.outlineStyle=e.outlineStyle||"none",e.outlineWidth=e.outlineWidth||"0px",e.outline=[e.outlineColor,e.outlineWidth,e.outlineStyle].join(" ")}else e[d]=f[d];b(e,"margin"),b(e,"padding"),b(e,"border"),e.fontSize=Math.round(g)+"px"}window.getComputedStyle||(c.prototype={constructor:c,getPropertyPriority:function(){throw new Error("NotSupportedError: DOM Exception 9")},getPropertyValue:function(a){var b=a.replace(/-([a-z])/g,function(a){return a=a.charAt?a.split(""):a,a[1].toUpperCase()}),c=this[b];return c},item:function(a){return this[a]},removeProperty:function(){throw new Error("NoModificationAllowedError: DOM Exception 7")},setProperty:function(){throw new Error("NoModificationAllowedError: DOM Exception 7")},getPropertyCSSValue:function(){throw new Error("NotSupportedError: DOM Exception 9")}},window.getComputedStyle=function(a){return new c(a)})}(),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(a){var b=this.__proto__||this.constructor.prototype;return a in this&&(!(a in b)||b[a]!==this[a])}),function(a,b){a.augment=b()}(this,function(){"use strict";var a=function(){},b=Array.prototype.slice,c=function(c,d){var e=a.prototype="function"==typeof c?c.prototype:c,f=new a,g=d.apply(f,b.call(arguments,2).concat(e));if("object"==typeof g)for(var h in g)f[h]=g[h];if(!f.hasOwnProperty("constructor"))return f;var i=f.constructor;return i.prototype=f,i};return c.defclass=function(a){var b=a.constructor;return b.prototype=a,b},c.extend=function(a,b){return c(a,function(a){return this.uber=a,b})},c}),function(a,b,c){function d(a,b,c,d){var g=e(c.substr(c.lastIndexOf(a.domain)),a);g&&f(null,d,g,b)}function e(a,b){for(var c={theme:q(B.settings.themes.gray,null),stylesheets:b.stylesheets,holderURL:[]},d=!1,e=String.fromCharCode(11),f=a.replace(/([^\\])\//g,"$1"+e).split(e),g=/%[0-9a-f]{2}/gi,h=f.length,i=0;h>i;i++){var j=f[i];if(j.match(g))try{j=decodeURIComponent(j)}catch(k){j=f[i]}var l=!1;if(B.flags.dimensions.match(j))d=!0,c.dimensions=B.flags.dimensions.output(j),l=!0;else if(B.flags.fluid.match(j))d=!0,c.dimensions=B.flags.fluid.output(j),c.fluid=!0,l=!0;else if(B.flags.textmode.match(j))c.textmode=B.flags.textmode.output(j),l=!0;else if(B.flags.colors.match(j)){var m=B.flags.colors.output(j);c.theme=q(c.theme,m),l=!0}else if(b.themes[j])b.themes.hasOwnProperty(j)&&(c.theme=q(b.themes[j],null)),l=!0;else if(B.flags.font.match(j))c.font=B.flags.font.output(j),l=!0;else if(B.flags.auto.match(j))c.auto=!0,l=!0;else if(B.flags.text.match(j))c.text=B.flags.text.output(j),l=!0;else if(B.flags.random.match(j)){null==B.vars.cache.themeKeys&&(B.vars.cache.themeKeys=Object.keys(b.themes));var n=B.vars.cache.themeKeys[0|Math.random()*B.vars.cache.themeKeys.length];c.theme=q(b.themes[n],null),l=!0}l&&c.holderURL.push(j)}return c.holderURL.unshift(b.domain),c.holderURL=c.holderURL.join("/"),d?c:!1}function f(a,b,c,d){var e=c.dimensions,f=c.theme,h=e.width+"x"+e.height;if(a=null==a?c.fluid?"fluid":"image":a,null!=c.text&&(f.text=c.text,"object"===b.nodeName.toLowerCase())){for(var i=f.text.split("\\n"),k=0;k
16?f.text.substring(0,16)+"…":f.text)+" ["+h+"]":h}),"image"==a?("html"!=o.renderer&&c.auto||(b.style.width=e.width+"px",b.style.height=e.height+"px"),"html"==o.renderer?b.style.backgroundColor=f.background:(g(a,{dimensions:e,theme:f,flags:c},b,o),c.textmode&&"exact"==c.textmode&&(B.vars.resizableImages.push(b),j(b)))):"background"==a&&"html"!=o.renderer?g(a,{dimensions:e,theme:f,flags:c},b,o):"fluid"==a&&("%"==e.height.slice(-1)?b.style.height=e.height:null!=c.auto&&c.auto||(b.style.height=e.height+"px"),"%"==e.width.slice(-1)?b.style.width=e.width:null!=c.auto&&c.auto||(b.style.width=e.width+"px"),"inline"!=b.style.display&&""!==b.style.display&&"none"!=b.style.display||(b.style.display="block"),l(b),"html"==o.renderer?b.style.backgroundColor=f.background:(B.vars.resizableImages.push(b),j(b)))}function g(a,b,c,d){function e(){var a=null;switch(d.renderer){case"canvas":a=D(i);break;case"svg":a=E(i,d);break;default:throw"Holder: invalid renderer: "+d.renderer}return a}var f=null;switch(d.renderer){case"svg":if(!B.setup.supportsSVG)return;break;case"canvas":if(!B.setup.supportsCanvas)return;break;default:return}var g={width:b.dimensions.width,height:b.dimensions.height,theme:b.theme,flags:b.flags},i=h(g);({text:g.text,width:g.width,height:g.height,textHeight:g.font.size,font:g.font.family,fontWeight:g.font.weight,template:g.theme});if(f=e(),null==f)throw"Holder: couldn't render placeholder";"background"==a?(c.style.backgroundImage="url("+f+")",c.style.backgroundSize=g.width+"px "+g.height+"px"):("img"===c.nodeName.toLowerCase()?n(c,{src:f}):"object"===c.nodeName.toLowerCase()&&(n(c,{data:f}),n(c,{type:"image/svg+xml"})),d.reRender&&setTimeout(function(){var a=e();if(null==a)throw"Holder: couldn't render placeholder";"img"===c.nodeName.toLowerCase()?n(c,{src:a}):"object"===c.nodeName.toLowerCase()&&(n(c,{data:a}),n(c,{type:"image/svg+xml"}))},100)),n(c,{"data-holder-rendered":!0})}function h(a){function b(a,b,c,d){b.width=c,b.height=d,a.width=Math.max(a.width,b.width),a.height+=b.height,a.add(b)}switch(a.font={family:a.theme.font?a.theme.font:"Arial, Helvetica, Open Sans, sans-serif",size:i(a.width,a.height,a.theme.size?a.theme.size:B.defaults.size),units:a.theme.units?a.theme.units:B.defaults.units,weight:a.theme.fontweight?a.theme.fontweight:"bold"},a.text=a.theme.text?a.theme.text:Math.floor(a.width)+"x"+Math.floor(a.height),a.flags.textmode){case"literal":a.text=a.flags.dimensions.width+"x"+a.flags.dimensions.height;break;case"exact":if(!a.flags.exactDimensions)break;a.text=Math.floor(a.flags.exactDimensions.width)+"x"+Math.floor(a.flags.exactDimensions.height)}var c=new F({width:a.width,height:a.height}),d=c.Shape,e=new d.Rect("holderBg",{fill:a.theme.background});e.resize(a.width,a.height),c.root.add(e);var f=new d.Group("holderTextGroup",{text:a.text,align:"center",font:a.font,fill:a.theme.foreground});f.moveTo(null,null,1),c.root.add(f);var g=f.textPositionData=C(c);if(!g)throw"Holder: staging fallback not supported yet.";f.properties.leading=g.boundingBox.height;var h=null,j=null;if(g.lineCount>1){var k=0,l=0,m=a.width*B.setup.lineWrapRatio,n=0;j=new d.Group("line"+n);for(var o=0;o
=m||q===!0)&&(b(f,j,k,f.properties.leading),k=0,l+=f.properties.leading,n+=1,j=new d.Group("line"+n),j.y=l),q!==!0&&(h.moveTo(k,0),k+=g.spaceWidth+p.width,j.add(h))}b(f,j,k,f.properties.leading);for(var r in f.children)j=f.children[r],j.moveTo((f.width-j.width)/2,null,null);f.moveTo((a.width-f.width)/2,(a.height-f.height)/2,null),(a.height-f.height)/2<0&&f.moveTo(null,0,null)}else h=new d.Text(a.text),j=new d.Group("line0"),j.add(h),f.add(j),f.moveTo((a.width-g.boundingBox.width)/2,(a.height-g.boundingBox.height)/2,null);return c}function i(a,b,c){b=parseInt(b,10),a=parseInt(a,10);var d=Math.max(b,a),e=Math.min(b,a),f=B.defaults.scale,g=Math.min(.75*e,.75*d*f);return Math.round(Math.max(c,g))}function j(a){var b;b=null==a||null==a.nodeType?B.vars.resizableImages:[a];for(var c in b)if(b.hasOwnProperty(c)){var d=b[c];if(d.holderData){var e=d.holderData.flags,f=k(d,A.invisibleErrorFn(j));if(f){if(e.fluid&&e.auto){var h=d.holderData.fluidConfig;switch(h.mode){case"width":f.height=f.width/h.ratio;break;case"height":f.width=f.height*h.ratio}}var i={dimensions:f,theme:e.theme,flags:e};e.textmode&&"exact"==e.textmode&&(e.exactDimensions=f,i.dimensions=e.dimensions),g("image",i,d,d.holderData.renderSettings)}}}}function k(a,b){var c={height:a.clientHeight,width:a.clientWidth};return c.height||c.width?(a.removeAttribute("data-holder-invisible"),c):(n(a,{"data-holder-invisible":!0}),void b.call(this,a))}function l(a){if(a.holderData){var b=k(a,A.invisibleErrorFn(l));if(b){var c=a.holderData.flags,d={fluidHeight:"%"==c.dimensions.height.slice(-1),fluidWidth:"%"==c.dimensions.width.slice(-1),mode:null,initialDimensions:b};d.fluidWidth&&!d.fluidHeight?(d.mode="width",d.ratio=d.initialDimensions.width/parseFloat(c.dimensions.height)):!d.fluidWidth&&d.fluidHeight&&(d.mode="height",d.ratio=parseFloat(c.dimensions.width)/d.initialDimensions.height),a.holderData.fluidConfig=d}}}function m(a,b){return null==b?z.createElement(a):z.createElementNS(b,a)}function n(a,b){for(var c in b)a.setAttribute(c,b[c])}function o(a,b,c){if(null==a){a=m("svg",y);var d=m("defs",y);a.appendChild(d)}return a.webkitMatchesSelector&&a.setAttribute("xmlns",y),n(a,{width:b,height:c,viewBox:"0 0 "+b+" "+c,preserveAspectRatio:"none"}),a}function p(a,c){if(b.XMLSerializer){var d=new XMLSerializer,e="",f=c.stylesheets;a.querySelector("defs");if(c.svgXMLStylesheet){for(var g=(new DOMParser).parseFromString("
","application/xml"),h=f.length-1;h>=0;h--){var i=g.createProcessingInstruction("xml-stylesheet",'href="'+f[h]+'" rel="stylesheet"');g.insertBefore(i,g.firstChild)}var j=g.createProcessingInstruction("xml",'version="1.0" encoding="UTF-8" standalone="yes"');g.insertBefore(j,g.firstChild),g.removeChild(g.documentElement),e=d.serializeToString(g)}var k=d.serializeToString(a);return k=k.replace(/\&(\#[0-9]{2,}\;)/g,"&$1"),e+k}}function q(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);if(null!=b)for(var e in b)b.hasOwnProperty(e)&&(c[e]=b[e]);return c}function r(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c+":"+a[c]);return b.join(";")}function s(a){B.vars.debounceTimer||a.call(this),B.vars.debounceTimer&&clearTimeout(B.vars.debounceTimer),B.vars.debounceTimer=setTimeout(function(){B.vars.debounceTimer=null,a.call(this)},B.setup.debounce)}function t(){s(function(){j(null)})}function u(a){var c=null;return"string"==typeof a?c=z.querySelectorAll(a):b.NodeList&&a instanceof b.NodeList?c=a:b.Node&&a instanceof b.Node?c=[a]:b.HTMLCollection&&a instanceof b.HTMLCollection?c=a:null===a&&(c=[]),c}function v(a,b){var c=new Image;c.onerror=function(){b.call(this,!1)},c.onload=function(){b.call(this,!0)},c.src=a}function w(a){for(var b=[],c=0,d=a.length-1;d>=0;d--)c=a.charCodeAt(d),c>128?b.unshift(["",c,";"].join("")):b.unshift(a[d]);return b.join("")}function x(a){return a.replace(/(\d+);/g,function(a,b){return String.fromCharCode(b)})}var y="http://www.w3.org/2000/svg",z=b.document,A={addTheme:function(a,b){return null!=a&&null!=b&&(B.settings.themes[a]=b),delete B.vars.cache.themeKeys,this},addImage:function(a,b){var c=z.querySelectorAll(b);if(c.length)for(var d=0,e=c.length;e>d;d++){var f=m("img");n(f,{"data-src":a}),c[d].appendChild(f)}return this},run:function(a){a=a||{};var c={};B.vars.preempted=!0;var g=q(B.settings,a);c.renderer=g.renderer?g.renderer:B.setup.renderer,-1===B.setup.renderers.join(",").indexOf(c.renderer)&&(c.renderer=B.setup.supportsSVG?"svg":B.setup.supportsCanvas?"canvas":"html"),g.use_canvas?c.renderer="canvas":g.use_svg&&(c.renderer="svg");var h=u(g.images),i=u(g.bgnodes),j=u(g.stylenodes),k=u(g.objects);c.stylesheets=[],c.svgXMLStylesheet=!0,c.noFontFallback=g.noFontFallback?g.noFontFallback:!1;for(var l=0;l
1){c.nodeValue="";for(var v=0;v