YUI.add("photo-groups-models",(function(e){function t(e){t.superclass.constructor.call(this,e)}e.Models[this.name]=t,e.extend(t,e.FlickrModelRegistry,{name:this.name,remote:{read:function(t){return e.ModelFetchers["flickr-photos-getAllContexts"].run(t,this.appContext)}},attributes:{id:{},groups:{isCollection:!0},total:{validator:function(t){return e.AttributeHelpers.validateInteger(t)},setter:function(t){return e.AttributeHelpers.coerceInteger(t)},defaultValue:0}}})}),"@VERSION@",{requires:["api-helper","flickr-model-registry","flickr-promise","flickr-photos-getAllContexts-fetcher"]});YUI.add("flickr-photos-getAllContexts-fetcher",(function(e,t){"use strict";e.namespace("ModelFetchers")["flickr-photos-getAllContexts"]={run:function(o,s){var l=this;return s.flipper.isFlipped("enable-scrappy-photo-page")&&(o.scrappy=!0),e.Promise.all([s.callAPI("flickr.photos.getAllContexts",this._processParams(o),!0),s.getModelRegistry("person-models"),s.getModelRegistry("photo-contexts-models"),s.getModelRegistry("favorite-models"),s.getModelRegistry("gallery-models"),s.getModelRegistry("group-pool-models"),s.getModelRegistry("set-models"),s.getModelRegistry("photostream-models"),s.getModelRegistry("photo-groups-models"),s.getModelRegistry("photo-sets-models"),s.getModelRegistry("photo-galleries-models"),s.getModelRegistry("group-models")]).then((function(e){return l._processResponse(e,o)}),e.FetcherErrorLogger(t))},_processParams:function(t){var o;return o={photo_id:t.id,extras:e.APIHelper.request.getRebootPhotoExtras()+","+e.APIHelper.request.getRebootGroupExtras()+","+e.APIHelper.request.getRebootAlbumsListExtras(),primary_photo_extras:"url_sq, url_t, url_s, url_m, needs_interstitial"},t.scrappy&&(o.get_all_galleries=1,o.no_faves_context=1,o.per_type_limit=6,o.get_totals=1,o.sort="date-desc"),o},_processResponse:function(t,o){var s,l,r=t[0],a=t[1],p=t[2],d={},i=[],g=t[8],n=t[9],u=t[10],m=t[11];return d.faves=t[3],d.gallery=t[4],d.pool=t[5],d.set=t[6],d.stream=t[7],e.Object.each(d,(function(t,o){r[o]&&e.Array.each(r[o],(function(o){e.APIHelper.response.addContextToRegistry(o,t,a,m),i.push(t.proxy(o.id))}))})),p.exists(o.id)||(s=p.add({id:o.id,totalGroups:r.totals&&r.totals.groups,totalSets:r.totals&&r.totals.sets,totalGalleries:r.totals&&r.totals.galleries}),p.setValue(o.id,"contexts",i)),g.addOrUpdate({id:o.id,total:r.totals&&r.totals.groups,groups:p.getContextsOfType(o.id,"group-pool-models")}),(l=p.getContextsOfType(o.id,"set-models")).forEach((function(e){e.setValue("totalCount",parseInt(e.getValue("photoCount"),10)+parseInt(e.getValue("videoCount"),10))})),n.addOrUpdate({id:o.id,total:r.totals&&r.totals.sets,sets:l}),u.addOrUpdate({id:o.id,total:r.totals&&r.totals.galleries,galleries:p.getContextsOfType(o.id,"gallery-models")}),s}}}),"@VERSION@",{requires:["flickr-promise","api-helper"],optional:["photo-contexts-models","favorite-models","gallery-models","group-pool-models","photostream-models","set-models","photo-groups-models","photo-sets-models","photo-galleries-models","group-models"]});YUI.add("photo-contexts-models",(function(e){function t(e){t.superclass.constructor.call(this,e),this.getMorePromises={"group-pool-models":{},"set-models":{},"gallery-models":{}},this.continuationKeys={"group-pool-models":{},"set-models":{},"gallery-models":{}}}e.Models[this.name]=t,e.extend(t,e.FlickrModelRegistry,{name:this.name,remote:{read:function(t){return this.appContext.flipper.isFlipped("enable-scrappy-photo-page")?e.ModelFetchers["flickr-photos-getAllContexts"].run(t,this.appContext):e.ModelFetchers["flickr-photos-getInfo"].run(t,this.appContext)}},getMoreContextsOfType:function(t,r,o){var s,n,i,l,a,p,u,c=this,g="-1",d=e.APIHelper.request.getRebootPhotoExtras();switch(r){case"group-pool-models":s="flickr.photos.getGroups",i="groups.group",d+=","+e.APIHelper.request.getRebootGroupExtras();break;case"set-models":s="flickr.photos.getSets",i="sets.set";break;case"gallery-models":s="flickr.photos.getGalleries",i="galleries.gallery"}return s?this.exists(t)?(l=this.continuationKeys[r][t]||"0")===g?e.Promise.resolve({type:r,newContexts:[],loadedAll:!0}):(n={photo_id:t,extras:d,primary_photo_extras:"url_sq, url_t, url_s, url_m",continuation:l,per_page:o},p=t+"_"+l,(u=this.getMorePromises[r][p])?u:(this.getMorePromises[r][p]=new e.FlickrPromise({apiResponse:this.appContext.callAPI(s,n,!0),contextRegistry:this.appContext.getModelRegistry(r),personRegistry:this.appContext.getModelRegistry("person-models")}).then((function(o){var s,n,l,u=[],d=o.apiResponse,f=o.contextRegistry,h=o.personRegistry;return(n=i.split(".").reduce((function(t,r){return e.Lang.isObject(t)?t[r]:void 0}),d))&&(e.Array.each(n,(function(t){e.APIHelper.response.addContextToRegistry(t,f,h),u.push(f.proxy(t.id))})),u.length&&(l=c.getContextsOfType(t,r).map((function(e){return e.getValue("id")})),(u=u.filter((function(e){return-1===l.indexOf(e.getValue("id"))}))).length&&c.getValue(t,"contexts").appendToListMulti(u))),void 0===(a=d.continuation)?a=g:e.Lang.isNumber(a)&&(a+=""),s=a===g,c.continuationKeys[r][t]=a,delete c.getMorePromises[r][p],{type:r,newContexts:u,loadedAll:s}})),this.getMorePromises[r][p])):e.Promise.reject("[photo-contexts-models] getMoreContextsOfType was called for an ID that isn't in the registry: "+t):e.Promise.reject("[photo-contexts-models] getMoreContextsOfType was called without an invalid type: "+r)},getContextsOfType:function(t,r){return r=e.Array(r),this.getValue(t,"contexts").getList().filter((function(e){return r.indexOf(e.registry.name)>-1}))},getContextsNotOfType:function(t,r){return r=e.Array(r),this.getValue(t,"contexts").getList().filter((function(e){return-1===r.indexOf(e.registry.name)}))},attributes:{contexts:{isCollection:!0},totalGroups:{validator:function(t){return e.AttributeHelpers.validateInteger(t)},setter:function(t){return e.AttributeHelpers.coerceInteger(t)},defaultValue:0},totalSets:{validator:function(t){return e.AttributeHelpers.validateInteger(t)},setter:function(t){return e.AttributeHelpers.coerceInteger(t)},defaultValue:0},totalGalleries:{validator:function(t){return e.AttributeHelpers.validateInteger(t)},setter:function(t){return e.AttributeHelpers.coerceInteger(t)},defaultValue:0}}})}),"@VERSION@",{requires:["api-helper","flickr-model-registry","flickr-promise","flickr-photos-getInfo-fetcher","flickr-photos-getAllContexts-fetcher"]});YUI.add("vr-overlay-view",(function(e,t){var i,o=require("hermes-core/flog")(t);i={css:{destinationContainer:"body",closeX:".close"},options:{}},e.FlickrView.create(this.name,e.FlickrView,[],{langBundles:this.details.langBundles,initializer:function(e){return this.photoId=e.photoId,this.nsid=e.nsid,""===this.get("container").get("innerHTML")&&this.setContainerHTML(""),this.immersed=!1,this},subviewConfig:{},loadState:function(){var e=this;return this.appContext.getModel("photo-models",e.photoId).then((function(t){return e.set("photo",t),e.canVr().then((function(t){e.set("canVr",t)}))}))},buildContainer:function(){var e=this.get("canVr");return this.set("isActiveViewAgnostic",!0),e?(this.setContainerWithTemplate("vr-overlay"),this):this},buildErrorContainer:function(){this.setContainerHTML("")},activate:function(){var t=this;if(this.get("canVr"))return this.loadFlickvr().then((function(){var o=t.get("container");o.addClass("active"),o.one(i.css.closeX)&&t.registerEventHandler(o.one(i.css.closeX).on("click",e.bind(t.closeVr,t))),t.registerEventHandler(t.get("container").on("click",t.openVr,t)),t.isMobile||t.openVr()})).then(null,(function(e){o.error("Failed to load flickvr from CDN",{err:e})})),this},loadFlickvr:function(){return new e.Promise((function(t,i){if(window.Flickvr)return t();e.Get.js("https://combo.staticflickr.com/ap/flickvr/version.js",(function(n){return n?i():window.FlickvrVersion?void e.Get.js("https://combo.staticflickr.com/ap/flickvr/"+window.FlickvrVersion+".js",(function(e){return e?i():(o.log("flickvr loaded successfully from CDN"),t())})):i()}))}))},hasEquirectangularTag:function(){return this.appContext.getModel("photo-tags-models",this.photoId).then((function(e){var t=!1;return e.toJSON().tags.forEach((function(e){"equirectangular"===e.tagRaw.toLowerCase()&&(t=!0)})),t}))},inEquirectangularGroup:function(){return this.appContext.getModel("photo-groups-models",this.photoId).then((function(e){var t=!1;return e.toJSON().groups.forEach((function(e){"44671723@N00"===e.id&&(t=!0)})),t}))},canVr:function(){var t,i,o=this,n=!1;return o.appContext.flipper.isFlipped("enable-vr")?((t=o.get("photo"))&&(i=t.getValue("aspectRatio"))&&i>=1.99&&i<=2.01&&(n=!0),n?e.Promise.all([o.appContext.callAPI("flickr.vr.isEquirectangular",{photo_id:t.id})]).then((function(t){return e.Promise.resolve(!!t[0].is_equirectangular)})):e.Promise.resolve(!1)):e.Promise.resolve(!1)},onParentViewEvent:function(e,t){if(t&&t[0])switch(t[0]){case"vrIconClicked":this.openVr();break;case"vKeyPressed":this.toggleVr()}},toggleVr:function(){this.immersed?this.closeVr():this.openVr()},openVr:function(t){if(this.immersed||t&&t.target.hasClass("close"))this.vr.controls&&this.vr.controls.autoRotate&&(this.vr.controls.autoRotate=!1);else{var i,o,n=this,r=this.get("photo").getLargestSize(),s=this.templates("flickr-balls")({}),a=new Image;t&&t.halt(),(o=e.Node.create("<div></div>")).addClass("vr-loading-layer"),o.addClass("fluid"),o.append(s),n.get("container").append(o),i=r.displayUrl,a.crossOrigin="anonymous",a.onload=function(){n.immersed=!0,n.vr=new window.Flickvr,n.vr.initialize(i,{container:n.get("container").getDOMNode(),useContainerDimensions:!n.isMobile,enableVrHeadset:n.appContext.flipper.isFlipped("enable-vr-headset"),autoRotate:!n.isMobile}).then((function(t){e.fire("photo:entering-vr"),t.style.position="absolute",n.vr.enterVR(),n.get("container").one(".vr-loading-layer").remove(),n.get("container").addClass("immersed"),n.escHandle=n.attachKeyEvent("down:27",e.betterThrottle(n.closeVr.bind(n),100))}))},a.src=i}},closeVr:function(e){var t=this.get("container");e&&e.preventDefault(),this.vr&&this.vr.destroy(),this.escHandle&&(this.detachRegisteredEvent(this.escHandle),delete this.escHandle),this.immersed=!1,t.removeClass("immersed")},beforeDestroy:function(){this.set("lastContainer",this.get("container")),this.immersed&&this.closeVr()},destructor:function(){var e=this.get("lastContainer");e&&(e.remove(!0),this.set("lastContainer",null))}})}),"@VERSION@",{requires:["flickr-view","better-throttle","get","hermes-template-vr-overlay","hermes-template-flickr-balls"],optionalRequires:["hermes-core"],optional:["photo-models","photo-tags-models","photo-groups-models"],langBundles:["common","photo-page-scrappy"]});YUI.add("hermes-lang-photo-page-scrappy_zh-hk",(function(e,_){e.Intl.add("hermes/photo-page-scrappy","zh-HK",{PAGE_TITLE:[{type:1,value:"title"},{type:0,value:" | Flickr"}],BACK_TO:[{type:0,value:"返回 "},{type:1,value:"entryType"}],COULDNT_UPDATE_SETTINGS:[{type:0,value:"我們無法更新你的設定。"}],ADULT_CONTENT:[{type:0,value:"成人內容"}],MATURE_AUDIENCES:[{type:0,value:"只有成人才能檢視此內容。"}],USER_DISCRETION:[{type:0,value:"建議使用者自行斟酌。"}],SHOW_ME_THIS_CONTENT_TYPE:[{type:0,value:"從現在開始為我顯示此內容類型"}],CHANGE_SAFE_SEARCH_IN_SETTINGS:[{type:0,value:'你隨時都可以在帳號偏好設定中變更<a href="/account/prefs/safesearch/?from=privacy"  data-track="photoWellSafeSearchClick">安全搜尋設定</a>。'}],SIGNED_IN_FOR_CONTENT:[{type:0,value:"若要查看此內容，你必須登入。"}],VIDEO_COMING_SOON:[{type:0,value:"即將推出視訊支援"}],FIND_OUT_MORE_AD:[{type:0,value:"在 "},{type:1,value:"brand"},{type:0,value:" 中進一步瞭解"}],SHARE_THIS_PHOTO:[{type:0,value:"分享這張相片"}],DOWNLOAD_THIS_VIDEO:[{type:0,value:"下載此視訊"}],DOWNLOAD_THIS_PHOTO:[{type:0,value:"下載此相片"}],VIEW_ALL_SIZES:[{type:0,value:"檢視全部尺寸"}],DOWNLOAD_PHOTO:[{type:0,value:"下載相片"}],SOME_RIGHTS_RESERVED:[{type:0,value:"保留部分權利"}],DOWNLOAD:[{type:0,value:"下載"}],ERROR_LOADING_CONTEXT:[{type:0,value:"載入內容時發生錯誤"}],ADD_TITLE:[{type:0,value:"新增標題"}],ADD_DESCRIPTION:[{type:0,value:"新增描述"}],TITLE_DESCRIPTION_FAILURE:[{type:0,value:"目前無法變更標題和描述。"}],VIEW_PREVIOUS_COMMENT:[{type:0,value:"檢視之前的留言"}],VIEW_MORE_PREVIOUS_COMMENTS:[{type:0,value:"檢視之前的 "},{type:1,value:"count"},{type:0,value:" 則留言"}],EMPTY_COMMENT_ERROR:[{type:0,value:"留言方塊空白嗎？ 這是行不通的！"}],COMMENT_RATE_LIMIT_ERROR:[{type:0,value:"朋友，且慢！ 為了防止垃圾留言和發佈垃圾留言的行為發生在 Flickr 社群中，我們會針對留言設立一些限制。"}],COMMENT_POST_ERROR:[{type:0,value:"我們無法發佈你的留言。"}],MORE_COMMENTS_ERROR:[{type:0,value:"我們無法取得更多留言。"}],COMMENT_PERMALINK_ERROR:[{type:0,value:"我們找不到與相片相關的指定留言。"}],DELETE_COMMENT:[{type:0,value:"刪除留言"}],COMMENT_DELETE_CONFIRMATION:[{type:0,value:"你確定要刪除此留言嗎？"}],COMMENT_DELETE_ERROR:[{type:0,value:"我們無法刪除你的留言。"}],COMMENT_LOADING_ERROR:[{type:0,value:"載入留言時發生錯誤"}],COMMENT:[{type:0,value:"留言"}],SHOW_MORE_COMMENTS:[{type:0,value:"還有 "},{type:1,value:"count"},{type:0,value:" 則"}],REPLY:[{type:0,value:"回覆"}],PERMALINK:[{type:0,value:"永久連結"}],SINGLE_FAVER:[{type:0,value:'<a class="faved-by-person-link" href="/photos/'},{type:1,value:"pathAlias"},{type:0,value:'/">'},{type:1,value:"displayName"},{type:0,value:"</a> 將此加入最愛"}],DOUBLE_FAVER:[{type:0,value:'<a class="faved-by-person-link" href="/photos/'},{type:1,value:"pathAliasOne"},{type:0,value:'/">'},{type:1,value:"displayNameOne"},{type:0,value:'</a> 和 <a class="faved-by-person-link" href="/photos/'},{type:1,value:"pathAliasTwo"},{type:0,value:'/">'},{type:1,value:"displayNameTwo"},{type:0,value:"</a> 將此加入最愛"}],TRIPLE_FAVER:[{type:0,value:'<a class="faved-by-person-link" href="/photos/'},{type:1,value:"pathAliasOne"},{type:0,value:'/">'},{type:1,value:"displayNameOne"},{type:0,value:'</a>、<a class="faved-by-person-link" href="/photos/'},{type:1,value:"pathAliasTwo"},{type:0,value:'/">'},{type:1,value:"displayNameTwo"},{type:0,value:'</a> 和 <a class="faved-by-person-link" href="/photos/'},{type:1,value:"pathAliasThree"},{type:0,value:'/">'},{type:1,value:"displayNameThree"},{type:0,value:"</a> 將此加入最愛"}],MULTI_FAVER:[{type:0,value:'<a class="faved-by-person-link" href="/photos/'},{type:1,value:"pathAliasOne"},{type:0,value:'/">'},{type:1,value:"displayNameOne"},{type:0,value:'</a>、<a class="faved-by-person-link" href="/photos/'},{type:1,value:"pathAliasTwo"},{type:0,value:'/">'},{type:1,value:"displayNameTwo"},{type:0,value:'</a> 和其他 <a class="remaining-faved-by" href="#">'},{type:1,value:"count"},{type:0,value:" 人</a>將此加入最愛"}],RELATIONSHIP_FRIEND_ERROR:[{type:0,value:"設定朋友關係時發生問題。"}],RELATIONSHIP_FAMILY_ERROR:[{type:0,value:"設定家人關係時發生問題。"}],HIDE_EXIF:[{type:0,value:"隱藏 EXIF"}],SHOW_EXIF:[{type:0,value:"顯示 EXIF"}],EDIT_LOCATION:[{type:0,value:"編輯位置"}],EDIT_LOCATION_ORGANIZR:[{type:0,value:"我們正在努力重新設計全新的相片體驗。 從現在開始，你可以在 Organizr 中編輯位置。"}],SAVE_LOCATION:[{type:0,value:"儲存位置"}],APERTURE:[{type:0,value:"光圈"}],FOCAL_LENGTH:[{type:0,value:"焦距"}],EXPOSURE_TIME:[{type:0,value:"曝光時間"}],FLASH_AUTO_FIRED:[{type:0,value:"閃光燈 (自動，閃光)"}],FLASH_AUTO_NO_FIRE:[{type:0,value:"閃光燈 (自動，不閃光)"}],FLASH_ON_FIRED:[{type:0,value:"閃光燈 (開啟，閃光)"}],FLASH_ON_NO_FIRE:[{type:0,value:"閃光燈 (開啟，不閃光)"}],FLASH_OFF:[{type:0,value:"閃光燈 (關閉，不閃光)"}],FLASH_SIMPLE_ON:[{type:0,value:"開啟"}],FLASH_SIMPLE_OFF:[{type:0,value:"關閉"}],POWERED_BY:[{type:0,value:"POWERED BY"}],FOURSQUARE:[{type:0,value:"FOURSQUARE"}],ADD_PHOTO_TO_MAP:[{type:0,value:"將相片新增至你的地圖"}],SINGULAR_FAVE:[{type:0,value:"最愛"}],PLURAL_FAVE:[{type:0,value:"人加入最愛"}],SINGULAR_VIEW:[{type:0,value:"檢視"}],PLURAL_VIEW:[{type:0,value:"次檢視"}],SINGULAR_COMMENT:[{type:0,value:"留言"}],PLURAL_COMMENT:[{type:0,value:"則留言"}],LICENSE_ERROR:[{type:0,value:"變更相片授權時發生問題"}],ALL_RIGHTS_RESERVED:[{type:0,value:"版權所有 不得轉載"}],NO_RESTRICTIONS:[{type:0,value:"無已知版權限制"}],PUBLIC_DOMAIN:[{type:0,value:"公共網域"}],USA_GOV_WORK:[{type:0,value:"美國政府作品"}],SAFETY_CHANGE_ERROR:[{type:0,value:"變更相片安全層級時發生錯誤"}],PRIVACY_CHANGE_ERROR:[{type:0,value:"變更相片隱私權時發生問題"}],COMMENT_PERM_CHANGE_ERROR:[{type:0,value:"變更相片留言權限時發生錯誤"}],FLAG_PHOTO:[{type:0,value:"檢舉相片"}],MARK_FOR_REVIEW:[{type:0,value:"檢舉以進行審閱"}],ADDITIONAL_INFO:[{type:0,value:"附加資訊"}],VIEWING_THIS_PHOTO:[{type:0,value:"相片檢視權限"}],PRIVACY_UPDATE_ERROR:[{type:0,value:"更新隱私權時發生錯誤。 請再試一次。"}],META_PERMS_UPDATE_ERROR:[{type:0,value:"更新 add meta 權限時發生錯誤。 請再試一次。"}],ADD_META_TO_THIS_PHOTO:[{type:0,value:"新增標籤及人物到此相片"}],COMMENT_PERMS_UPDATE_ERROR:[{type:0,value:"更新留言權限時發生錯誤。 請再試一次。"}],COMMENTING_ON_THIS_PHOTO:[{type:0,value:"正在此相片留言"}],SAFETY_UPDATE_ERROR:[{type:0,value:"更新安全層級時發生錯誤。 請再試一次。"}],SAFETY_LEVEL_OF_PHOTO:[{type:0,value:"此相片的安全層級"}],FLAG_ERROR:[{type:0,value:"嘗試標記此相片時發生錯誤。 請再試一次。"}],PROVIDE_FEEDBACK:[{type:0,value:"提供對新相片頁面的意見"}],ERROR_DELETING_AUTOTAG:[{type:0,value:"刪除自動標籤時發生錯誤"}],AUTOTAGS:[{type:0,value:"自動標籤"}],CONTACT_LIST_ERROR:[{type:0,value:"嘗試取得你的自己人清單時發生錯誤。 請再試一次。"}],FAILED_TO_REMOVE_PERSON:[{type:0,value:"目前無法從相片移除該人物。"}],PERSON_CANNOT_BE_TAGGED:[{type:0,value:"無法標示此人。"}],PEOPLE_IN_PHOTO:[{type:0,value:"相中人"}],ADD_PEOPLE:[{type:0,value:"新增人物"}],ADD_PERSON:[{type:0,value:"新增人物"}],ERROR_REMOVING_FROM_GROUP:[{type:0,value:"從群組移除此相片時發生問題"}],ERROR_ACCEPTING_INVITATION:[{type:0,value:"接受群組邀請時發生問題"}],SEARCH_GROUPS:[{type:0,value:"搜尋群組"}],PHOTO_NOT_IN_GROUPS:[{type:0,value:"此相片並未位於任何群組"}],ADD_TO_GROUP:[{type:0,value:"新增至群組"}],INVITE_TO_GROUP:[{type:0,value:"邀請至群組"}],ONE_GROUP_INVITATION:[{type:0,value:"你有 1 個群組邀請"}],N_GROUP_INVITATIONS:[{type:0,value:"你有 "},{type:1,value:"count"},{type:0,value:" 個群組邀請"}],VIEW_MORE_GROUPS:[{type:0,value:"檢視更多群組"}],ERROR_REMOVING_FROM_ALBUM:[{type:0,value:"從相簿移除此相片時發生問題"}],WARNING_REMOVE_LAST_PHOTO_FROM_ALBUM:[{type:0,value:"你即將從相簿移除最後一張相片，這也會刪除該相簿。"}],REMOVE_PHOTO_AND_ALBUM:[{type:0,value:"移除相片並刪除相簿"}],ADD_PHOTO_TO_ALBUM:[{type:0,value:"將此相片新增至相簿"}],SEARCH_ALBUMS:[{type:0,value:"搜尋相簿"}],ADD_TO_ALBUM:[{type:0,value:"新增至相簿"}],PHOTO_NOT_IN_ALBUMS:[{type:0,value:"此相片並未位於任何相簿"}],VIEW_MORE_ALBUMS:[{type:0,value:"檢視更多相簿"}],PHOTO_IN_ONE_ALBUM:[{type:0,value:"此相片位於 1 本相簿內"}],PHOTO_IN_N_ALBUMS:[{type:0,value:"此相片位於 "},{type:1,value:"count"},{type:0,value:" 本相簿內"}],INVITE_PENDING:[{type:0,value:"邀請處理中"}],CANCEL_INVITE:[{type:0,value:"取消邀請"}],ACCEPT_INVITE:[{type:0,value:"接受邀請"}],ONE_ITEM:[{type:0,value:"1 個項目"}],N_ITEMS:[{type:1,value:"count"},{type:0,value:" 個項目"}],ERROR_REMOVING_FROM_GALLERY:[{type:0,value:"從博覽館移除此相片時發生問題"}],SEARCH_GALLERIES:[{type:0,value:"搜尋博覽館"}],ADD_TO_GALLERY:[{type:0,value:"新增至博覽館"}],PHOTO_NOT_IN_GALLERIES:[{type:0,value:"此相片並未位於任何博覽館"}],VIEW_MORE_GALLERIES:[{type:0,value:"檢視更多博覽館"}],PHOTO_IN_ONE_GALLERY:[{type:0,value:"此相片位於 1 個博覽館內"}],PHOTO_IN_N_GALLERIES:[{type:0,value:"此相片位於 "},{type:1,value:"count"},{type:0,value:" 個博覽館內"}],DELETE_PHOTO:[{type:0,value:"刪除相片"}],PERMANTENTLY_DELETE:[{type:0,value:"你確定要永久刪除此相片嗎？"}],EDIT_PHOTO:[{type:0,value:"編輯相片"}],NO_VIDEO_ROTATION:[{type:0,value:"無法旋轉視訊"}],ROTATE:[{type:0,value:"旋轉"}],NO_VIDEO_REPLACE:[{type:0,value:"無法取代視訊"}],REPLACE:[{type:0,value:"取代"}],PHOTO_NAVIGATION:[{type:0,value:"相片瀏覽"}],THUMBNAIL_NAVIGATION:[{type:0,value:"縮圖瀏覽"}],ZOOM:[{type:0,value:"縮放"}],VIEW_IN_LIGHTBOX:[{type:0,value:"在燈箱中檢視"}],BACK_TO_CONTEXT:[{type:0,value:"返回內容"}],ADD_TAG:[{type:0,value:"新增標籤"}],GO_TO_ORGANIZER:[{type:0,value:"移至 Organizr"}],ALBUM:[{type:0,value:"相簿"}],ALBUMS:[{type:0,value:"相簿"}],ERROR_LOADING_ALBUMS:[{type:0,value:"載入你的相簿時發生問題"}],ERROR_ADDING_PHOTO_TO_ALBUM:[{type:0,value:"將此相片新增至相簿時發生問題"}],ERROR_REMOVING_PHOTO_FROM_ALBUM:[{type:0,value:"從相簿移除此相片時發生問題"}],ERROR_LOADING_GROUPS:[{type:0,value:"載入你可以新增相片的群組時發生問題"}],ERROR_ADDING_TO_GROUP:[{type:0,value:"將此相片新增至群組時發生問題"}],ERROR_ADDING_TO_GROUP_NOT_OWNER:[{type:0,value:"抱歉，由於你並非相片擁有者，因此無法將相片新增至群組。"}],ERROR_ADDING_TO_GROUP_NOT_MEMBER:[{type:0,value:"抱歉，無法將相片新增至群組。 你不是此群組的會員。"}],ERROR_ADDING_TO_GROUP_ALREADY_IN_POOL:[{type:0,value:"此相片已在該群組分享區中了。"}],ERROR_ADDING_TO_GROUP_MAX_POOLS:[{type:0,value:"抱歉，由於群組分享區數量已達到上限，因此無法將相片新增至群組。"}],ERROR_ADDING_TO_GROUP_MAX_PHOTOS_FROM_USER:[{type:0,value:"抱歉，無法將相片新增至群組。 你新增至分享區的相片數量已達到上限。"}],ERROR_ADDING_TO_GROUP_ADDED_TO_QUEUE:[{type:0,value:"已將你的相片新增至群組的待處理佇列。"}],ERROR_ADDING_TO_GROUP_ALREADY_IN_QUEUE:[{type:0,value:"你的相片已在群組的待處理佇列中了。"}],ERROR_ADDING_TO_GROUP_INVALID_CONTENT:[{type:0,value:"抱歉，無法將相片新增至群組。 如需詳細資訊，請查看媒體類型、內容類型、安全層級和地理位置的群組需求。"}],ERROR_ADDING_TO_GROUP_MAX_IN_POOL:[{type:0,value:"抱歉，無法將相片新增至群組。 群組分享區中的相片數已達到允許的上限。"}],ERROR_INVITING_TO_GROUP:[{type:0,value:"邀請此相片加入群組時發生問題"}],ERROR_CANCELING_GROUP_INVITIATON:[{type:0,value:"取消此相片的群組邀請時發生問題"}],NO_MATCHES:[{type:0,value:"沒有相符的項目"}],CREATE_NEW:[{type:0,value:"新建"}],ERROR_LOADING_GROUP_INVITATIONS:[{type:0,value:"載入此相片的群組邀請時發生問題"}],NO_GROUP_INVITATIONS:[{type:0,value:"沒有處理中的群組邀請"}],PENDING_INVITATIONS_FOR_PHOTO:[{type:0,value:"此相片的處理中邀請"}],LOADING_INVITATIONS:[{type:0,value:"正在載入邀請"}],ERROR_LOADING_GALLERIES:[{type:0,value:"載入你的博覽館時發生問題"}],ERROR_ADDING_TO_GALLERY:[{type:0,value:"將此相片新增至博覽館時發生問題"}],ERROR_PHOTO_NOT_ALLOWED_IN_GALLERY:[{type:0,value:"此相片的擁有者不允許將相片新增至你的博覽館"}],ERROR_CREATING_GALLERY:[{type:0,value:"建立你的新博覽館時發生問題"}],DATE_TAKEN_FORMAT:[{type:0,value:"拍攝日期格式必須是 MM/DD/YYYY hh:mm:ss。"}],DATE_POSTED_FUTURE:[{type:0,value:"發佈日期不可以是未來的日期。"}],DATE_UPLOADED_FUTURE:[{type:0,value:"上傳日期不能是未來日期。"}],DATE_POSTED_FLICKR_JOIN:[{type:0,value:"發佈日期必須是你加入 Flickr 之後的日期。"}],DATE_UPLOADED_FLICKR_JOIN:[{type:0,value:"上傳日期必須是你加入 Flickr 之後的日期。"}],ERROR_SAVING_DATE:[{type:0,value:"儲存日期時發生錯誤"}],DATE_INVALID:[{type:0,value:"一或多個日期無效"}],EDIT_DATES:[{type:0,value:"編輯日期"}],DATE_TAKEN_ON:[{type:0,value:"拍攝日期"}],DATE_POSTED_ON:[{type:0,value:"發佈日期"}],DATE_UPLOADED_ON:[{type:0,value:"上傳日期為"}],TAKEN_CIRCA:[{type:0,value:"拍攝年份為 "},{type:1,value:"intlDate"}],TAKEN_SOMETIME_IN:[{type:0,value:"拍攝日期大約年份為 "},{type:1,value:"intlDate"}],TAKEN_IN:[{type:0,value:"拍攝於 "},{type:1,value:"intlDate"}],TAKEN_ON:[{type:0,value:"拍攝於 "},{type:3,value:"intlDate",style:"long"}],UPLOADED_ON:[{type:0,value:"上載於 "},{type:1,value:"intlDate"}],SOMETHING_WENT_WRONG:[{type:0,value:"發生錯誤。"}],REFRESH_BROWSER:[{type:0,value:"請重新整理你的瀏覽器，然後再試一次。"}],TWITTER_NOT_FOUND:[{type:0,value:"發佈時找不到 Twitter 帳號"}],TUMBLR_NOT_FOUND:[{type:0,value:"發佈時找不到 Tumblr 帳號"}],LINK:[{type:0,value:"連結"}],LINK_TO_VIDEO:[{type:0,value:"此視訊的連結："}],LINK_TO_PHOTO:[{type:0,value:"此相片的連結："}],NO_LINKS_FOR_RESTRICTED_VIDEO:[{type:0,value:"連結不適用於限制視訊"}],PRIVATE_VIDEO_SHARE:[{type:0,value:"此為私人視訊，你仍要分享視訊嗎？"}],NO_LINKS_FOR_RESTRICTED_PHOTO:[{type:0,value:"連結不適用於限制相片"}],PRIVATE_PHOTO_SHARE:[{type:0,value:"此為私人相片，你仍要分享相片嗎？"}],SHARING_RESTRICTED_VIDEO:[{type:0,value:"已針對此視訊限制分享"}],SHARING_RESTRICTED_PHOTO:[{type:0,value:"已針對此相片限制分享"}],EMBED:[{type:0,value:"內嵌"}],PUBLIC_TO_SHARE:[{type:0,value:"請公開分享此相片以檢視內嵌程式碼"}],SIZE:[{type:0,value:"大小："}],TITLE_AND_OWNER_AT_START:[{type:0,value:"開始時顯示標題和擁有者"}],SHARE_NOW:[{type:0,value:"立即分享！"}],SHARE_PHOTO:[{type:0,value:"分享相片"}],SHARE_ON_TWITTER:[{type:0,value:"在 Twitter 上分享"}],AUTHORIZE_FOR_TWITTER:[{type:0,value:"請授權 Flickr 在 Twitter 上發佈"}],SHARE_ON_TUMBLR:[{type:0,value:"在 Tumblr 上分享"}],PUBLISH_NOW:[{type:0,value:"立即發佈"}],ADD_TO_QUEUE:[{type:0,value:"新增至佇列"}],SAVE_AS_DRAFT:[{type:0,value:"儲存為草稿"}],AUTHORIZE_FOR_TUMBLR:[{type:0,value:"請授權 Flickr 在 Tumblr 上發佈"}],SHARE_VIA_MAIL:[{type:0,value:"透過電子郵件分享"}],SCREEN_NAME_OR_EMAIL:[{type:0,value:"暱稱或電子郵件"}],SQUARE:[{type:0,value:"正方形"}],SMALL:[{type:0,value:"小"}],MEDIUM:[{type:0,value:"中"}],LARGE:[{type:0,value:"大"}],ORIGINAL:[{type:0,value:"原本大小"}],DUPLICATE_TAG:[{type:0,value:"標籤重複"}],INVALID_TAG:[{type:0,value:"標籤無效"}],MAXIMUM_TAG_LIMIT:[{type:0,value:"已達到標籤上限 (76)"}],MAX_TAG_LIMIT:[{type:0,value:"已達到標籤上限 (75)"}],ERROR_ADDING_TAG:[{type:0,value:"新增標籤時發生錯誤"}],ERROR_DELETING_TAG:[{type:0,value:"刪除標籤時發生錯誤"}],TAGS:[{type:0,value:"標籤"}],ADD_TAGS:[{type:0,value:"新增標籤"}],ADD_A_TAG:[{type:0,value:"新增標籤"}],PHOTO_IN_ONE_GROUP:[{type:0,value:"此相片位於 1 個群組內"}],PHOTO_IN_MANY_GROUPS:[{type:0,value:"此相片位於 "},{type:2,value:"count",style:null},{type:0,value:" 個群組內"}],PHOTO_IN_NO_GROUPS:[{type:0,value:"此相片並未位於任何群組"}],ADD_A_COMMENT:[{type:0,value:"新增留言"}],COMMENT_TUTORIAL:[{type:0,value:"按下 Enter 可發佈，按下 Shift+Enter 可換行"}],SIGNED_IN_TO_POST_A_COMMENT:[{type:0,value:"你必須登入才能發佈留言"}],SHARE:[{type:0,value:"分享"}],CODE:[{type:0,value:"代碼"}],INCLUDE_A_MESSAGE:[{type:0,value:"包含訊息"}],FOR_MORE_INFORMATION_SAFESEARCH:[{type:0,value:'如需詳細資訊，請參閱<a href="//www.flickr.com/help/photos/?search=flag#145">此常見問題</a>。'}],FLAG_CONFIRMATION_SAFE_WITHIN:[{type:0,value:'已將此相片標記為<a href="//www.flickr.com/help/filters/#258">安全</a>，且落在你的<a href="//www.flickr.com/account/prefs/safesearch/">安全搜尋設定</a>之中。'}],FLAG_CONFIRMATION_SAFE_OUTSIDE:[{type:0,value:'已將此相片標記為<a href="//www.flickr.com/help/filters/#258">安全</a>，且落在你的<a href="//www.flickr.com/account/prefs/safesearch/">安全搜尋設定</a>之外。'}],FLAG_CONFIRMATION_MODERATE_WITHIN:[{type:0,value:'已將此相片標記為<a href="//www.flickr.com/help/filters/#258">中等</a>，且落在你的<a href="//www.flickr.com/account/prefs/safesearch/">安全搜尋設定</a>之中。'}],FLAG_CONFIRMATION_MODERATE_OUTSIDE:[{type:0,value:'已將此相片標記為<a href="//www.flickr.com/help/filters/#258">中等</a>，且落在你的<a href="//www.flickr.com/account/prefs/safesearch/">安全搜尋設定</a>之外。'}],FLAG_CONFIRMATION_RESTRICTED_WITHIN:[{type:0,value:'已將此相片標記為<a href="//www.flickr.com/help/filters/#258">限制</a>，且落在你的<a href="//www.flickr.com/account/prefs/safesearch/">安全搜尋設定</a>之中。'}],FLAG_CONFIRMATION_RESTRICTED_OUTSIDE:[{type:0,value:'已將此相片標記為<a href="//www.flickr.com/help/filters/#258">限制</a>，且落在你的<a href="//www.flickr.com/account/prefs/safesearch/">安全搜尋設定</a>之外。'}],PRIVATE_PHOTO:[{type:0,value:"私人相片"}],PHOTO_UNFIT_FOR_YOUR_EYES:[{type:0,value:"此相片不宜觀賞。 看看這隻小貓吧： (^._.^)ﾉ"}],NO_PHOTO_WITH_THAT_ID:[{type:0,value:"找不到 ID 為 "},{type:1,value:"photoId"},{type:0,value:" 的相片"}],NO_MEMBERS_FOUND:[{type:0,value:"找不到會員"}],TAKEN_ON_INTL:[{type:0,value:"拍攝於 "},{type:3,value:"intlDate",style:"long"}],UPLOADED_ON_INTL:[{type:0,value:"上載於 "},{type:3,value:"intlDate",style:"long"}],TAKEN_IN_MONTH:[{type:0,value:"拍攝於 "},{type:3,value:"intlDate",style:"monthYear"}],VIEW_IN_LIGHTBOX_SHORTCUT:[{type:0,value:"在燈箱中檢視"}],ZOOM_MAX_MESSAGE:[{type:0,value:"等一下！ 此相片已達到大小上限。"}],CLICK_TO_FAVE_PHOTO:[{type:0,value:"按一下這裡以將此相片加入最愛"}],CLICK_TO_FAVE_VIDEO:[{type:0,value:"按一下這裡以將此影片加入最愛"}],BACK_TO_ACTIVITY_FEED:[{type:0,value:"返回活動資訊提供"}],BACK_TO_PHOTOSTREAM:[{type:0,value:"返回所有相片"}],BACK_TO_SHARED_PHOTOS:[{type:0,value:"返回分享的相片"}],BACK_TO_ALBUM:[{type:0,value:"返回相簿"}],BACK_TO_CONTACTS_LIST:[{type:0,value:"返回聯絡人清單"}],BACK_TO_FAVORITES:[{type:0,value:"返回最愛"}],BACK_TO_GALLERY:[{type:0,value:"返回博覽館"}],BACK_TO_PROFILE:[{type:0,value:"返回個人檔案"}],BACK_TO_EXPLORE:[{type:0,value:"返回發掘"}],BACK_TO_COMMONS:[{type:0,value:"返回 Commons"}],BACK_TO_GROUP:[{type:0,value:"返回群組"}],BACK_TO_GROUPS:[{type:0,value:"返回群組"}],BACK_TO_MAP:[{type:0,value:"返回地圖"}],BACK_TO_SEARCH:[{type:0,value:"返回搜尋"}],BACK_TO_TAG:[{type:0,value:"返回標籤"}],BACK_TO_PRINT_SHOP:[{type:0,value:"回到沖印店"}],ERROR_ADDING_PHOTOS_TO_ALBUM:[{type:0,value:"將相片新增至相簿時發生問題"}],ERROR_REMOVING_PHOTOS_FROM_ALBUM:[{type:0,value:"從相簿移除相片時發生問題"}],ERROR_CREATING_ALBUM:[{type:0,value:"建立你的新相簿時發生問題"}],STRICTER_PRIVACY_CHANGE_DIALOG_TITLE:[{type:0,value:"正在設定為更嚴格的隱私權層級"}],STRICTER_PRIVACY_CHANGE_DIALOG_MESSAGE:[{type:0,value:"一旦將相片設定為更嚴格的隱私權層級，該相片累積已被加入最愛的設定都會被移除。 這麼做也會改變相片的 URL。"}],TAGS_HELPER_TEXT:[{type:0,value:"標籤即是關鍵字，方便用戶輕鬆地搜尋相片。 你可隨意新增多個標籤，方便好用的 Flickr 機械人會嘗試為你加入標籤。"}],TAGS_HELP_TEXT:[{type:0,value:"標籤是讓用戶能輕鬆在「Flickr 搜尋」找到相片的關鍵字。 你加入的標籤會以深灰色顯示。 好用的 Flickr 機械人會嘗試為你加入標籤，這些標籤則會以灰色外框的字型顯示。"}],PRIVATE_TAGS_OWNER_HELPER_TEXT:[{type:0,value:"只有你、可檢視這相片的家人與朋友才能看到私人標籤。"}],PRIVATE_TAGS_FRIENDS_FAMILY_HELPER_TEXT:[{type:0,value:"因為你是相片擁有者的朋友或家人，只有你才能看到私人標籤。"}],CREATE_WALLART_WITH_PHOTO:[{type:0,value:"使用這張相片製作相片掛畫"}],ERROR_ROTATING_PHOTO:[{type:0,value:"旋轉這張相片時發生問題，請關閉並重試。"}],ROTATE_PHOTO:[{type:0,value:"旋轉相片"}],ERROR_REPLACING_PHOTO:[{type:0,value:"取代這張相片時發生問題，請關閉並重試。"}],REPLACE_PHOTO:[{type:0,value:"取代相片"}],PERMANENTLY_REPLACE:[{type:0,value:"要永久取代這張相片 ("},{type:1,value:"username"},{type:0,value:" 的「"},{type:1,value:"photoTitle"},{type:0,value:"」) 為 <em>"},{type:1,value:"fileName"},{type:0,value:"</em> 嗎？"}],REPLACE_WARNING:[{type:0,value:"取代相片後，將無法復原。 請選擇一個檔案來取代這張相片。"}],REPLACE_UPLOADING:[{type:0,value:"正在上傳 <em>"},{type:1,value:"fileName"},{type:0,value:"</em>..."}],ERROR_DELETING_PHOTO:[{type:0,value:"刪除這張相片時發生問題，請關閉並重試。"}],SHOW_MORE_STATS:[{type:0,value:"顯示更多統計資料"}],SIGNUP_AND_DOWNLOAD_TITLE:[{type:0,value:"你找到想下載的相片！"}],SIGNUP_AND_DOWNLOAD_VIDEO_TITLE:[{type:0,value:"你找到想下載的影片！"}],SIGNUP_AND_DOWNLOAD_MESSAGE:[{type:0,value:"加入 Flickr，即可存取數十億張精美相片。"}],SIGNUP_AND_COMMENT_TITLE:[{type:0,value:"對此相片發表評論！"}],SIGNUP_AND_COMMENT_MESSAGE:[{type:0,value:"加入 Flickr，即可對此相片發表評論。"}],IMMERSIFY:[{type:0,value:"Immersify"}],SIGNUP_FOOTER_MESSAGE:[{type:0,value:"加入 Flickr 即可探索世界級相片"}],TIMEOUT_FAILURE:[{type:0,value:"我們目前無法顯示此相片，請再試一次。"}],BUY:[{type:0,value:"購買"}],ADD_A_NOTE:[{type:0,value:"新增附註"}],CONFIRM_NOTE_DELETION:[{type:0,value:"你確定要永久刪除此附註嗎？"}],VIEWING_PRIVACY:[{type:0,value:"查看私隱設定"}],ALLOW_COMMENTING:[{type:0,value:"允許留言"}],ALLOW_TAGS_NOTES_PEOPLE:[{type:0,value:"允許加入標籤、附註及標記人物"}],SAFETY_LEVEL:[{type:0,value:"安全層級"}],SET_SAFETY_LEVEL:[{type:0,value:"設定安全層級"}],KEYBOARD_SHORTCUTS:[{type:0,value:"快速鍵"}],EDITOR_UPGRADE:[{type:0,value:"相片編輯工具升級"}],EDITOR_UPGRADE_MESSAGE:[{type:0,value:"系統目前已停用 Flickr 相片頁面的相片編輯功能，現正等候升級。<br><br>你即將可以存取更穏定和更多功能的相片編輯工具，豐富你的 Flickr 體驗！<br><br>對於這次意料之外的升級事宜，不便之處，敬請原諒，但我們相信升級後的功能絕對值得期待。"}],ERROR_REPLACING_PHOTO_FILE_TYPE:[{type:0,value:"取代現有相片時發生錯誤。系統無法辨識檔案類型，請使用另一張相片再試一次。"}],EDITING_DISABLED:[{type:0,value:"編輯功能目前停用"}],ENTER_TO_EDIT_TITLE_DESC:[{type:0,value:"按下 Enter 編輯標題或描述。"}],BACK_TO_PHOTOSTREAM_EDIT:[{type:0,value:"返回所有相片編輯"}],ALLOW_PRINTS_ON_PHOTO:[{type:0,value:"購買列印品許可"}],AUTO_MODERATION_MESSAGE:[{type:0,value:'Flickr 主持機械人 🤖 更改了這張相片的安全級別。<a class="learn-link" href="'},{type:1,value:"learnUrl"},{type:0,value:'">了解更多</a>。'}],GROUPS_COUNT:[{type:0,value:"群組 ("},{type:1,value:"count"},{type:0,value:")"}],GALLERIES_COUNT:[{type:0,value:"圖庫 ("},{type:1,value:"count"},{type:0,value:")"}],ALBUMS_COUNT:[{type:0,value:"相簿 ("},{type:1,value:"count"},{type:0,value:")"}],SET_CONTENT_TYPE:[{type:0,value:"設定內容類型"}],CONTENT_TYPE:[{type:0,value:"內容類型"}],SHOW_LICENSE_HISTORY_CTA:[{type:0,value:"授權歷史"}],LICENSE_HISTORY_DATE:[{type:0,value:"備註："},{type:3,value:"firstLicenseDate",style:"long"},{type:0,value:" 前並無授權紀錄"}],OLD_LICENSE:[{type:0,value:"舊許可證"}],NEW_LICENSE:[{type:0,value:"新執照"}],SEPARATE_TAGS_WITH_SPACE:[{type:0,value:"以空格分隔標籤"}],EDIT_TAGS:[{type:0,value:"編輯標籤"}],PRESS_ENTER_ADD_TAGS:[{type:0,value:"按下「Enter」以新增標籤"}],TAG_TIP:[{type:0,value:"小提示：把多個字放入雙引號之間來建立單一標籤"}],MANAGE_TAGS:[{type:0,value:"管理標籤"}],MANAGE_CONTACTS:[{type:0,value:"管理聯絡人"}],EDIT_PEOPLE:[{type:0,value:"編輯人物"}],TYPE_A_NAME:[{type:0,value:"輸入名稱"}],YOU_CANNOT_ADD_PEOPLE_PHOTO:[{type:0,value:"您無法新增人物到這張相片"}],YOU_CANNOT_ADD_PEOPLE_VIDEO:[{type:0,value:"您無法新增人物到這個影片"}],YOU_CANNOT_ADD_TAGS_PHOTO:[{type:0,value:"您不得為這張相片新增標籤"}],YOU_CANNOT_ADD_TAGS_VIDEO:[{type:0,value:"您不得為這部影片新增標籤"}],TAG_LIMIT_REACHED:[{type:0,value:"已達到標籤上限"}],REACHED_MAX_PEOPLE_TAGS:[{type:0,value:"您最多可在相片或影片中標記 50 人。請移除現有標籤以增加新的標籤。"}],ORIGINAL_LICENSE:[{type:0,value:"Original License"}],LICENSE_DATE_OLD_NEW:[{type:3,value:"dateChange",style:"long"}]})}),"@VERSION@",{requires:["intl"]});YUI.add("hermes-template-zoom-modal",(function(l,n){var e=l.Template.Handlebars.revive({1:function(l,n,e,r,a){var o,t=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'<img src="'+l.escapeExpression("function"==typeof(o=null!=(o=t(e,"smallSrc")||(null!=n?t(n,"smallSrc"):n))?o:l.hooks.helperMissing)?o.call(null!=n?n:l.nullContext||{},{name:"smallSrc",hash:{},data:a,loc:{start:{line:3,column:28},end:{line:3,column:40}}}):o)+'" class="zoom-small">'},3:function(l,n,e,r,a){var o,t=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'<img src="'+l.escapeExpression("function"==typeof(o=null!=(o=t(e,"largeSrc")||(null!=n?t(n,"largeSrc"):n))?o:l.hooks.helperMissing)?o.call(null!=n?n:l.nullContext||{},{name:"largeSrc",hash:{},data:a,loc:{start:{line:4,column:28},end:{line:4,column:40}}}):o)+'" class="zoom-large">'},5:function(l,n,e,r,a){var o,t=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'<img src="'+l.escapeExpression("function"==typeof(o=null!=(o=t(e,"xLargeSrc")||(null!=n?t(n,"xLargeSrc"):n))?o:l.hooks.helperMissing)?o.call(null!=n?n:l.nullContext||{},{name:"xLargeSrc",hash:{},data:a,loc:{start:{line:5,column:29},end:{line:5,column:42}}}):o)+'" class="zoom-xlarge">'},compiler:[8,">= 4.3.0"],main:function(l,n,e,r,a){var o,t=null!=n?n:l.nullContext||{},c=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'<div class="zoom-modal hidden">\n\t<div class="zoom-photo-container">\n\t\t'+(null!=(o=c(e,"if").call(t,null!=n?c(n,"smallSrc"):n,{name:"if",hash:{},fn:l.program(1,a,0),inverse:l.noop,data:a,loc:{start:{line:3,column:2},end:{line:3,column:68}}}))?o:"")+"\n\t\t"+(null!=(o=c(e,"if").call(t,null!=n?c(n,"largeSrc"):n,{name:"if",hash:{},fn:l.program(3,a,0),inverse:l.noop,data:a,loc:{start:{line:4,column:2},end:{line:4,column:68}}}))?o:"")+"\n\t\t"+(null!=(o=c(e,"if").call(t,null!=n?c(n,"xLargeSrc"):n,{name:"if",hash:{},fn:l.program(5,a,0),inverse:l.noop,data:a,loc:{start:{line:5,column:2},end:{line:5,column:71}}}))?o:"")+'\n\t\t<span class="facade-of-protection-zoom"></span>\n\t</div>\n</div>\n'},useData:!0}),r={};l.Array.each([],(function(n){var e=l.Template.get("hermes/"+n);e&&(r[n]=e)})),l.Template.register("hermes/zoom-modal",(function(n,a){return(a=a||{}).partials=a.partials?l.merge(r,a.partials):r,e(n,a)}))}),"@VERSION@",{requires:["template-base","handlebars-base"]});YUI.add("animation-manager",(function(n){n.AnimationManager=(function(){var i,e,a;function t(){e&&(a.forEach((function(n,i){n()})),n.config.win.requestAnimationFrame(t))}function o(i){return a.push(i),e||(e=!0,n.config.win.requestAnimationFrame(t)),{detach:function(){a.splice(a.indexOf(i),1),a.length||(e=!1)}}}return i||(e=!1,a=[],YUI.Env.isServer||n.config.win.requestAnimationFrame||(function(){var i,e,a=["webkit","moz"],t=0;for(e=0;e<a.length&&!n.config.win.requestAnimationFrame;++e)i=a[e],n.config.win.requestAnimationFrame=n.config.win[i+"RequestAnimationFrame"],n.config.win.cancelAnimationFrame=n.config.win[i+"CancelAnimationFrame"]||n.config.win[i+"CancelRequestAnimationFrame"];n.config.win.requestAnimationFrame&&n.config.win.cancelAnimationFrame||(n.config.win.requestAnimationFrame=function(n){var i=Date.now(),e=Math.max(t+16,i);return setTimeout((function(){n(t=e)}),e-i)},n.config.win.cancelAnimationFrame=clearTimeout)})(),i={subscribe:o}),i})()}),"@VERSION@",{requires:[]});YUI.add("zoom-view",(function(e){e.FlickrView.create(this.name,e.FlickrView,[],{langBundles:this.details.langBundles,forceGPU:null,slowMoMode:!1,sizes:{},supportsMultiLevelZooming:!1,currentZoomLevel:null,currentZoomRegion:{},initializer:function(o){return this.photoId=o.photoId,this.disableIfSmall=!!o.disableIfSmall,YUI.Env.isServer||(e.config.win.location.search.indexOf("gpu=on")>-1?this.forceGPU=!0:e.config.win.location.search.indexOf("gpu=off")>-1&&(this.forceGPU=!1),this.currentZoomLevel=0),this},loadState:function(){var e=this;return this.appContext.getModel("photo-models",e.photoId).then((function(o){e.set("photo",o)}))},buildContainer:function(){return this.setContainerHTML(""),this},activate:function(){var o=this,t=o.getZoomKeyScope();return this.get("photo").getValue("needsInterstitial")||(this.parentViewContainer=this.get("container").ancestor(".view"),o.registerEventHandler(o.get("container").on("click",(function(e){e.preventDefault(),o.setCursorCoordsFromEvent(e),o.detectSlowMoMode(e),o.zoomIn(o.cursorCoords)}))),o.registerEventHandler(e.on("photo:zoom",(function(t){o.detectSlowMoMode({shiftKey:t.shift}),t.x&&t.y?(o.cursorCoords=[t.x-e.config.win.pageXOffset,t.y-e.config.win.pageYOffset],o.zoomIn(o.cursorCoords)):o.zoomIn()}))),o.attachKeyEvent("down:90",e.betterThrottle((function(t){t.preventDefault(),o.detectSlowMoMode(t),o.canZoomIn()?o.zoomIn():o.zoomOut(),e.Snowplough.sendStructuredEvent({category:"photopageinteractions",action:"keyboard",label:"zoom"})}),100),"*"),o.attachKeyEvent("down:27",e.betterThrottle((function(e){e.preventDefault(),o.detectSlowMoMode(e),o.zoomOut()}),100),t),o.attachKeyEvent("down:37,38,39,40",e.betterThrottle((function(e){var t=[o.currentZoomRegion.left,o.currentZoomRegion.top],i=200;switch(e.preventDefault(),e.button){case 37:t[0]+=i;break;case 38:t[1]+=i;break;case 39:t[0]-=i;break;case 40:t[1]-=i}o.panZoomNode(t)}),16),t),o.registerEventHandler(o.appContext.flapp.before("activeViewChange",(function(t){e.fire("flickr:removeKeyEventScope",o.getZoomKeyScope()),o.detachRegisteredEvents(),o.detachEventHandlers(),o.cleanUp()})))),this},zoomIn:function(o){var t,i,n,r,s,a,h,d,l,g=this,c=this.getZoomPixelRatio(),u=this.getRegionForNode(this.get("container"),!0),m=this.maxMsgNode;if(this.sizes=this.getSizes(),this.sizes.xlarge&&this.sizes.xlarge.url?this.supportsMultiLevelZooming=!0:this.supportsMultiLevelZooming=!1,this.supportsMultiLevelZooming?0===this.currentZoomLevel?n=this.sizes.large:1===this.currentZoomLevel&&(n=this.sizes.xlarge):n=this.sizes.large,r=this.isImageReadyToDisplay(this.sizes.medium.url),s=this.isImageReadyToDisplay(this.sizes.large.url),this.supportsMultiLevelZooming&&(a=this.isImageReadyToDisplay(this.sizes.xlarge.url)),this.supportsMultiLevelZooming&&1===this.currentZoomLevel&&this.panningAnimationHandle.detach(),this.disableIfSmall&&u.width>=this.sizes.large.width)return m||(m=this.maxMsgNode=e.Node.create('<div class="zoom-max-message">'+g.intlMessage({intlName:"photo-page-scrappy.ZOOM_MAX_MESSAGE"})+"</div>")),this.get("container").contains(m)||(m.addClass("hidden"),this.get("container").append(m)),e.soon((function(){m&&m.inDoc()&&(m.removeClass("hidden"),this.maxMsgNodeHidingTimer&&(clearTimeout(this.maxMsgNodeHidingTimer),delete this.maxMsgNodeHidingTimer),this.maxMsgNodeHidingTimer=setTimeout((function(){m&&m.inDoc()&&m.addClass("hidden")}),3e3))})),void this.resetSlowMoMode();e.fire("flickr:setKeyEventScope",this.getZoomKeyScope()),this.zoomingIn=!0,this.panningAnimationHandle=e.AnimationManager.subscribe((function(){var t,i,n=g.getDeteriorationRateForEasing(),r={x:0,y:0},s={x:0,y:0},a={x:0,y:0};g.pendingCoords&&(r.x=parseInt(g.pendingCoords[0],10),r.y=parseInt(g.pendingCoords[1],10),g.currentCoords?(s.x=g.currentCoords[0],s.y=g.currentCoords[1]):(t=g.getZoomPanCoordsForCursor(o),i=g.constrainPanCoords(t),s.x=parseInt(i[0],10),s.y=parseInt(i[1],10)),r.x<s.x?a.x=s.x-Math.abs(r.x-s.x)*n:a.x=s.x+Math.abs(r.x-s.x)*n,r.y<s.y?a.y=s.y-Math.abs(r.y-s.y)*n:a.y=s.y+Math.abs(r.y-s.y)*n,a.x=parseInt(a.x,10),a.y=parseInt(a.y,10),a.x===s.x&&(r.x<s.x?a.x=s.x-1:r.x>s.x&&(a.x=s.x+1)),a.y===s.y&&(r.y<s.y?a.y=s.y-1:r.y>s.y&&(a.y=s.y+1)),a.x===r.x&&a.y===r.y||((!0===g.forceGPU||e.config.win.devicePixelRatio>1)&&!1!==g.forceGPU?g.zoomPhotoContainerNode.setStyle("transform","translate3d("+a.x+"px, "+a.y+"px, 0)"):g.zoomPhotoContainerNode.setStyle("transform","translate("+a.x+"px, "+a.y+"px)")),g.currentCoords=[a.x,a.y],a.x===r.x&&a.y===r.y&&delete g.pendingCoords)})),this.zoomNode?(this.zoomingOut=!1,(t=this.zoomNode).removeClass("hiding"),this.detachEventHandlers()):t=this.zoomNode=e.Node.create(this.templates("zoom-modal")({smallSrc:r?this.sizes.medium.url:"",largeSrc:s?this.sizes.large.url:"",xLargeSrc:a?this.sizes.xlarge.url:""})),i=this.zoomPhotoContainerNode=t.one(".zoom-photo-container"),this.zoomImageFullWidth=n.width/c,this.zoomImageFullHeight=n.height/c,o||(g.cursorCoords=o=[this.appContext.viewportData.viewport.width/2,this.appContext.viewportData.viewport.height/2]),h=this.getZoomPanCoordsForCursor(o),h=this.constrainPanCoords(h),d={left:h[0],top:h[1],width:this.zoomImageFullWidth,height:this.zoomImageFullHeight},0===g.currentZoomLevel?(i.setStyle("transition","none"),this.resizeZoomNode(u,!1)):this.resizeZoomNode(this.getRegionForNode(i),!1),t.on("click",(function(e){g.zoomingIn||(e.preventDefault(),g.detectSlowMoMode(e),g.canZoomIn()?(g.setCursorCoordsFromEvent(e),g.zoomIn(g.cursorCoords)):g.zoomOut())})),e.one("body").append(t),i.setStyle("width",d.width),i.setStyle("height",d.height),e.soon((function(){var o;g.zoomingIn&&(t.removeClass("hidden"),i.setStyle("transition",""),"ontouchstart"in document&&e.use("event-touch",(function(){g.touchHandlers=[],g.touchHandlers.push(e.on("touchstart",(function(e){e.changedTouches.length&&1===e.changedTouches.length&&(g.touching=[e.changedTouches[0].pageX,e.changedTouches[0].pageY])}))),g.touchHandlers.push(e.on("touchmove",(function(e){var o,t,i=e.pageX,n=e.pageY;g.touching&&e.changedTouches.length&&1===e.changedTouches.length&&(i=e.changedTouches[0].pageX,n=e.changedTouches[0].pageY,e.preventDefault(),o=i-g.touching[0],t=n-g.touching[1],g.touching=[i,n],g.panZoomNode([g.currentZoomRegion.left+o,g.currentZoomRegion.top+t]))}))),g.touchHandlers.push(e.on("touchend",(function(e){delete g.touching})))})),t.on("mousemove",g.zoomMouseMoveHandler.bind(g)),g.mouseWheelHandler=(o=g.zoomScrollWheelHandler.bind(g),l="onwheel"in document.createElement("div")?"wheel":"mousewheel",g.zoomNode.getDOMNode().addEventListener(l,o,!1),{detach:function(){g.zoomNode.getDOMNode().removeEventListener(l,o,!1)}}),g.parentViewContainer.addClass("zoomed"),g.resizeZoomNode(d,!0).then((function(){g.zoomingIn&&(g.zoomingIn=!1,g.zoomedIn=!0,i.removeClass("zoom-level-"+g.currentZoomLevel),g.currentZoomLevel+=1,i.addClass("zoom-level-"+g.currentZoomLevel),g.zoomNode.toggleClass("max-zoom-level",!g.canZoomIn()),g.resetSlowMoMode(),g.panZoomNodeToCurrentCoords(),s||i.append('<img src="'+g.sizes.large.url+'" class="zoom-large">'),g.supportsMultiLevelZooming&&!a&&i.append('<img src="'+g.sizes.xlarge.url+'" class="zoom-xlarge">'))})))}))},zoomOut:function(){var o=this,t=this.zoomNode;e.fire("flickr:removeKeyEventScope",this.getZoomKeyScope()),this.detachEventHandlers(),this.resizeZoomNode(this.getRegionForNode(this.get("container"),!0),!0),t.addClass("hiding"),this.zoomedIn=!1,this.zoomingIn=!1,this.zoomingOut=!0,setTimeout((function(){o.zoomingOut&&t&&t._node&&(o.parentViewContainer.removeClass("zoomed"),t.removeClass("hiding"),t.addClass("hidden"),o.resetSlowMoMode(),setTimeout((function(){o.zoomingOut&&(o.cleanUp(),o.zoomingOut=!1,o.currentZoomLevel=0)}),200))}),this.getZoomTransitionTime()),delete this.pendingCoords,delete this.currentCoords},resizeZoomNode:function(o,t){var i,n,r=this,s=e.config.win.performance&&e.config.win.performance.now;return t?new e.Promise((function(t,a){r.isAnimatingZoom=!0,i=s?e.config.win.performance.now():Date.now(),n=r.currentZoomRegion,e.config.win.requestAnimationFrame((function a(h){var d=(function(a){var h,d=((s?a:Date.now())-i)/r.getZoomTransitionTime();return d>=1?(h=o,r.isAnimatingZoom=!1,e.soon(t)):h={left:n.left+(o.left-n.left)*d,top:n.top+(o.top-n.top)*d,width:n.width+(o.width-n.width)*d,height:n.height+(o.height-n.height)*d},h})(h);(r.zoomingIn||r.zoomingOut)&&(r.resizeZoomNode(d,!1),d!==o&&e.config.win.requestAnimationFrame(a))}))})):(this.currentZoomRegion=o,this.zoomPhotoContainerNode&&this.zoomPhotoContainerNode.setStyle("transform","translate("+o.left+"px, "+o.top+"px) scale("+o.width/this.zoomImageFullWidth+")"),e.Promise.resolve())},zoomMouseMoveHandler:function(e){this.setCursorCoordsFromEvent(e),this.isAnimatingZoom||this.panZoomNodeToCurrentCoords()},zoomScrollWheelHandler:function(e){e.preventDefault();var o=e.wheelDeltaX,t=e.wheelDeltaY;void 0===o&&(o=-e.deltaX||0),void 0===t&&(t=-e.deltaY||0),this.panZoomNode([this.currentZoomRegion.left+o,this.currentZoomRegion.top+t])},getSizes:function(){var e=this.parentViewContainer.one(".main-photo"),o=this.getLargerSize(e.getAttribute("src")),t=this.getLargestSize();return{medium:{url:e.getAttribute("src"),width:parseInt(e.getAttribute("width"),10),height:parseInt(e.getAttribute("height"),10)},large:o,xlarge:o.url===t.url?null:t}},getLargerSize:function(o){var t,i,n,r=0,s=0;return this.appContext.flipper.isFlipped("enable-two-step-zoom")?(o=o.replace(/^https?:/i,""),"o"===(t=this.get("photo").getValue("ascendingSizes"))[t.length-1].key&&t.pop(),e.Array.each(t,(function(e,t){e.url===o&&(r=t),"k"===e.key&&(s=t)})),(i=t[r+1])?(n=i,t[s]&&i.width<t[s].width&&(n=t[s])):n=t[t.length-1],n):this.getLargestSize()},getLargestSize:function(){return this.get("photo").getLargestSize()},getDeteriorationRateForEasing:function(){return.2},getZoomPixelRatio:function(){if(!this.appContext.flipper.isFlipped("enable-two-step-zoom"))return 1;var e,o=this.parentViewContainer.one(".main-photo");return o&&(o=o.getDOMNode()).naturalWidth&&(e=o.naturalWidth/parseInt(o.getAttribute("width"),10))<window.devicePixelRatio?e:window.devicePixelRatio?window.devicePixelRatio:1},getZoomEdgeMargin:function(){return 100},getZoomPanCoordsForCursor:function(e){if(e){var o=this.getZoomEdgeMargin(),t=[this.appContext.viewportData.getWidth(),this.appContext.viewportData.getHeight()],i=[e[0]/t[0],e[1]/t[1]],n=[this.zoomImageFullWidth,this.zoomImageFullHeight],r=[n[0]+2*o,n[1]+2*o];return[i[0]*(t[0]-r[0]),i[1]*(t[1]-r[1])]}},getRegionForNode:function(o,t){var i={left:o.getX()-e.config.win.pageXOffset,top:o.getY()-e.config.win.pageYOffset,width:parseInt(o.getStyle("width"),10),height:parseInt(o.getStyle("height"),10)};return t&&(i.left-=this.getZoomEdgeMargin(),i.top-=this.getZoomEdgeMargin()),i},getZoomTransitionTime:function(){return 200*(this.slowMoMode?10:1)},getZoomKeyScope:function(){return this.name+this._yuid},canZoomIn:function(){return 0===this.currentZoomLevel||this.supportsMultiLevelZooming&&1===this.currentZoomLevel},setCursorCoordsFromEvent:function(o){return this.cursorCoords=[o.pageX-e.config.win.pageXOffset,o.pageY-e.config.win.pageYOffset],this.cursorCoords},panZoomNodeToCurrentCoords:function(){if(this.zoomedIn){var e=this.getZoomPanCoordsForCursor(this.cursorCoords);e&&this.panZoomNode(e)}},panZoomNode:function(e){this.currentZoomRegion.left===e[0]&&this.currentZoomRegion.top===e[1]||(e=this.constrainPanCoords(e),this.currentZoomRegion.left=e[0],this.currentZoomRegion.top=e[1],this.pendingCoords=e)},constrainPanCoords:function(e){var o,t,i=this.getZoomEdgeMargin(),n=[this.appContext.viewportData.getWidth(),this.appContext.viewportData.getHeight()],r=[this.zoomImageFullWidth,this.zoomImageFullHeight],s=[r[0]+2*i,r[1]+2*i];return 0,o=n[0]-r[0]-2*i,0,t=n[1]-r[1]-2*i,e[0]>0?e[0]=0:e[0]<o&&(e[0]=o),e[1]>0?e[1]=0:e[1]<t&&(e[1]=t),r[0]<n[0]&&(e[0]=.5*(n[0]-s[0])),r[1]<n[1]&&(e[1]=.5*(n[1]-s[1])),e},detectSlowMoMode:function(e){e.shiftKey&&(document.getSelection().removeAllRanges(),this.slowMoMode=!0)},resetSlowMoMode:function(){this.slowMoMode=!1},isImageReadyToDisplay:function(e){var o;return!!e&&((o=new Image).src=e,o.complete||o.naturalWidth)},detachEventHandlers:function(){this.zoomNode&&(this.zoomNode.detachAll("mousemove"),this.mouseWheelHandler&&this.mouseWheelHandler.detach(),this.touchHandlers&&(this.touchHandlers.forEach((function(e){e.detach()})),delete this.touchHandlers))},cleanUp:function(){this.zoomNode&&(this.zoomNode.remove(!0),this.zoomedIn=!1,this.zoomingIn=!1,this.zoomingOut=!1,delete this.zoomNode,delete this.zoomPhotoContainerNode,delete this.pendingCoords,delete this.currentCoords,this.panningAnimationHandle.detach())}})}),"@VERSION@",{requires:["flickr-view","better-throttle","flickr-promise","hermes-template-zoom-modal","animation-manager"],optional:["photo-models"],langBundles:["photo-page-scrappy"]});